diff options
Diffstat (limited to 'networking/libiproute/libnetlink.c')
-rw-r--r-- | networking/libiproute/libnetlink.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/networking/libiproute/libnetlink.c b/networking/libiproute/libnetlink.c index 8da80b2fc..7291ee2f1 100644 --- a/networking/libiproute/libnetlink.c +++ b/networking/libiproute/libnetlink.c | |||
@@ -1,7 +1,5 @@ | |||
1 | /* vi: set sw=4 ts=4: */ | 1 | /* vi: set sw=4 ts=4: */ |
2 | /* | 2 | /* |
3 | * RTnetlink service routines. | ||
4 | * | ||
5 | * This program is free software; you can redistribute it and/or | 3 | * This program is free software; you can redistribute it and/or |
6 | * modify it under the terms of the GNU General Public License | 4 | * modify it under the terms of the GNU General Public License |
7 | * as published by the Free Software Foundation; either version | 5 | * as published by the Free Software Foundation; either version |
@@ -74,8 +72,8 @@ int FAST_FUNC rtnl_dump_request(struct rtnl_handle *rth, int type, void *req, in | |||
74 | struct iovec iov[2] = { { &nlh, sizeof(nlh) }, { req, len } }; | 72 | struct iovec iov[2] = { { &nlh, sizeof(nlh) }, { req, len } }; |
75 | struct msghdr msg = { | 73 | struct msghdr msg = { |
76 | (void*)&nladdr, sizeof(nladdr), | 74 | (void*)&nladdr, sizeof(nladdr), |
77 | iov, 2, | 75 | iov, 2, |
78 | NULL, 0, | 76 | NULL, 0, |
79 | 0 | 77 | 0 |
80 | }; | 78 | }; |
81 | 79 | ||
@@ -108,8 +106,8 @@ static int rtnl_dump_filter(struct rtnl_handle *rth, | |||
108 | 106 | ||
109 | struct msghdr msg = { | 107 | struct msghdr msg = { |
110 | (void*)&nladdr, sizeof(nladdr), | 108 | (void*)&nladdr, sizeof(nladdr), |
111 | &iov, 1, | 109 | &iov, 1, |
112 | NULL, 0, | 110 | NULL, 0, |
113 | 0 | 111 | 0 |
114 | }; | 112 | }; |
115 | 113 | ||
@@ -214,8 +212,8 @@ int FAST_FUNC rtnl_talk(struct rtnl_handle *rtnl, struct nlmsghdr *n, | |||
214 | char *buf = xmalloc(8*1024); /* avoid big stack buffer */ | 212 | char *buf = xmalloc(8*1024); /* avoid big stack buffer */ |
215 | struct msghdr msg = { | 213 | struct msghdr msg = { |
216 | (void*)&nladdr, sizeof(nladdr), | 214 | (void*)&nladdr, sizeof(nladdr), |
217 | &iov, 1, | 215 | &iov, 1, |
218 | NULL, 0, | 216 | NULL, 0, |
219 | 0 | 217 | 0 |
220 | }; | 218 | }; |
221 | 219 | ||