summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAlexander Langer <alex@FreeBSD.org>1998-01-10 16:14:18 +0000
committerAlexander Langer <alex@FreeBSD.org>1998-01-10 16:14:18 +0000
commit1e73fe2ae80e2b3048c9de136f1044289d5e7a35 (patch)
tree34f546a5fd61e4501627e45b15502023e43b944e /lib
parentf8ddb109a47a38ee9b42731967bdcb8647258380 (diff)
Notes
Diffstat (limited to 'lib')
-rw-r--r--lib/libalias/alias_db.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libalias/alias_db.c b/lib/libalias/alias_db.c
index ebcc3d9317eb..b07688f97a5b 100644
--- a/lib/libalias/alias_db.c
+++ b/lib/libalias/alias_db.c
@@ -2169,21 +2169,21 @@ PunchFWHole(struct alias_link *link) {
/* Build and apply specific part of the rules */
rule.fw_src = GetOriginalAddress(link);
rule.fw_dst = GetDestAddress(link);
- rule.fw_pts[0] = ntohs(GetOriginalPort(link));
- rule.fw_pts[1] = ntohs(GetDestPort(link));
+ rule.fw_uar.fw_pts[0] = ntohs(GetOriginalPort(link));
+ rule.fw_uar.fw_pts[1] = ntohs(GetDestPort(link));
/* Skip non-bound links - XXX should not be strictly necessary,
but seems to leave hole if not done. Leak of non-bound links?
(Code should be left even if the problem is fixed - it is a
clear optimization) */
- if (rule.fw_pts[0] != 0 && rule.fw_pts[1] != 0) {
+ if (rule.fw_uar.fw_pts[0] != 0 && rule.fw_uar.fw_pts[1] != 0) {
r = setsockopt(fireWallFD, IPPROTO_IP, IP_FW_ADD, &rule, sizeof rule);
if (r)
err(1, "alias punch inbound(1) setsockopt(IP_FW_ADD)");
rule.fw_src = GetDestAddress(link);
rule.fw_dst = GetOriginalAddress(link);
- rule.fw_pts[0] = ntohs(GetDestPort(link));
- rule.fw_pts[1] = ntohs(GetOriginalPort(link));
+ rule.fw_uar.fw_pts[0] = ntohs(GetDestPort(link));
+ rule.fw_uar.fw_pts[1] = ntohs(GetOriginalPort(link));
r = setsockopt(fireWallFD, IPPROTO_IP, IP_FW_ADD, &rule, sizeof rule);
if (r)
err(1, "alias punch inbound(2) setsockopt(IP_FW_ADD)");