patch-2.3.14 linux/net/core/rtnetlink.c
Next file: linux/net/core/sock.c
Previous file: linux/net/core/profile.c
Back to the patch index
Back to the overall index
- Lines: 36
- Date:
Wed Aug 18 11:38:48 1999
- Orig file:
v2.3.13/linux/net/core/rtnetlink.c
- Orig date:
Wed Jun 9 14:45:36 1999
diff -u --recursive --new-file v2.3.13/linux/net/core/rtnetlink.c linux/net/core/rtnetlink.c
@@ -136,7 +136,7 @@
return err;
}
-static int rtnetlink_fill_ifinfo(struct sk_buff *skb, struct device *dev,
+static int rtnetlink_fill_ifinfo(struct sk_buff *skb, struct net_device *dev,
int type, u32 pid, u32 seq)
{
struct ifinfomsg *r;
@@ -185,7 +185,7 @@
{
int idx;
int s_idx = cb->args[0];
- struct device *dev;
+ struct net_device *dev;
read_lock(&dev_base_lock);
for (dev=dev_base, idx=0; dev; dev = dev->next, idx++) {
@@ -224,7 +224,7 @@
return skb->len;
}
-void rtmsg_ifinfo(int type, struct device *dev)
+void rtmsg_ifinfo(int type, struct net_device *dev)
{
struct sk_buff *skb;
int size = NLMSG_GOODSIZE;
@@ -464,7 +464,7 @@
static int rtnetlink_event(struct notifier_block *this, unsigned long event, void *ptr)
{
- struct device *dev = ptr;
+ struct net_device *dev = ptr;
switch (event) {
case NETDEV_UNREGISTER:
rtmsg_ifinfo(RTM_DELLINK, dev);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)