aboutsummaryrefslogtreecommitdiff
path: root/networking/libiproute/iproute.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/libiproute/iproute.c')
-rw-r--r--networking/libiproute/iproute.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/networking/libiproute/iproute.c b/networking/libiproute/iproute.c
index 1696e6a34..f66774afe 100644
--- a/networking/libiproute/iproute.c
+++ b/networking/libiproute/iproute.c
@@ -1,19 +1,16 @@
1/* vi: set sw=4 ts=4: */ 1/* vi: set sw=4 ts=4: */
2/* 2/*
3 * iproute.c "ip route".
4 *
5 * Licensed under GPLv2 or later, see file LICENSE in this source tree. 3 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
6 * 4 *
7 * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> 5 * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
8 *
9 * 6 *
10 * Changes: 7 * Changes:
11 * 8 *
12 * Rani Assaf <rani@magic.metawire.com> 980929: resolve addresses 9 * Rani Assaf <rani@magic.metawire.com> 980929: resolve addresses
13 * Kunihiro Ishiguro <kunihiro@zebra.org> 001102: rtnh_ifindex was not initialized 10 * Kunihiro Ishiguro <kunihiro@zebra.org> 001102: rtnh_ifindex was not initialized
14 */ 11 */
15 12
16#include "ip_common.h" /* #include "libbb.h" is inside */ 13#include "ip_common.h" /* #include "libbb.h" is inside */
17#include "rt_names.h" 14#include "rt_names.h"
18#include "utils.h" 15#include "utils.h"
19 16
@@ -327,9 +324,9 @@ IF_FEATURE_IP_RULE(ARG_table,)
327 }; 324 };
328 struct rtnl_handle rth; 325 struct rtnl_handle rth;
329 struct { 326 struct {
330 struct nlmsghdr n; 327 struct nlmsghdr n;
331 struct rtmsg r; 328 struct rtmsg r;
332 char buf[1024]; 329 char buf[1024];
333 } req; 330 } req;
334 char mxbuf[256]; 331 char mxbuf[256];
335 struct rtattr * mxrta = (void*)mxbuf; 332 struct rtattr * mxrta = (void*)mxbuf;