devinet.c (5a2dd72abdae75ea2960145e0549635ce4e0be96) devinet.c (eefef1cf7653cd4e0aaf743c00ae8345086cdc01)
1/*
2 * NET3 IP device support routines.
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version
7 * 2 of the License, or (at your option) any later version.
8 *

--- 1061 unchanged lines hidden (view full) ---

1070 in_dev_hold(in_dev);
1071 ifa->ifa_dev = in_dev;
1072 ifa->ifa_scope = RT_SCOPE_HOST;
1073 memcpy(ifa->ifa_label, dev->name, IFNAMSIZ);
1074 inet_insert_ifa(ifa);
1075 }
1076 }
1077 ip_mc_up(in_dev);
1/*
2 * NET3 IP device support routines.
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version
7 * 2 of the License, or (at your option) any later version.
8 *

--- 1061 unchanged lines hidden (view full) ---

1070 in_dev_hold(in_dev);
1071 ifa->ifa_dev = in_dev;
1072 ifa->ifa_scope = RT_SCOPE_HOST;
1073 memcpy(ifa->ifa_label, dev->name, IFNAMSIZ);
1074 inet_insert_ifa(ifa);
1075 }
1076 }
1077 ip_mc_up(in_dev);
1078 /* fall through */
1079 case NETDEV_CHANGEADDR:
1080 if (IN_DEV_ARP_NOTIFY(in_dev))
1081 arp_send(ARPOP_REQUEST, ETH_P_ARP,
1082 in_dev->ifa_list->ifa_address,
1083 dev,
1084 in_dev->ifa_list->ifa_address,
1085 NULL, dev->dev_addr, NULL);
1078 break;
1079 case NETDEV_DOWN:
1080 ip_mc_down(in_dev);
1081 break;
1082 case NETDEV_CHANGEMTU:
1083 if (inetdev_valid_mtu(dev->mtu))
1084 break;
1085 /* disable IP when MTU is not enough */

--- 348 unchanged lines hidden (view full) ---

1434 DEVINET_SYSCTL_RW_ENTRY(MEDIUM_ID, "medium_id"),
1435 DEVINET_SYSCTL_RW_ENTRY(BOOTP_RELAY, "bootp_relay"),
1436 DEVINET_SYSCTL_RW_ENTRY(LOG_MARTIANS, "log_martians"),
1437 DEVINET_SYSCTL_RW_ENTRY(TAG, "tag"),
1438 DEVINET_SYSCTL_RW_ENTRY(ARPFILTER, "arp_filter"),
1439 DEVINET_SYSCTL_RW_ENTRY(ARP_ANNOUNCE, "arp_announce"),
1440 DEVINET_SYSCTL_RW_ENTRY(ARP_IGNORE, "arp_ignore"),
1441 DEVINET_SYSCTL_RW_ENTRY(ARP_ACCEPT, "arp_accept"),
1086 break;
1087 case NETDEV_DOWN:
1088 ip_mc_down(in_dev);
1089 break;
1090 case NETDEV_CHANGEMTU:
1091 if (inetdev_valid_mtu(dev->mtu))
1092 break;
1093 /* disable IP when MTU is not enough */

--- 348 unchanged lines hidden (view full) ---

1442 DEVINET_SYSCTL_RW_ENTRY(MEDIUM_ID, "medium_id"),
1443 DEVINET_SYSCTL_RW_ENTRY(BOOTP_RELAY, "bootp_relay"),
1444 DEVINET_SYSCTL_RW_ENTRY(LOG_MARTIANS, "log_martians"),
1445 DEVINET_SYSCTL_RW_ENTRY(TAG, "tag"),
1446 DEVINET_SYSCTL_RW_ENTRY(ARPFILTER, "arp_filter"),
1447 DEVINET_SYSCTL_RW_ENTRY(ARP_ANNOUNCE, "arp_announce"),
1448 DEVINET_SYSCTL_RW_ENTRY(ARP_IGNORE, "arp_ignore"),
1449 DEVINET_SYSCTL_RW_ENTRY(ARP_ACCEPT, "arp_accept"),
1450 DEVINET_SYSCTL_RW_ENTRY(ARP_NOTIFY, "arp_notify"),
1442
1443 DEVINET_SYSCTL_FLUSHING_ENTRY(NOXFRM, "disable_xfrm"),
1444 DEVINET_SYSCTL_FLUSHING_ENTRY(NOPOLICY, "disable_policy"),
1445 DEVINET_SYSCTL_FLUSHING_ENTRY(FORCE_IGMP_VERSION,
1446 "force_igmp_version"),
1447 DEVINET_SYSCTL_FLUSHING_ENTRY(PROMOTE_SECONDARIES,
1448 "promote_secondaries"),
1449 },

--- 217 unchanged lines hidden ---
1451
1452 DEVINET_SYSCTL_FLUSHING_ENTRY(NOXFRM, "disable_xfrm"),
1453 DEVINET_SYSCTL_FLUSHING_ENTRY(NOPOLICY, "disable_policy"),
1454 DEVINET_SYSCTL_FLUSHING_ENTRY(FORCE_IGMP_VERSION,
1455 "force_igmp_version"),
1456 DEVINET_SYSCTL_FLUSHING_ENTRY(PROMOTE_SECONDARIES,
1457 "promote_secondaries"),
1458 },

--- 217 unchanged lines hidden ---