summaryrefslogtreecommitdiffhomepage
path: root/system-linux.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-02-26 16:38:06 +0100
committerFelix Fietkau <nbd@openwrt.org>2012-02-26 16:38:06 +0100
commit58d36928da0e3099e17309bd7a44ee442b5f5153 (patch)
tree014a32c4c7fad476960b02a510009590593b6599 /system-linux.c
parent13490ce99ab44afdf20a129fc9232682ed67b7ce (diff)
remove device_{route,addr}->device
Diffstat (limited to 'system-linux.c')
-rw-r--r--system-linux.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/system-linux.c b/system-linux.c
index 7f825fa..58ac5d4 100644
--- a/system-linux.c
+++ b/system-linux.c
@@ -816,14 +816,6 @@ static int system_addr(struct device *dev, struct device_addr *addr, int cmd)
struct nl_msg *msg;
- dev = addr->device;
- if (dev) {
- if (!dev->ifindex)
- return -1;
-
- ifa.ifa_index = dev->ifindex;
- }
-
msg = nlmsg_alloc_simple(cmd, 0);
if (!msg)
return -1;
@@ -874,14 +866,6 @@ static int system_rt(struct device *dev, struct device_route *route, int cmd)
if (cmd == RTM_NEWROUTE)
flags |= NLM_F_CREATE | NLM_F_REPLACE;
- dev = route->device;
- if (dev) {
- if (!dev->ifindex)
- return -1;
-
- ifindex = dev->ifindex;
- }
-
msg = nlmsg_alloc_simple(cmd, flags);
if (!msg)
return -1;