Re: UDP/IPv6 handling

2014-10-02 Thread Michael Tuexen
On 02 Oct 2014, at 05:51, Bryan Venteicher wrote: > > > On Wed, Oct 1, 2014 at 11:58 AM, Michael Tuexen > wrote: > Dear all, > > in udp6_input() we have the following code: > > if (nxt == IPPROTO_UDP && plen != ulen) { > UDPSTAT_INC(udps_badlen); > go

Re: UDP/IPv6 handling

2014-10-02 Thread Michael Tuexen
On 02 Oct 2014, at 01:34, Tom Pusateri wrote: > Lots of embedded devices (like Cisco IP Phones) send TFTP requests with 0 > checksums. I guess this uses UDP/IPv4, where FreeBSD supports UDP with zero checksum. For UDP/IPv6 this doesn't work. Right after the cited code, the checksum is always c

Re: UDP/IPv6 handling

2014-10-01 Thread Bryan Venteicher
On Wed, Oct 1, 2014 at 11:58 AM, Michael Tuexen < michael.tue...@lurchi.franken.de> wrote: > Dear all, > > in udp6_input() we have the following code: > > if (nxt == IPPROTO_UDP && plen != ulen) { > UDPSTAT_INC(udps_badlen); > goto badunlocked; > } >

Re: UDP/IPv6 handling

2014-10-01 Thread Tom Pusateri
Lots of embedded devices (like Cisco IP Phones) send TFTP requests with 0 checksums. Tom > On Oct 1, 2014, at 12:58 PM, Michael Tuexen > wrote: > > Dear all, > > in udp6_input() we have the following code: > >if (nxt == IPPROTO_UDP && plen != ulen) { >UDPSTAT_INC(udps_badlen)

UDP/IPv6 handling

2014-10-01 Thread Michael Tuexen
Dear all, in udp6_input() we have the following code: if (nxt == IPPROTO_UDP && plen != ulen) { UDPSTAT_INC(udps_badlen); goto badunlocked; } /* * Checksum extended UDP header and data. */ if (uh->uh_sum == 0) {