From: Roy Marples Date: Wed, 9 Jul 2008 07:46:55 +0000 (+0000) Subject: Add a macro to change a route. X-Git-Tag: v4.0.2~227 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7fa02284d45e7c36fe7012c360fd7835d973beb1;p=thirdparty%2Fdhcpcd.git Add a macro to change a route. --- 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 *);