sendto question

2002-09-19 Thread kshitij gunjikar
Hi All, I have question on sendto? If we set the socket address as 255.255.255.255. Will the packet be broadcasted on all (broadcastable) interfaces? I have two broadcastable interfaces but I observed it sends to only one interface? Anything else has to done to send broadcast on all interfac

IP options related question

2002-04-29 Thread kshitij gunjikar
Hi All, I have a question related to record routes in the FreeBSD code. In the ip_dooptions() fn in ip_input.c there is this code in the Record Route option. /* * If no space remains, ignore. */ off--; /* 0 origin */ if (off > optlen - (int)sizeof(struct in_addr)) break; (vo

Record Routes

2002-04-24 Thread kshitij gunjikar
Hi All, I have a question related to record routes in the FreeBSD code. In the ip_dooptions() fn in ip_input.c there is this code in the Record Route option. /* * If no space remains, ignore. */ off--; /* 0 origin */ if (off > optlen - (int)sizeof(struct in_addr)) break; (void)memcpy(&ipaddr.si

icmp related question

2002-03-07 Thread Kshitij Gunjikar
Hi All, Hi I'm studying code for ICMP . there is a piece of code in icmp_input which just returns when we find the ICMP packet length lesser than allowed. if (icmplen < ICMP_MINLEN) { icmpstat.icps_tooshort++; goto freeit; } i = hl

Interface and ip_input.c

2002-02-06 Thread Kshitij Gunjikar
Hi All, I have a doubt regaring checking the interfaces for configuration at ip_input.c . Is this necessary for each packet? if (TAILQ_EMPTY(&in_ifaddrhead)) goto bad; Regards Kshitij _ Do You Yahoo!? Get your free @yah

mtod function

2002-01-30 Thread Kshitij Gunjikar
Hi All, I'm new to FreeBSD code. Does mtod function leave 16 bytes required by the hardware in the mbuf and point to IP header? or It points to the hardware area? Regards Kshitij _ Do You Yahoo!? Get your free @yahoo.com address at http:

RE: urgent question regarding IP-in-IP encapsulation

2002-01-17 Thread Kshitij Gunjikar
Hi Radhika, It's not clear what is not working correctly. The encapsulation, the forwarding ? Also, please ensure that the interface you are forwarding to supports multicasting and you put the source address of the outgoing interface. Regards Kshitij -Original Message- From: [EMAIL PROT

Filtering on the IPsec Tunnel

2002-01-15 Thread Kshitij Gunjikar
Hi All, What I think is that we shouldn't send all packets to IPSec. This reduces the performance of the box as IPSec algorithms are really compute intensive. Only configured tunnels to a few locations can be IPSeced. This ensures that the normal traffic which is mostly TCP traffic can be as f

RE: Filtering packets received through an ipsec tunnel

2002-01-14 Thread Kshitij Gunjikar
Heux Sent: Monday, January 14, 2002 6:43 PM To: Kshitij Gunjikar Cc: [EMAIL PROTECTED] Subject: Re: Filtering packets received through an ipsec tunnel Hi, I don't think this is quite correct. The fact that I have a tunnel means I have some relation with the other network, and that I do

DHCP and IP Input

2002-01-14 Thread Kshitij Gunjikar
Hi All, I have one question? If we have a FreeBSD box configured as a router and we are not supporting a DHCP like protocol then do we drop packets with 0.0.0.0 source address? As per RFC 1812 we must. Regards Kshitij _ Do You Yahoo!? Ge

RE: Filtering packets received through an ipsec tunnel

2002-01-14 Thread Kshitij Gunjikar
Hi Rene, I'm wondering why do you want to filter Secure traffic? The very fact that you have a tunnel to a place means you trust that network. Hence, why filter? What are the complex situations you have in mind? Regards Kshitij -Original Message- From: [EMAIL PROTECTED] [mailto:[EM

Performance of in_cksum.c

2002-01-12 Thread Kshitij Gunjikar
Hi , I have a question on the in_cksum.c file. Is it optimized to a particular architecture ? If yes which architecture and what is the performance accepted? Regards kshitij _ Do You Yahoo!? Get your free @yahoo.com address at http://mail

IP input Options processing

2002-01-10 Thread Kshitij Gunjikar
Hi All, I have a question in the IP input code. If we are able to find the next for a source routed packet why do we change the destination address of the packet. in the file ip_input.c we have the code ip->ip_dst = ipaddr.sin_addr; (void)memcpy(cp