diff options
author | Sergey Skvortsov <skv@FreeBSD.org> | 2008-09-28 17:43:12 +0000 |
---|---|---|
committer | Sergey Skvortsov <skv@FreeBSD.org> | 2008-09-28 17:43:12 +0000 |
commit | 1d8c3979059dabacc728e481e86bfeae78276432 (patch) | |
tree | acd409641e8573f4a1924e0e5405f87b181ec6c6 /net-mgmt | |
parent | 838a1baaa6f62304fe8372778d63453277000d1a (diff) | |
download | ports-1d8c3979059dabacc728e481e86bfeae78276432.tar.gz ports-1d8c3979059dabacc728e481e86bfeae78276432.zip |
Notes
Diffstat (limited to 'net-mgmt')
-rw-r--r-- | net-mgmt/ng_ipacct/files/patch-ng_ipacct.c | 14 |
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; |