Search
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
pfSense
All Projects
pfSense
Overview
Activity
Roadmap
Issues
Download (486 Bytes)
Bug #6099
» patch-src__os-freebsd.h
Jorge M. Oliveira
, 09/04/2016 02:49 PM
---
src
/
os
-
freebsd
.
h
.
orig
+++
src
/
os
-
freebsd
.
h
@@
-
14
,
10
+
14
,
20
@@
static
inline
u_short
ip_data_len
(
const
struct
ip
*
ip
)
{
+
#
if
__FreeBSD_version
>=
1100030
+
return
ntohs
(
ip
->
ip_len
)
-
(
ip
->
ip_hl
<<
2
);
+
#
elif
__FreeBSD_version
>=
900044
+
return
ip
->
ip_len
-
(
ip
->
ip_hl
<<
2
);
+
#
else
return
ip
->
ip_len
;
+
#
endif
}
static
inline
void
ip_set_len
(
struct
ip
*
ip
,
u_short
len
)
{
+
#
if
__FreeBSD_version
>=
1100030
+
ip
->
ip_len
=
htons
(
len
);
+
#
else
ip
->
ip_len
=
len
;
+
#
endif
}
« Previous
1
…
3
4
5
6
7
…
10
Next »
(5-5/10)
Loading...