diff options
Diffstat (limited to 'networking/libiproute/iproute.c')
-rw-r--r-- | networking/libiproute/iproute.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/networking/libiproute/iproute.c b/networking/libiproute/iproute.c index b622afd47..1c4f75520 100644 --- a/networking/libiproute/iproute.c +++ b/networking/libiproute/iproute.c | |||
@@ -286,9 +286,9 @@ static int iproute_modify(int cmd, unsigned flags, int argc, char **argv) | |||
286 | { | 286 | { |
287 | struct rtnl_handle rth; | 287 | struct rtnl_handle rth; |
288 | struct { | 288 | struct { |
289 | struct nlmsghdr n; | 289 | struct nlmsghdr n; |
290 | struct rtmsg r; | 290 | struct rtmsg r; |
291 | char buf[1024]; | 291 | char buf[1024]; |
292 | } req; | 292 | } req; |
293 | char mxbuf[256]; | 293 | char mxbuf[256]; |
294 | struct rtattr * mxrta = (void*)mxbuf; | 294 | struct rtattr * mxrta = (void*)mxbuf; |
@@ -648,15 +648,15 @@ static int iproute_get(int argc, char **argv) | |||
648 | { | 648 | { |
649 | struct rtnl_handle rth; | 649 | struct rtnl_handle rth; |
650 | struct { | 650 | struct { |
651 | struct nlmsghdr n; | 651 | struct nlmsghdr n; |
652 | struct rtmsg r; | 652 | struct rtmsg r; |
653 | char buf[1024]; | 653 | char buf[1024]; |
654 | } req; | 654 | } req; |
655 | char *idev = NULL; | 655 | char *idev = NULL; |
656 | char *odev = NULL; | 656 | char *odev = NULL; |
657 | int connected = 0; | 657 | int connected = 0; |
658 | int from_ok = 0; | 658 | int from_ok = 0; |
659 | static const char * const options[] = | 659 | static const char * const options[] = |
660 | { "from", "iif", "oif", "dev", "notify", "connected", "to", 0 }; | 660 | { "from", "iif", "oif", "dev", "notify", "connected", "to", 0 }; |
661 | 661 | ||
662 | memset(&req, 0, sizeof(req)); | 662 | memset(&req, 0, sizeof(req)); |
@@ -816,8 +816,8 @@ static int iproute_get(int argc, char **argv) | |||
816 | 816 | ||
817 | int do_iproute(int argc, char **argv) | 817 | int do_iproute(int argc, char **argv) |
818 | { | 818 | { |
819 | static const char * const ip_route_commands[] = | 819 | static const char * const ip_route_commands[] = |
820 | { "add", "append", "change", "chg", "delete", "del", "get", | 820 | { "add", "append", "change", "chg", "delete", "del", "get", |
821 | "list", "show", "prepend", "replace", "test", "flush", 0 }; | 821 | "list", "show", "prepend", "replace", "test", "flush", 0 }; |
822 | int command_num = 7; | 822 | int command_num = 7; |
823 | unsigned int flags = 0; | 823 | unsigned int flags = 0; |