aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2012-05-16 01:02:40 -0400
committerDavid S. Miller <davem@davemloft.net>2012-05-16 01:02:40 -0400
commitc727e7f0071cae66c029f667d48b154c6b64227b (patch)
tree197c2760fcae529d04d56f56e9cd55f51d6d9273 /net/ipv6
parent91df42bedccb919902c7cf7eb876c982ae7f1b1d (diff)
parentee446fd5e6dafee4a16fd1bd345d2571dcfd6f5d (diff)
Merge branch 'delete-tokenring' of git://git.kernel.org/pub/scm/linux/kernel/git/paulg/linux
Diffstat (limited to 'net/ipv6')
-rw-r--r--net/ipv6/addrconf.c2
-rw-r--r--net/ipv6/ndisc.c17
2 files changed, 0 insertions, 19 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c
index 8ec009c0b2bc..8f6411c97189 100644
--- a/net/ipv6/addrconf.c
+++ b/net/ipv6/addrconf.c
@@ -1573,7 +1573,6 @@ static int ipv6_generate_eui64(u8 *eui, struct net_device *dev)
1573 switch (dev->type) { 1573 switch (dev->type) {
1574 case ARPHRD_ETHER: 1574 case ARPHRD_ETHER:
1575 case ARPHRD_FDDI: 1575 case ARPHRD_FDDI:
1576 case ARPHRD_IEEE802_TR:
1577 return addrconf_ifid_eui48(eui, dev); 1576 return addrconf_ifid_eui48(eui, dev);
1578 case ARPHRD_ARCNET: 1577 case ARPHRD_ARCNET:
1579 return addrconf_ifid_arcnet(eui, dev); 1578 return addrconf_ifid_arcnet(eui, dev);
@@ -2441,7 +2440,6 @@ static void addrconf_dev_config(struct net_device *dev)
2441 2440
2442 if ((dev->type != ARPHRD_ETHER) && 2441 if ((dev->type != ARPHRD_ETHER) &&
2443 (dev->type != ARPHRD_FDDI) && 2442 (dev->type != ARPHRD_FDDI) &&
2444 (dev->type != ARPHRD_IEEE802_TR) &&
2445 (dev->type != ARPHRD_ARCNET) && 2443 (dev->type != ARPHRD_ARCNET) &&
2446 (dev->type != ARPHRD_INFINIBAND) && 2444 (dev->type != ARPHRD_INFINIBAND) &&
2447 (dev->type != ARPHRD_IEEE802154)) { 2445 (dev->type != ARPHRD_IEEE802154)) {
diff --git a/net/ipv6/ndisc.c b/net/ipv6/ndisc.c
index 511e5b4bb610..cbb863d66481 100644
--- a/net/ipv6/ndisc.c
+++ b/net/ipv6/ndisc.c
@@ -327,9 +327,6 @@ int ndisc_mc_map(const struct in6_addr *addr, char *buf, struct net_device *dev,
327 case ARPHRD_FDDI: 327 case ARPHRD_FDDI:
328 ipv6_eth_mc_map(addr, buf); 328 ipv6_eth_mc_map(addr, buf);
329 return 0; 329 return 0;
330 case ARPHRD_IEEE802_TR:
331 ipv6_tr_mc_map(addr,buf);
332 return 0;
333 case ARPHRD_ARCNET: 330 case ARPHRD_ARCNET:
334 ipv6_arcnet_mc_map(addr, buf); 331 ipv6_arcnet_mc_map(addr, buf);
335 return 0; 332 return 0;
@@ -795,20 +792,6 @@ static void ndisc_recv_ns(struct sk_buff *skb)
795 792
796 if (ifp->flags & (IFA_F_TENTATIVE|IFA_F_OPTIMISTIC)) { 793 if (ifp->flags & (IFA_F_TENTATIVE|IFA_F_OPTIMISTIC)) {
797 if (dad) { 794 if (dad) {
798 if (dev->type == ARPHRD_IEEE802_TR) {
799 const unsigned char *sadr;
800 sadr = skb_mac_header(skb);
801 if (((sadr[8] ^ dev->dev_addr[0]) & 0x7f) == 0 &&
802 sadr[9] == dev->dev_addr[1] &&
803 sadr[10] == dev->dev_addr[2] &&
804 sadr[11] == dev->dev_addr[3] &&
805 sadr[12] == dev->dev_addr[4] &&
806 sadr[13] == dev->dev_addr[5]) {
807 /* looped-back to us */
808 goto out;
809 }
810 }
811
812 /* 795 /*
813 * We are colliding with another node 796 * We are colliding with another node
814 * who is doing DAD 797 * who is doing DAD