Re: udp checksum on raw sockets

From: Mark Santcroos (marks_at_ripe.net)
Date: 04/27/04

  • Next message: Steven N. Fettig: "Load Balanced Dual T1's - Same default gateway for both CSU/DSU's?"
    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"


  • Next message: Steven N. Fettig: "Load Balanced Dual T1's - Same default gateway for both CSU/DSU's?"

    Relevant Pages

    • Re: udp checksum on raw sockets
      ... > Like I said, I'm willing to tackle this in the kernel, but for now I also ... > need a userland-only solution. ... Ruslan Ermilov ... FreeBSD committer ...
      (freebsd-net)
    • Re: laptop display (CORRECTION!)
      ... Mark Grievesonis reported to have said: ... I could not get a 2.6 kernel to load over 2.6.8. ... I only have one HD but have found that I can boot the 770 without one ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
      (Debian-User)
    • Re: heavy named problems
      ... but with none in place (I'd like it to use a gig or so if ... Already got them in the kernel. ... Mark ... To unsubscribe, ...
      (freebsd-stable)
    • Re: keyboard is stopping
      ... I myself would attempt a later kernel because that's where the action is ... Mark ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ... Trouble? ...
      (Debian-User)
    • List of boot parameters
      ... Where can I get a list of all kernel boot parameters for the new kernel. ... MARK ... To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list ...
      (Fedora)