summaryrefslogtreecommitdiff
path: root/net/userfw/files/patch-modules__dummynet__dummynet.c
blob: dbadf9bc79cf0e8d23e4532f0d4d2531aebb0fc1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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;
 }