patch-2.4.17 linux/net/ipv4/devinet.c
Next file: linux/net/ipv4/fib_frontend.c
Previous file: linux/net/ipv4/af_inet.c
Back to the patch index
Back to the overall index
- Lines: 67
- Date:
Fri Dec 21 16:40:33 2001
- Orig file:
linux-2.4.16/net/ipv4/devinet.c
- Orig date:
Mon Oct 1 16:19:57 2001
diff -Naur -X /home/marcelo/lib/dontdiff linux-2.4.16/net/ipv4/devinet.c linux/net/ipv4/devinet.c
@@ -1,7 +1,7 @@
/*
* NET3 IP device support routines.
*
- * Version: $Id: devinet.c,v 1.43 2001/09/26 22:52:58 davem Exp $
+ * Version: $Id: devinet.c,v 1.44 2001/10/31 21:55:54 davem Exp $
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@@ -63,11 +63,7 @@
struct ipv4_devconf ipv4_devconf = { 1, 1, 1, 1, 0, };
static struct ipv4_devconf ipv4_devconf_dflt = { 1, 1, 1, 1, 1, };
-#ifdef CONFIG_RTNETLINK
static void rtmsg_ifa(int event, struct in_ifaddr *);
-#else
-#define rtmsg_ifa(a,b) do { } while(0)
-#endif
static struct notifier_block *inetaddr_chain;
static void inet_del_ifa(struct in_device *in_dev, struct in_ifaddr **ifap, int destroy);
@@ -359,8 +355,6 @@
return NULL;
}
-#ifdef CONFIG_RTNETLINK
-
int
inet_rtm_deladdr(struct sk_buff *skb, struct nlmsghdr *nlh, void *arg)
{
@@ -437,8 +431,6 @@
return inet_insert_ifa(ifa);
}
-#endif
-
/*
* Determine a default network mask, based on the IP address.
*/
@@ -859,8 +851,6 @@
notifier_call: inetdev_event,
};
-#ifdef CONFIG_RTNETLINK
-
static int inet_fill_ifaddr(struct sk_buff *skb, struct in_ifaddr *ifa,
u32 pid, u32 seq, int event)
{
@@ -994,8 +984,6 @@
#endif
};
-#endif /* CONFIG_RTNETLINK */
-
#ifdef CONFIG_SYSCTL
@@ -1150,9 +1138,7 @@
{
register_gifconf(PF_INET, inet_gifconf);
register_netdevice_notifier(&ip_netdev_notifier);
-#ifdef CONFIG_RTNETLINK
rtnetlink_links[PF_INET] = inet_rtnetlink_table;
-#endif
#ifdef CONFIG_SYSCTL
devinet_sysctl.sysctl_header =
register_sysctl_table(devinet_sysctl.devinet_root_dir, 0);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)