summaryrefslogtreecommitdiffstats
path: root/net.h
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-09-08 11:30:31 +0000
committerRoy Marples <roy@marples.name>2008-09-08 11:30:31 +0000
commitcf7a295fa370022c78bf971667e61f69450104a4 (patch)
tree3e8cd16b94b87f88e0b4c37066ef43d468169f87 /net.h
parentc130b44207af00d374c6eee6c115b210a2b9bd49 (diff)
downloaddhcpcd-cf7a295fa370022c78bf971667e61f69450104a4.tar.xz
On Linux, fix replacing the kernel added subnet route correctly for metrics.
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 0629302a..87d0d4c8 100644
--- a/net.h
+++ b/net.h
@@ -132,6 +132,8 @@ int if_route(const struct interface *, const struct in_addr *,
if_route(iface, dest, mask, gate, metric, 0)
#define del_route(iface, dest, mask, gate, metric) \
if_route(iface, dest, mask, gate, metric, -1)
+#define del_src_route(iface, dest, mask, gate, metric) \
+ if_route(iface, dest, mask, gate, metric, -2)
void free_routes(struct rt *);
int open_udp_socket(struct interface *);