aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt
diff options
context:
space:
mode:
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/ng_ipacct/files/patch-ng_ipacct.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/net-mgmt/ng_ipacct/files/patch-ng_ipacct.c b/net-mgmt/ng_ipacct/files/patch-ng_ipacct.c
new file mode 100644
index 000000000000..d90052aa3231
--- /dev/null
+++ b/net-mgmt/ng_ipacct/files/patch-ng_ipacct.c
@@ -0,0 +1,14 @@
+--- ng_ipacct/ng_ipacct.c.orig 2008-09-28 17:37:23.000000000 +0000
++++ ng_ipacct/ng_ipacct.c 2008-09-28 17:39:37.000000000 +0000
+@@ -902,7 +902,11 @@
+ int i;
+
+ for (i = 0, ina = r->r_dst, port = r->r_dport; i < 2; i++) {
++#if __FreeBSD_version >= 700110
++ pcb = in_pcblookup_local(pcbinfo, ina, port, 1, NOCRED);
++#else
+ pcb = in_pcblookup_local(pcbinfo, ina, port, 1);
++#endif
+ if ((pcb != NULL) &&
+ (pcb->inp_laddr.s_addr == ina.s_addr)) {
+ break;