udp checksum on raw sockets
From: Mark Santcroos (marks_at_ripe.net)
Date: 04/27/04
- Previous message: George V. Neville-Neil: "Re: Modern TCP stats"
- Next in thread: Charles Swiger: "Re: udp checksum on raw sockets"
- Reply: Charles Swiger: "Re: udp checksum on raw sockets"
- Reply: Ruslan Ermilov: "Re: udp checksum on raw sockets"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 27 Apr 2004 18:09:01 +0200 To: net@freebsd.org
* 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
and
udphdr->uh_sum = 0;
in a UDP packet created on a raw socket, to do the checksum in the kernel
instead of leaving it zero? If it does, I can create a patch.
Any other hints as how to do the checksum in userland are welcome too. As
that is the "ultimate" problem I try to fix.
Thanks
Mark
_______________________________________________
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"
- Previous message: George V. Neville-Neil: "Re: Modern TCP stats"
- Next in thread: Charles Swiger: "Re: udp checksum on raw sockets"
- Reply: Charles Swiger: "Re: udp checksum on raw sockets"
- Reply: Ruslan Ermilov: "Re: udp checksum on raw sockets"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]