aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/ppp/bundle.c
diff options
context:
space:
mode:
authorBrian Somers <brian@FreeBSD.org>1999-05-31 23:57:40 +0000
committerBrian Somers <brian@FreeBSD.org>1999-05-31 23:57:40 +0000
commit1d1fc0171ef9061517a58ab70a7d0e2e8de33977 (patch)
treebf74e4fcdd424aa09133fd467573709819c78df2 /usr.sbin/ppp/bundle.c
parent114278b089f1e2763490426376d1736cc7996720 (diff)
downloadsrc-1d1fc0171ef9061517a58ab70a7d0e2e8de33977.tar.gz
src-1d1fc0171ef9061517a58ab70a7d0e2e8de33977.zip
Remember if MYADDR or HISADDR is used in a filter add tweak all
filters any time either value changes.
Notes
Notes: svn path=/head/; revision=47648
Diffstat (limited to 'usr.sbin/ppp/bundle.c')
-rw-r--r--usr.sbin/ppp/bundle.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/usr.sbin/ppp/bundle.c b/usr.sbin/ppp/bundle.c
index 0e47f81a554e..757621b7ff33 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);
+}