diff options
author | Denys Vlasenko | 2013-01-20 18:10:12 +0100 |
---|---|---|
committer | Denys Vlasenko | 2013-01-20 18:10:12 +0100 |
commit | 31dc8603eedc0140c798c9af3404a35ea190af2c (patch) | |
tree | b8115230c65e5087d48111c3db9ebf7c90f61448 /networking/route.c | |
parent | 2f5b5beb28a3ffe9d12a19b79c453c640cee2f29 (diff) | |
download | busybox-31dc8603eedc0140c798c9af3404a35ea190af2c.zip busybox-31dc8603eedc0140c798c9af3404a35ea190af2c.tar.gz |
ifconfig: do not accept "ifconfig eth0 up 1.2.3.4/17" (ip with mask). Closes 5786
function old new delta
ifconfig_main 1221 1237 +16
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/route.c')
-rw-r--r-- | networking/route.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/route.c b/networking/route.c index f662031..4235ea7 100644 --- a/networking/route.c +++ b/networking/route.c @@ -435,7 +435,7 @@ static NOINLINE void INET6_setroute(int action, char **args) struct ifreq ifr; memset(&ifr, 0, sizeof(ifr)); strncpy_IFNAMSIZ(ifr.ifr_name, devname); - xioctl(skfd, SIOGIFINDEX, &ifr); + xioctl(skfd, SIOCGIFINDEX, &ifr); rt.rtmsg_ifindex = ifr.ifr_ifindex; } |