]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Add a macro to change a route.
authorRoy Marples <roy@marples.name>
Wed, 9 Jul 2008 07:46:55 +0000 (07:46 +0000)
committerRoy Marples <roy@marples.name>
Wed, 9 Jul 2008 07:46:55 +0000 (07:46 +0000)
net.h

diff --git a/net.h b/net.h
index 3b030eb242b2f0c1e54cc78d071f58985c09d08b..04a3e6ef7180f0dc785b8bffff469102e204da69 100644 (file)
--- 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 *);