Re: udp checksum on raw sockets

2004-04-27 Thread Mark Santcroos
Hi, On Tue, Apr 27, 2004 at 10:05:43PM +0300, Ruslan Ermilov wrote: > Have the raw IP code set csum_flags |= CSUM_UDP (and set csum_data > correctly) in m->m_pkthdr, if ip_p == IPPROTO_UDP && uh_csum == 0. > Do the same thing for IPPROTO_TCP. Like I said, I'm willing to tackle this in the kernel,

udp checksum on raw sockets

2004-04-27 Thread Mark Santcroos
* I'm sending UDP packets on a raw socket. * iphdr->ip_src.s_addr = INADDR_ANY; So I don't know the IP address that will be used as src address. So as far as I can see, I have a problem generating the checksum in userspace. Suggestion: Would it make sense that if: sysctl net.udp.checksum=1

Re: IPv6 MTU bug?

2003-04-04 Thread Mark Santcroos
en. Ah, I saw you're the person who actually fixed it ;-) The KAME snapshot of FreeBSD is quite old, do you know the "procedure" of when and why it get's updated? I might try to extract only the mtu stuff from the changes and apply that locally though. Thanks for

Re: IPv6 MTU bug?

2003-04-03 Thread Mark Santcroos
again, without having to sacrifice my uptime :) > > Anyway, the behavior looks like a bug, but the code makes it look like > this may be an intentional effect. Any kernel networking gurus care to > comment? > > Thanks, > Craig > > ___ > [EMAIL PROTECT

Re: help: can't boot 5.0 diskless

2003-01-23 Thread Mark Santcroos
On Thu, Jan 23, 2003 at 07:50:12PM -0500, Mike Makonnen wrote: > Do you have device.hints in /boot of your diskless tree? I think you have to statically link your hints into the kernel. Mark -- Mark SantcroosRIPE Network Coordination Centre http://www.ripe.net/home/m

Re: help-urgent

2003-01-06 Thread Mark Santcroos
ystem knows where to read from. Look at any random pci driver in sys/ and it will all become clear. Mark -- Mark SantcroosRIPE Network Coordination Centre http://www.ripe.net/home/mark/New Projects Group/TTM To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubs

ip options on udp sockets

2002-07-17 Thread Mark Santcroos
than happy to submit the code to the project. Mark -- Mark Santcroos RIPE Network Coordination Centre http://www.ripe.net/home/mark/ New Projects Group/TTM To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-net" in the body of the message