summaryrefslogtreecommitdiffstats
path: root/net.h
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-07-09 07:46:55 +0000
committerRoy Marples <roy@marples.name>2008-07-09 07:46:55 +0000
commit7fa02284d45e7c36fe7012c360fd7835d973beb1 (patch)
tree56ee605cda35b00c803f1d69d0bea38253fb4a69 /net.h
parentd31af5110f301c20859d2572850e4e5b7227e532 (diff)
downloaddhcpcd-7fa02284d45e7c36fe7012c360fd7835d973beb1.tar.xz
Add a macro to change a route.
Diffstat (limited to 'net.h')
-rw-r--r--net.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/net.h b/net.h
index 3b030eb2..04a3e6ef 100644
--- a/net.h
+++ b/net.h
@@ -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 *);