netdev
[Top] [All Lists]

IPv6 small bugs

To: netdev@xxxxxxxxxxx
Subject: IPv6 small bugs
From: "Stephane D'Alu" <sdalu@xxxxxxxx>
Date: Wed, 26 Jan 2000 14:44:46 +0100
Sender: owner-netdev@xxxxxxxxxxx
- csum_ipv6_magic @ include/asm-*/checksum.h
unsigned short int csum_ipv6_magic (struct in6_addr *saddr,
                                     struct in6_addr *daddr,
                                     __u16 len,
                                     unsigned short proto,
                                     unsigned int sum) 

the checksum is computed using the IPv6 pseudo header but
the length should be a 32 bits, not 16.



- ipv6_setsockopt @ net/ipv6/ipv6_sockglue.c
sk->family = PF_INET;
seems to be missing in the IPV6_ADDRFORM case, when used with UDP.


--
Stephane

<Prev in Thread] Current Thread [Next in Thread>