diff options
| author | Roy Marples <roy@marples.name> | 2008-07-09 07:46:55 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2008-07-09 07:46:55 +0000 |
| commit | 7fa02284d45e7c36fe7012c360fd7835d973beb1 (patch) | |
| tree | 56ee605cda35b00c803f1d69d0bea38253fb4a69 /net.h | |
| parent | d31af5110f301c20859d2572850e4e5b7227e532 (diff) | |
| download | dhcpcd-7fa02284d45e7c36fe7012c360fd7835d973beb1.tar.xz | |
Add a macro to change a route.
Diffstat (limited to 'net.h')
| -rw-r--r-- | net.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -149,6 +149,8 @@ int if_route(const char *, const struct in_addr *, const struct in_addr *, const struct in_addr *, int, int); #define add_route(ifname, dest, mask, gate, metric) \ if_route(ifname, dest, mask, gate, metric, 1) +#define change_route(ifname, dest, mask, gate, metric) \ + if_route(ifname, dest, mask, gate, metric, 0) #define del_route(ifname, dest, mask, gate, metric) \ if_route(ifname, dest, mask, gate, metric, -1) void free_routes(struct rt *); |
