diff options
author | David S. Miller <davem@davemloft.net> | 2012-05-16 01:02:40 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-05-16 01:02:40 -0400 |
commit | c727e7f0071cae66c029f667d48b154c6b64227b (patch) | |
tree | 197c2760fcae529d04d56f56e9cd55f51d6d9273 /net/ipv4 | |
parent | 91df42bedccb919902c7cf7eb876c982ae7f1b1d (diff) | |
parent | ee446fd5e6dafee4a16fd1bd345d2571dcfd6f5d (diff) |
Merge branch 'delete-tokenring' of git://git.kernel.org/pub/scm/linux/kernel/git/paulg/linux
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/Kconfig | 4 | ||||
-rw-r--r-- | net/ipv4/arp.c | 13 | ||||
-rw-r--r-- | net/ipv4/ipconfig.c | 2 |
3 files changed, 3 insertions, 16 deletions
diff --git a/net/ipv4/Kconfig b/net/ipv4/Kconfig index 2c8febd3ebda..20f1cb5c8aba 100644 --- a/net/ipv4/Kconfig +++ b/net/ipv4/Kconfig | |||
@@ -262,8 +262,8 @@ config ARPD | |||
262 | bool "IP: ARP daemon support" | 262 | bool "IP: ARP daemon support" |
263 | ---help--- | 263 | ---help--- |
264 | The kernel maintains an internal cache which maps IP addresses to | 264 | The kernel maintains an internal cache which maps IP addresses to |
265 | hardware addresses on the local network, so that Ethernet/Token Ring/ | 265 | hardware addresses on the local network, so that Ethernet |
266 | etc. frames are sent to the proper address on the physical networking | 266 | frames are sent to the proper address on the physical networking |
267 | layer. Normally, kernel uses the ARP protocol to resolve these | 267 | layer. Normally, kernel uses the ARP protocol to resolve these |
268 | mappings. | 268 | mappings. |
269 | 269 | ||
diff --git a/net/ipv4/arp.c b/net/ipv4/arp.c index 3e2bf3dedce5..cda37be02f8d 100644 --- a/net/ipv4/arp.c +++ b/net/ipv4/arp.c | |||
@@ -91,7 +91,6 @@ | |||
91 | #include <linux/etherdevice.h> | 91 | #include <linux/etherdevice.h> |
92 | #include <linux/fddidevice.h> | 92 | #include <linux/fddidevice.h> |
93 | #include <linux/if_arp.h> | 93 | #include <linux/if_arp.h> |
94 | #include <linux/trdevice.h> | ||
95 | #include <linux/skbuff.h> | 94 | #include <linux/skbuff.h> |
96 | #include <linux/proc_fs.h> | 95 | #include <linux/proc_fs.h> |
97 | #include <linux/seq_file.h> | 96 | #include <linux/seq_file.h> |
@@ -195,9 +194,6 @@ int arp_mc_map(__be32 addr, u8 *haddr, struct net_device *dev, int dir) | |||
195 | case ARPHRD_IEEE802: | 194 | case ARPHRD_IEEE802: |
196 | ip_eth_mc_map(addr, haddr); | 195 | ip_eth_mc_map(addr, haddr); |
197 | return 0; | 196 | return 0; |
198 | case ARPHRD_IEEE802_TR: | ||
199 | ip_tr_mc_map(addr, haddr); | ||
200 | return 0; | ||
201 | case ARPHRD_INFINIBAND: | 197 | case ARPHRD_INFINIBAND: |
202 | ip_ib_mc_map(addr, dev->broadcast, haddr); | 198 | ip_ib_mc_map(addr, dev->broadcast, haddr); |
203 | return 0; | 199 | return 0; |
@@ -649,12 +645,6 @@ struct sk_buff *arp_create(int type, int ptype, __be32 dest_ip, | |||
649 | arp->ar_pro = htons(ETH_P_IP); | 645 | arp->ar_pro = htons(ETH_P_IP); |
650 | break; | 646 | break; |
651 | #endif | 647 | #endif |
652 | #if IS_ENABLED(CONFIG_TR) | ||
653 | case ARPHRD_IEEE802_TR: | ||
654 | arp->ar_hrd = htons(ARPHRD_IEEE802); | ||
655 | arp->ar_pro = htons(ETH_P_IP); | ||
656 | break; | ||
657 | #endif | ||
658 | } | 648 | } |
659 | 649 | ||
660 | arp->ar_hln = dev->addr_len; | 650 | arp->ar_hln = dev->addr_len; |
@@ -752,11 +742,10 @@ static int arp_process(struct sk_buff *skb) | |||
752 | goto out; | 742 | goto out; |
753 | break; | 743 | break; |
754 | case ARPHRD_ETHER: | 744 | case ARPHRD_ETHER: |
755 | case ARPHRD_IEEE802_TR: | ||
756 | case ARPHRD_FDDI: | 745 | case ARPHRD_FDDI: |
757 | case ARPHRD_IEEE802: | 746 | case ARPHRD_IEEE802: |
758 | /* | 747 | /* |
759 | * ETHERNET, Token Ring and Fibre Channel (which are IEEE 802 | 748 | * ETHERNET, and Fibre Channel (which are IEEE 802 |
760 | * devices, according to RFC 2625) devices will accept ARP | 749 | * devices, according to RFC 2625) devices will accept ARP |
761 | * hardware types of either 1 (Ethernet) or 6 (IEEE 802.2). | 750 | * hardware types of either 1 (Ethernet) or 6 (IEEE 802.2). |
762 | * This is the case also of FDDI, where the RFC 1390 says that | 751 | * This is the case also of FDDI, where the RFC 1390 says that |
diff --git a/net/ipv4/ipconfig.c b/net/ipv4/ipconfig.c index 24a3df9890e1..430015010e57 100644 --- a/net/ipv4/ipconfig.c +++ b/net/ipv4/ipconfig.c | |||
@@ -808,8 +808,6 @@ static void __init ic_bootp_send_if(struct ic_device *d, unsigned long jiffies_d | |||
808 | b->op = BOOTP_REQUEST; | 808 | b->op = BOOTP_REQUEST; |
809 | if (dev->type < 256) /* check for false types */ | 809 | if (dev->type < 256) /* check for false types */ |
810 | b->htype = dev->type; | 810 | b->htype = dev->type; |
811 | else if (dev->type == ARPHRD_IEEE802_TR) /* fix for token ring */ | ||
812 | b->htype = ARPHRD_IEEE802; | ||
813 | else if (dev->type == ARPHRD_FDDI) | 811 | else if (dev->type == ARPHRD_FDDI) |
814 | b->htype = ARPHRD_ETHER; | 812 | b->htype = ARPHRD_ETHER; |
815 | else { | 813 | else { |