aboutsummaryrefslogtreecommitdiffstats
path: root/net/xorp
diff options
context:
space:
mode:
authorbms <bms@FreeBSD.org>2007-01-11 04:19:29 +0800
committerbms <bms@FreeBSD.org>2007-01-11 04:19:29 +0800
commite63efb3dfa8e069552bdc2fed06f8024d5f3f057 (patch)
treec85fc6fa072e7e9babf797fa68a5214df24fd519 /net/xorp
parent02c6803cf56276e5cdc8e5b63741f00bf7ec7987 (diff)
downloadfreebsd-ports-gnome-e63efb3dfa8e069552bdc2fed06f8024d5f3f057.tar.gz
freebsd-ports-gnome-e63efb3dfa8e069552bdc2fed06f8024d5f3f057.tar.zst
freebsd-ports-gnome-e63efb3dfa8e069552bdc2fed06f8024d5f3f057.zip
Fix build of IPFW2 support on amd64 (deal with ioctl argument size
differences vs i386).
Diffstat (limited to 'net/xorp')
-rw-r--r--net/xorp/files/patch-fea::pa_backend_ipfw2.cc29
1 files changed, 29 insertions, 0 deletions
diff --git a/net/xorp/files/patch-fea::pa_backend_ipfw2.cc b/net/xorp/files/patch-fea::pa_backend_ipfw2.cc
new file mode 100644
index 000000000000..69fb6a87a96f
--- /dev/null
+++ b/net/xorp/files/patch-fea::pa_backend_ipfw2.cc
@@ -0,0 +1,29 @@
+--- fea/pa_backend_ipfw2.cc.orig Wed Jan 10 20:08:58 2007
++++ fea/pa_backend_ipfw2.cc Wed Jan 10 20:18:04 2007
+@@ -329,7 +329,7 @@
+ cmds |= (CMD_MOVE_RULESET << 24);
+ cmds |= ((dst_index << 16) & 0xFF);
+ cmds |= src_index & 0xFFFF;
+- return (docmd4(IP_FW_DEL, (void*)cmds, sizeof(cmds)));
++ return (docmd4(IP_FW_DEL, (void*)(uintptr_t)cmds, sizeof(cmds)));
+ }
+
+ // Swap the contents of the two rulesets.
+@@ -344,7 +344,7 @@
+ cmds |= (CMD_SWAP_RULESETS << 24);
+ cmds |= ((first_index << 16) & 0xFF);
+ cmds |= second_index & 0xFFFF;
+- return (docmd4(IP_FW_DEL, (void*)cmds, sizeof(cmds)));
++ return (docmd4(IP_FW_DEL, (void*)(uintptr_t)cmds, sizeof(cmds)));
+ }
+
+ // Flush the contents of a given ruleset.
+@@ -355,7 +355,7 @@
+ uint32_t cmds = 0;
+ cmds |= (CMD_DEL_RULES_WITH_SET << 24);
+ cmds |= index & 0xFFFF;
+- return (docmd4(IP_FW_DEL, (void*)cmds, sizeof(cmds)));
++ return (docmd4(IP_FW_DEL, (void*)(uintptr_t)cmds, sizeof(cmds)));
+ }
+
+ // Micro-assemble an IPFW2 instruction sequence for the specified