I've got UDP checksum computation code. Used it for a twice-network
address translator implementation in Linux user space. It works. Lemme
know if you need it :)
---
Rhandeev Singh [EMAIL PROTECTED]
Linux User Group http://linux.comp.nus.edu.sg
School of Computing http://www.comp.nus.edu.sg
National University of Singapore
On Sun, 10 Jan 1999, Alan Cox wrote:
> > It appears that the CISCO refuses to forward UDP packets if the
> > checksum is not correct. Part of the IPConfig documentation
> > states that 'UDP checksum not calculated -- explicitly allowed
> > in BOOTP RFC'.
>
> The UDP checksum must be correct. Its just there is a value which
> means "unchecksummed". So long as that is set it ought to behave
>
> > I've had a look at writing code to add a checksum to the packet
> > being sent ('ic_bootp_send_if' in 'net/ipv4/ipconfig.c') but can't
> > get the right combination. :( It's the sort of thing which would
> > take a person who knows how it works a couple of minutes.
> > (I've spent most of the day on this problem so far.. :( )
>
> I believe you need to add
>
> b->udph.check = 0;
>
> I think the originator of the code misunderstood the rfc intentions
>
> Alan
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-net" in
> the body of a message to [EMAIL PROTECTED]
>
>
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]