which protocols use ip options ?

2006-03-06 Thread kamal kc
dear all, i found that igmp, rsvp uses ip options. which other protocols use the ip options .. protocols between 0 to 60 (ip protocol number) would be fine to know about. any pointers would be highly valuable to me. thanks, kamal __ Do You Yahoo

Re: offloading ip checksum calculation to the NIC

2006-02-03 Thread kamal kc
--- Gleb Smirnoff <[EMAIL PROTECTED]> wrote: > On Thu, Feb 02, 2006 at 10:20:46PM -0800, kamal kc wrote: > k> i want to offload ip checksum calculation to the NIC. > k> I use 3Com 3c905B-TX NIC cards. > k> > k> I found that there are variables::>> &

offloading ip checksum calculation to the NIC

2006-02-02 Thread kamal kc
dear all, i want to offload ip checksum calculation to the NIC. I use 3Com 3c905B-TX NIC cards. I found that there are variables::>> int csum_flags; /* flags regarding checksum */ int csum_data; /* data field used by csum routines */ in struct pk

Re: increasing the ethernet MTU greater than 1500 (1502)

2006-01-07 Thread kamal kc
> > > i don't want to fragment the packet as i think > > that is too much overhead for 2 bytes. rather i > > want to increase the mtu. > > why increase the mtu when you can decrease it? one > good example is the > PPPoE... default mtu size of pppoe is 1492 because > of the 6 bytes pppoe > heade

Re: increasing the ethernet MTU greater than 1500 (1502)

2006-01-06 Thread kamal kc
--- Richard A Steenbergen <[EMAIL PROTECTED]> wrote: > On Fri, Jan 06, 2006 at 10:02:07AM -0800, John-Mark > Gurney wrote: > > Nope, for pre-gige, only 1500 MTU is supported... > This was extended > > slightly to support vlan tagging, but I believe > many of the drivers to > > If you have a good

increasing the ethernet MTU greater than 1500 (1502)

2006-01-05 Thread kamal kc
dear everbody, i have working to compress/decompress the packets. i know there are various schemes and facilities to do so in the freebsd, i have developed the compression facility myself. i am just a beginner in freebsd programming and overall in network programming. since i compress packet

Re: high interrupts by network interfaces

2005-12-11 Thread kamal kc
> dear everybody, > > i modified the bridge.c file and added a routine to > compress/decompress sorry everbody the top output was garbled. a clearer view is below: top output: - last pid: 58610; load averages: 0.06, 0.17, 0.13 up 16+02:58:40 16:23:31 83 processes: 4 runni

high interrupts by network interfaces

2005-12-11 Thread kamal kc
dear everybody, i modified the bridge.c file and added a routine to compress/decompress ip packet. i put my code in bdg_forward(). And ran the pc in bridge mode. The modified kernel is deployed in network where the datarate is about 4 to 6 Mbps. One thing to be noted is that the pc receives co

Re: allocating 14KB memory per packet compression/decompression results in vm_fault

2005-11-03 Thread kamal kc
> > for my compression/decompression i use string > tables and temporary > > buffers which take about 14KB of memory per > packet. > > If you're allocating 14 KB of data just to send > (approximately) 1.4 KB > and then you throw away the 14 KB immediately, it > sounds terrible. yes that's true.

allocating 14KB memory per packet compression/decompression results in vm_fault

2005-11-02 Thread kamal kc
dear everybody, i am trying to compress/decompress ip packets. for this i have implemented the adaptive lzw compression. i put the code in the ip_output.c and do my compression/decompression just before the if_output() function call so that i won't interfere with the ip processing of the kernel.

tcp services (ssh,ftp) does not work

2005-10-30 Thread kamal kc
dear all, i have put sshd_enable="YES" and inetd_enable="YES" in /etc/rc.conf. netstat -an also shows that the port numbers 21 and 22 are in listen state ftp is uncommented in /etc/inetd.conf but still the ssh/ftp services does not work. when i ftp from another computer the netstat shows conne

compiling the kernel faster

2005-10-27 Thread kamal kc
hello everybody, i am new to kernel programming. i am developing a compression/decompression functionality in the ip layer. i want to compile the kernel faster. it would be ok if the kernel doesn't have support for sound devices, or other devices like scsi,usb etc. because i would be using the

Re: in_cksum() for ip packets with multiple mbufs

2005-10-23 Thread kamal kc
> > void copy_the_memorybuffer(struct mbuf **m) > > { > >struct mbuf *mbuf_pointer=*m; > >struct mbuf **next_packet; > > > >next_packet=&mbuf_pointer; > > > >struct ip *my_ip_hdr; > >my_ip_hdr=mtod((*next_packet),struct ip *); > >my_ip_hdr->ip_tos=64; > >my_ip_hdr->ip_s

Re: in_cksum() for ip packets with multiple mbufs

2005-10-23 Thread kamal kc
> > void copy_the_memorybuffer(struct mbuf **m) > > { > >struct mbuf *mbuf_pointer=*m; > >struct mbuf **next_packet; > > > >next_packet=&mbuf_pointer; > > > >struct ip *my_ip_hdr; > >my_ip_hdr=mtod((*next_packet),struct ip *); > >my_ip_hdr->ip_tos=64; > >my_ip_hdr->ip_s

Re: in_cksum() for ip packets with multiple mbufs

2005-10-23 Thread kamal kc
> > i changed the ip_tos field of the struct ip and > computed the checksum > > by using in_cksum(). > > > > when the packet uses only one mbuf the computed > checksum is ok but > > when the packet uses more than one mbuf then the > computed checksum is > > wrong. > > Note that the IP header conta

in_cksum() for ip packets with multiple mbufs

2005-10-23 Thread kamal kc
i come across this unusual problem. i changed the ip_tos field of the struct ip and computed the checksum by using in_cksum(). when the packet uses only one mbuf the computed checksum is ok but when the packet uses more than one mbuf then the computed checksum is wrong. eg. pinging with payloa

mbuf passed to if_output() in ip_output()

2005-10-20 Thread kamal kc
dear everybody, i have encountered a problem big enough for me to handle. Actually i am trying to compress the data contained in the ip packets. i see that the data to be passed by ip to link layer output routine is contained in mbuf *m. Now what i tried to do is I tried to copy the original m

Re: malloc() in kernel and increasing mbuf and cluster size

2005-10-17 Thread kamal kc
> > sys/malloc.h has function prototypes for malloc() > > kern/kern_malloc.c defines the malloc() > > > > the malloc() definition is > > > > void * > > malloc(size, type, flags) > > unsigned long size; > > struct malloc_type *type; > > int flags; > > > > i understand the size and fla

malloc() in kernel and increasing mbuf and cluster size

2005-10-17 Thread kamal kc
this may be a trivial question for many of you but i am confused in doing memory allocation in the kernel. sys/malloc.h has function prototypes for malloc() kern/kern_malloc.c defines the malloc() the malloc() definition is void * malloc(size, type, flags) unsigned long size; st

Re: tcpdump based packet generator

2005-09-29 Thread kamal kc
--- det_re <[EMAIL PROTECTED]> wrote: > has anyone seen or implemented packet generator > capable of reading tcpdump trace file and resend the > packets back into the wire through bpf in freebsd > box? if you are talking about capturing packets by writing a program then you could use libpcap.a th

Re: kernel TCP/IP hack

2005-09-25 Thread kamal kc
t; ip_input.c and ip_output.c > > If you read the book: > The Implementation (TCP/IP Illustrated, Volume 2) > by Gary R. Wright, W. Richard Stevens > You will understand how each and every line of code > works. > > -vaibhave > > On Sun, 25 Sep 2005, kamal kc wro

kernel TCP/IP hack

2005-09-25 Thread kamal kc
does anybody know where to start on /usr/src for tcp/ip hack i need it urgently any resources, links will be appreciated thanks, kamal __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com

Bridge--using Packet Capture Library(libpcap.a) -- efficiency ?????

2004-10-31 Thread kamal kc
I have made a bridge using the Packet Capture Library I set the two nics to promiscous mode and transfer packet between the two packet capture handles A piece of the code I use for initializing the packet capture device descriptor--- . pcap_t *pd; pd = (pcap_t *)malloc(sizeof(*pd)); if (pd ==

help:: configuring two network interfaces--message->>ifconfig: ioctl (SIOCAIFADDR): File exists

2004-09-07 Thread kamal kc
i have run into a mysterious problem. The thing is that i wanted to configure to NIC cards. I just put the card in the slot and booted FreeBSD. The card was detected. When i wanted to configure the nic card using the ifconfig command the following error message was reported. ifconfig: ioctl (SIOC

no network between cyrix 6x86 and intel pentium 4

2004-07-25 Thread kamal kc
i problem i state here is not particularly about freebsd but it's still related to network and has recently made me very much confused. the problem is when i try to put two computers with cyrix 6x86 and intel pentium 4 in the same network there is no communication between the computers. - w

newbie: segmentation fault

2004-07-02 Thread kamal kc
first of all thanks for solving my previous problem. my previous problem was about the ip and ethernet header. this is how i solved it: char *sender,*dest; char *ptr; struct ether_header eth; ptr=pcap_next(..); sender=ether_ntoa(ether->s_host); printf("%s", sender); dest=ether_ntoa(ether->

newbie: ethernet, ip header proble

2004-06-25 Thread kamal kc
Hi i am new to this mailing list. I have written a program to capture packets using pcap library routines. I have a FreeBSD 5.1. The problem I faced was I successfully captured packets and parsed to ethernet header and ip header. i present a section of code how i did it. -- char *ptr; ptr=p