summaryrefslogtreecommitdiffstats
path: root/src/if.h
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-02-08 17:29:03 +0000
committerRoy Marples <roy@marples.name>2020-02-08 17:30:35 +0000
commit6c9db0a424e8929bd20c287fc4aa409961c4bc2c (patch)
tree1dcca0db4bf0d062627349aba3b4004500b1a539 /src/if.h
parentfdbf534d5155b208ee2f033659acb756855e193f (diff)
downloaddhcpcd-6c9db0a424e8929bd20c287fc4aa409961c4bc2c.tar.xz
BSD: Add support for RO_MISSFILTER route(4) socket option
This allows dhcpcd to only listen for RTM_MISS generated by default routers dhcpcd *could* install so if one becomes unreachable we can pick another.
Diffstat (limited to 'src/if.h')
-rw-r--r--src/if.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/if.h b/src/if.h
index 0656affe..bac109d6 100644
--- a/src/if.h
+++ b/src/if.h
@@ -206,6 +206,9 @@ int if_setmac(struct interface *ifp, void *, uint8_t);
int if_route(unsigned char, const struct rt *rt);
int if_initrt(struct dhcpcd_ctx *, rb_tree_t *, int);
+int if_missfilter(struct interface *, struct sockaddr *);
+int if_missfilter_apply(struct dhcpcd_ctx *);
+
#ifdef INET
int if_address(unsigned char, const struct ipv4_addr *);
int if_addrflags(const struct interface *, const struct in_addr *,