summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrian <brian@cvs.openbsd.org>2000-07-03 09:57:15 +0000
committerbrian <brian@cvs.openbsd.org>2000-07-03 09:57:15 +0000
commit93bd2a33d00d591318becda7791e7943665853ca (patch)
treed5dfb7f5495d796e0e3b91f007aa5c88a7bdcaa2
parentefa329130a0d7be8fcbce53793f068a14dc6b22f (diff)
Correct the number of src/dst ports and add some FreeBSD specific
firewall punching fixes. Obtained from: FreeBSD
-rw-r--r--usr.sbin/ppp/ppp/alias_db.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/ppp/ppp/alias_db.c b/usr.sbin/ppp/ppp/alias_db.c
index b5e1329733c..eddce44f422 100644
--- a/usr.sbin/ppp/ppp/alias_db.c
+++ b/usr.sbin/ppp/ppp/alias_db.c
@@ -105,7 +105,7 @@
See HISTORY file for additional revisions.
- $OpenBSD: alias_db.c,v 1.11 2000/06/23 09:47:04 brian Exp $
+ $OpenBSD: alias_db.c,v 1.12 2000/07/03 09:57:14 brian Exp $
*/
@@ -2535,8 +2535,9 @@ PunchFWHole(struct alias_link *link) {
/* Build generic part of the two rules */
rule.fw_number = fwhole;
- rule.fw_nports = 1; /* Number of source ports; dest ports follow */
- rule.fw_flg = IP_FW_F_ACCEPT;
+ IP_FW_SETNSRCP(&rule, 1); /* Number of source ports. */
+ IP_FW_SETNDSTP(&rule, 1); /* Number of destination ports. */
+ rule.fw_flg = IP_FW_F_ACCEPT | IP_FW_F_IN | IP_FW_F_OUT;
rule.fw_prot = IPPROTO_TCP;
rule.fw_smsk.s_addr = INADDR_BROADCAST;
rule.fw_dmsk.s_addr = INADDR_BROADCAST;