summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/bundle.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2000-03-14 01:47:27 +0000
committerbrian <brian@FreeBSD.org>2000-03-14 01:47:27 +0000
commit1bc8ab9f4fde76438c6683101c2d510c86e8d978 (patch)
tree04d2970ad1d86e4a24bfa1b4c7a2b7e16e96b535 /usr.sbin/ppp/bundle.c
parent041ec329dc4111a616c48d22712dfcaf9cbfe9bb (diff)
downloadFreeBSD-src-1bc8ab9f4fde76438c6683101c2d510c86e8d978.zip
FreeBSD-src-1bc8ab9f4fde76438c6683101c2d510c86e8d978.tar.gz
Add the ``resolv'' command for telling ppp how to deal with resolv.conf.
You can now ``resolv restore'' in ppp.linkdown ! Add DNS0 and DNS1 macros.
Diffstat (limited to 'usr.sbin/ppp/bundle.c')
-rw-r--r--usr.sbin/ppp/bundle.c17
1 files changed, 13 insertions, 4 deletions
diff --git a/usr.sbin/ppp/bundle.c b/usr.sbin/ppp/bundle.c
index f9a9cce..5b5504c 100644
--- a/usr.sbin/ppp/bundle.c
+++ b/usr.sbin/ppp/bundle.c
@@ -1871,10 +1871,19 @@ void
bundle_AdjustFilters(struct bundle *bundle, struct in_addr *my_ip,
struct in_addr *peer_ip)
{
- filter_AdjustAddr(&bundle->filter.in, my_ip, peer_ip);
- filter_AdjustAddr(&bundle->filter.out, my_ip, peer_ip);
- filter_AdjustAddr(&bundle->filter.dial, my_ip, peer_ip);
- filter_AdjustAddr(&bundle->filter.alive, my_ip, peer_ip);
+ filter_AdjustAddr(&bundle->filter.in, my_ip, peer_ip, NULL);
+ filter_AdjustAddr(&bundle->filter.out, my_ip, peer_ip, NULL);
+ filter_AdjustAddr(&bundle->filter.dial, my_ip, peer_ip, NULL);
+ filter_AdjustAddr(&bundle->filter.alive, my_ip, peer_ip, NULL);
+}
+
+void
+bundle_AdjustDNS(struct bundle *bundle, struct in_addr dns[2])
+{
+ filter_AdjustAddr(&bundle->filter.in, NULL, NULL, dns);
+ filter_AdjustAddr(&bundle->filter.out, NULL, NULL, dns);
+ filter_AdjustAddr(&bundle->filter.dial, NULL, NULL, dns);
+ filter_AdjustAddr(&bundle->filter.alive, NULL, NULL, dns);
}
void
OpenPOWER on IntegriCloud