diff options
author | brian <brian@FreeBSD.org> | 1999-05-31 23:57:40 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1999-05-31 23:57:40 +0000 |
commit | effd1329581e4951c2c0510fec1c97d88a8948ae (patch) | |
tree | c077d488204cbd35f49fd4f5a0d07c1965632500 /usr.sbin/ppp/bundle.c | |
parent | af9cf37e43c276b5ebe85c40a527b2004c7bb00c (diff) | |
download | FreeBSD-src-effd1329581e4951c2c0510fec1c97d88a8948ae.zip FreeBSD-src-effd1329581e4951c2c0510fec1c97d88a8948ae.tar.gz |
Remember if MYADDR or HISADDR is used in a filter add tweak all
filters any time either value changes.
Diffstat (limited to 'usr.sbin/ppp/bundle.c')
-rw-r--r-- | usr.sbin/ppp/bundle.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/usr.sbin/ppp/bundle.c b/usr.sbin/ppp/bundle.c index 0e47f81..757621b 100644 --- a/usr.sbin/ppp/bundle.c +++ b/usr.sbin/ppp/bundle.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: bundle.c,v 1.53 1999/05/12 09:48:41 brian Exp $ + * $Id: bundle.c,v 1.54 1999/05/27 08:42:15 brian Exp $ */ #include <sys/param.h> @@ -1710,3 +1710,13 @@ bundle_Exception(struct bundle *bundle, int fd) return 0; } + +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); +} |