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

Re: in_cksum() for ip packets with multiple mbufs

2005-10-23 Thread Giorgos Keramidas
On 2005-10-23 01:30, kamal kc <[EMAIL PROTECTED]> wrote: > 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

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

Re: in_cksum() for ip packets with multiple mbufs

2005-10-23 Thread Giorgos Keramidas
On 2005-10-23 04:13, kamal kc <[EMAIL PROTECTED]> wrote: > /* the argument m is the (struct mbuf *) that > * contains the packet data > */ > > void copy_the_memorybuffer(struct mbuf **m) > { >struct mbuf *mbuf_pointer=*m; >struct mbuf **next_packet; > >next_packet=&mbuf_pointer; > >

iSCSI initiator driver beta version, testers wanted

2005-10-23 Thread Danny Braniss
this is the second round of tests, the driver is cleaner, handles multiple LUN's ok, and can handle big (256) tagged opening. so far it's been tested on OS: FreeBSD-5.4/6.0 both intel & amd64, UP & SMP targets: NetAPP, Intransa, SanRAD, Cisco, Promise, Equallogic still missing:

Re: Accessing USB Mass Storage Device

2005-10-23 Thread Daniel Rudy
At about the time of 10/20/2005 4:04 AM, Bernd Walter stated the following: > On Tue, Oct 18, 2005 at 10:38:45PM -0600, M. Warner Losh wrote: > >>In message: <[EMAIL PROTECTED]> >>Daniel Rudy <[EMAIL PROTECTED]> writes: >>: >>: When the umass driver is compiled into the kernel, and on

Re: Accessing USB Mass Storage Device

2005-10-23 Thread Bernd Walter
On Sun, Oct 23, 2005 at 07:34:45PM -0700, Daniel Rudy wrote: > At about the time of 10/20/2005 4:04 AM, Bernd Walter stated the following: > > On Tue, Oct 18, 2005 at 10:38:45PM -0600, M. Warner Losh wrote: > > > >>In message: <[EMAIL PROTECTED]> > >>Daniel Rudy <[EMAIL PROTECTED]> wri

devinfo(3) problem...

2005-10-23 Thread Daniel Rudy
Consider the following code fragment: (segment 2) Calling code section: /* get devinfo root nexus */ printf("root ptr: %p\n", root); result = usb_devinfo_root(&root); printf("root ptr: %p\n", root); if (result < 0) { usb_devinfo_close(); return(-1);

Re: nvi for serious hacking

2005-10-23 Thread Andreas Klemm
On Tue, Oct 18, 2005 at 02:08:40AM +0900, Sangwoo Shim wrote: > Actually the first thing that I do after minimal installing of new system is > to install vim from the ports tree. (in fact, installing cvsup, of course :-) > I remember once upon a time someone (david?) made a suggestion that nvi in >

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: nvi for serious hacking

2005-10-23 Thread Matthew D. Fuller
On Mon, Oct 24, 2005 at 07:03:25AM +0200 I heard the voice of Andreas Klemm, and lo! it spake thus: > > Most favourite example: > I personally still get mad if it comes to the "u" undo key. I miss :N. You have to :split and then :n separately. > Standard vi lets you toggle your last change by