diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2009-02-24 01:21:16 +0000 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2009-02-24 01:21:16 +0000 |
commit | 30c7c06aca35c9dd03c63be263f0ae5187460e8f (patch) | |
tree | 8d92e98e447aecb25bb2cbaec12cc1a926a85663 | |
parent | 1834b60bc7555afc464186de564d760bcc644188 (diff) |
2009-02-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
* linux-src/net/ipv6/addrconf.c (ipv6_addr_type): Use
__in6_u.__u6_addr32 member instead of in6_u.u6_addr32.
* linux-src/net/ipv6/icmpv6.c (icmpv6_rcv): Use
__in6_u.__u6_addr16 member instead of in6_u.u6_addr16.
-rw-r--r-- | pfinet/ChangeLog | 7 | ||||
-rw-r--r-- | pfinet/linux-src/net/ipv6/addrconf.c | 4 | ||||
-rw-r--r-- | pfinet/linux-src/net/ipv6/icmpv6.c | 34 |
3 files changed, 26 insertions, 19 deletions
diff --git a/pfinet/ChangeLog b/pfinet/ChangeLog index f7d002b4..57505c31 100644 --- a/pfinet/ChangeLog +++ b/pfinet/ChangeLog @@ -1,3 +1,10 @@ +2009-02-24 Samuel Thibault <samuel.thibault@ens-lyon.org> + + * linux-src/net/ipv6/addrconf.c (ipv6_addr_type): Use + __in6_u.__u6_addr32 member instead of in6_u.u6_addr32. + * linux-src/net/ipv6/icmpv6.c (icmpv6_rcv): Use + __in6_u.__u6_addr16 member instead of in6_u.u6_addr16. + 2008-10-02 Thomas Schwinge <tschwinge@gnu.org> * glue-include/linux/socket.h: Revert last change. diff --git a/pfinet/linux-src/net/ipv6/addrconf.c b/pfinet/linux-src/net/ipv6/addrconf.c index e72c382c..e3ca6d72 100644 --- a/pfinet/linux-src/net/ipv6/addrconf.c +++ b/pfinet/linux-src/net/ipv6/addrconf.c @@ -5,7 +5,7 @@ * Authors: * Pedro Roque <roque@di.fc.ul.pt> * - * $Id: addrconf.c,v 1.3 2007/10/14 02:26:10 stesie Exp $ + * $Id: addrconf.c,v 1.4 2009/02/24 01:21:14 sthibaul Exp $ * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -192,7 +192,7 @@ int ipv6_addr_type(struct in6_addr *addr) if ((addr->s6_addr32[0] | addr->s6_addr32[1]) == 0) { if (addr->s6_addr32[2] == 0) { - if (addr->in6_u.u6_addr32[3] == 0) + if (addr->__in6_u.__u6_addr32[3] == 0) return IPV6_ADDR_ANY; if (addr->s6_addr32[3] == __constant_htonl(0x00000001)) diff --git a/pfinet/linux-src/net/ipv6/icmpv6.c b/pfinet/linux-src/net/ipv6/icmpv6.c index 62dd149f..f7bebe0a 100644 --- a/pfinet/linux-src/net/ipv6/icmpv6.c +++ b/pfinet/linux-src/net/ipv6/icmpv6.c @@ -5,7 +5,7 @@ * Authors: * Pedro Roque <roque@di.fc.ul.pt> * - * $Id: icmpv6.c,v 1.2 2007/10/08 21:59:10 stesie Exp $ + * $Id: icmpv6.c,v 1.3 2009/02/24 01:21:16 sthibaul Exp $ * * Based on net/ipv4/icmp.c * @@ -479,22 +479,22 @@ int icmpv6_rcv(struct sk_buff *skb, unsigned long len) if (csum_ipv6_magic(saddr, daddr, len, IPPROTO_ICMPV6, skb->csum)) { printk(KERN_DEBUG "ICMPv6 checksum failed [%04x:%04x:%04x:%04x:%04x:%04x:%04x:%04x > %04x:%04x:%04x:%04x:%04x:%04x:%04x:%04x]\n", - ntohs(saddr->in6_u.u6_addr16[0]), - ntohs(saddr->in6_u.u6_addr16[1]), - ntohs(saddr->in6_u.u6_addr16[2]), - ntohs(saddr->in6_u.u6_addr16[3]), - ntohs(saddr->in6_u.u6_addr16[4]), - ntohs(saddr->in6_u.u6_addr16[5]), - ntohs(saddr->in6_u.u6_addr16[6]), - ntohs(saddr->in6_u.u6_addr16[7]), - ntohs(daddr->in6_u.u6_addr16[0]), - ntohs(daddr->in6_u.u6_addr16[1]), - ntohs(daddr->in6_u.u6_addr16[2]), - ntohs(daddr->in6_u.u6_addr16[3]), - ntohs(daddr->in6_u.u6_addr16[4]), - ntohs(daddr->in6_u.u6_addr16[5]), - ntohs(daddr->in6_u.u6_addr16[6]), - ntohs(daddr->in6_u.u6_addr16[7])); + ntohs(saddr->__in6_u.__u6_addr16[0]), + ntohs(saddr->__in6_u.__u6_addr16[1]), + ntohs(saddr->__in6_u.__u6_addr16[2]), + ntohs(saddr->__in6_u.__u6_addr16[3]), + ntohs(saddr->__in6_u.__u6_addr16[4]), + ntohs(saddr->__in6_u.__u6_addr16[5]), + ntohs(saddr->__in6_u.__u6_addr16[6]), + ntohs(saddr->__in6_u.__u6_addr16[7]), + ntohs(daddr->__in6_u.__u6_addr16[0]), + ntohs(daddr->__in6_u.__u6_addr16[1]), + ntohs(daddr->__in6_u.__u6_addr16[2]), + ntohs(daddr->__in6_u.__u6_addr16[3]), + ntohs(daddr->__in6_u.__u6_addr16[4]), + ntohs(daddr->__in6_u.__u6_addr16[5]), + ntohs(daddr->__in6_u.__u6_addr16[6]), + ntohs(daddr->__in6_u.__u6_addr16[7])); goto discard_it; } default: |