summaryrefslogtreecommitdiff
path: root/net/userfw/files/patch-modules__dummynet__dummynet.c
diff options
context:
space:
mode:
authorWilliam Grzybowski <wg@FreeBSD.org>2014-07-29 14:07:41 +0000
committerWilliam Grzybowski <wg@FreeBSD.org>2014-07-29 14:07:41 +0000
commit9fb3cddb690769de9943c133678a0b4f0333989d (patch)
tree1370cfea65c57504bb644c6bff22f9b0bac0444e /net/userfw/files/patch-modules__dummynet__dummynet.c
parentRename p*/ patch-xy patches to reflect the files they modify. (diff)
net/userfw: support stage [1]
- Fix for FreeBSD >= 10 [1] - USES tar:xz [1] - USES kmod - Remove check for FreeBSD < 8 - Pass maintainership to submitter PR: 192235 Submitted by: gelraen.ua gmail com [1]
Notes
Notes: svn path=/head/; revision=363323
Diffstat (limited to 'net/userfw/files/patch-modules__dummynet__dummynet.c')
-rw-r--r--net/userfw/files/patch-modules__dummynet__dummynet.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/net/userfw/files/patch-modules__dummynet__dummynet.c b/net/userfw/files/patch-modules__dummynet__dummynet.c
new file mode 100644
index 000000000000..dbadf9bc79cf
--- /dev/null
+++ b/net/userfw/files/patch-modules__dummynet__dummynet.c
@@ -0,0 +1,22 @@
+--- ./modules/dummynet/dummynet.c.orig 2013-03-29 14:22:50.000000000 +0000
++++ ./modules/dummynet/dummynet.c 2014-07-29 09:30:53.000000000 +0100
+@@ -57,15 +57,19 @@
+
+ if (ip_dn_io_ptr != NULL)
+ {
++#if __FreeBSD__ < 10
+ SET_NET_IPLEN(mtod(*mb, struct ip *));
++#endif
+ if (mtod(*mb, struct ip *)->ip_v == 4)
+ ret = ip_dn_io_ptr(mb, dir, &ipfw_args);
+ else if (mtod(*mb, struct ip *)->ip_v == 6)
+ ret = ip_dn_io_ptr(mb, dir | PROTO_IPV6, &ipfw_args);
++#if __FreeBSD__ < 10
+ if ((*mb) != NULL)
+ {
+ SET_HOST_IPLEN(mtod(*mb, struct ip *));
+ }
++#endif
+ }
+ return ret;
+ }