Re: udp checksum on raw sockets
From: Mark Santcroos (marks_at_ripe.net)
Date: 04/27/04
- Previous message: Ruslan Ermilov: "Re: udp checksum on raw sockets"
- In reply to: Ruslan Ermilov: "Re: udp checksum on raw sockets"
- Next in thread: Ruslan Ermilov: "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 23:16:39 +0200 To: Ruslan Ermilov <ru@freebsd.org>
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, but for now I also
need a userland-only solution.
I guess I can fetch the IP address from the first ethernet iface and use
that as the src address for the IP packet.
Then I have enough information to calculate the UDP checksum in userland,
don't I?
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: Ruslan Ermilov: "Re: udp checksum on raw sockets"
- In reply to: Ruslan Ermilov: "Re: udp checksum on raw sockets"
- Next in thread: Ruslan Ermilov: "Re: udp checksum on raw sockets"
- Reply: Ruslan Ermilov: "Re: udp checksum on raw sockets"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|