diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2005-06-07 18:21:45 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2005-06-07 18:21:45 +0000 |
commit | b7e47a80cdc66f2726bd38e4b86ede0e27c29d02 (patch) | |
tree | aed7102a128bb77122f71da6681450c9a562f482 /sys/net/route.c | |
parent | f3618e3949557b2911745765284653291329f89d (diff) |
introduce a default "external" interface group, containing the interface(s)
the the default route(s) point to.
handles IPv4 and IPv6 as well as multipath routes.
follows default route changes, of course.
eases writing pf rulesets especially on laptops etc. that use different
interfaces depending on the environment (wired, wireless, ...)
ok theo ryan
Diffstat (limited to 'sys/net/route.c')
-rw-r--r-- | sys/net/route.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net/route.c b/sys/net/route.c index c5864cbcbd0..c5f8baa38a4 100644 --- a/sys/net/route.c +++ b/sys/net/route.c @@ -1,4 +1,4 @@ -/* $OpenBSD: route.c,v 1.51 2005/05/15 16:40:09 henning Exp $ */ +/* $OpenBSD: route.c,v 1.52 2005/06/07 18:21:44 henning Exp $ */ /* $NetBSD: route.c,v 1.14 1996/02/13 22:00:46 christos Exp $ */ /* @@ -804,6 +804,8 @@ rtrequest1(int req, struct rt_addrinfo *info, struct rtentry **ret_nrt) /* clean up any cloned children */ rtflushclone(rnh, rt); } + + if_group_routechange(dst, netmask); break; } bad: |