Deleted Added
full compact
ng_patch.4 (232538) ng_patch.4 (233648)
1.\" Copyright (c) 2010 Maxim Ignatenko <gelraen.ua@gmail.com>
2.\" Copyright (c) 2010 Vadim Goncharov <vadimnuclight@tpu.ru>
3.\" All rights reserved.
4.\"
5.\" Redistribution and use in source and binary forms, with or without
6.\" modification, are permitted provided that the following conditions
7.\" are met:
8.\" 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24.\" SUCH DAMAGE.
25.\"
1.\" Copyright (c) 2010 Maxim Ignatenko <gelraen.ua@gmail.com>
2.\" Copyright (c) 2010 Vadim Goncharov <vadimnuclight@tpu.ru>
3.\" All rights reserved.
4.\"
5.\" Redistribution and use in source and binary forms, with or without
6.\" modification, are permitted provided that the following conditions
7.\" are met:
8.\" 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24.\" SUCH DAMAGE.
25.\"
26.\" $FreeBSD: head/share/man/man4/ng_patch.4 232538 2012-03-05 06:12:15Z glebius $
26.\" $FreeBSD: head/share/man/man4/ng_patch.4 233648 2012-03-29 05:02:12Z eadler $
27.\"
28.Dd March 5, 2012
29.Dt NG_PATCH 4
30.Os
31.Sh NAME
32.Nm ng_patch
33.Nd "trivial mbuf data modifying netgraph node type"
34.Sh SYNOPSIS

--- 124 unchanged lines hidden (view full) ---

159SEQ
160/sbin/ipfw add 150 netgraph 200 ip from any to simplex.remote.net
161.Ed
162.Pp
163Here
164.Dq Li ttl_add
165node of type
166.Nm
27.\"
28.Dd March 5, 2012
29.Dt NG_PATCH 4
30.Os
31.Sh NAME
32.Nm ng_patch
33.Nd "trivial mbuf data modifying netgraph node type"
34.Sh SYNOPSIS

--- 124 unchanged lines hidden (view full) ---

159SEQ
160/sbin/ipfw add 150 netgraph 200 ip from any to simplex.remote.net
161.Ed
162.Pp
163Here
164.Dq Li ttl_add
165node of type
166.Nm
167configured to add (mode
167configured to add (mode
168.Dv NG_PATCH_MODE_ADD )
169a
170.Va value
171of 3 to a one-byte TTL field, which is 9th byte of IP packet header.
172.Pp
173Another example would be two consecutive modifications of packet TOS
174field: say, you need to clear the
175.Dv IPTOS_THROUGHPUT

--- 60 unchanged lines hidden ---
168.Dv NG_PATCH_MODE_ADD )
169a
170.Va value
171of 3 to a one-byte TTL field, which is 9th byte of IP packet header.
172.Pp
173Another example would be two consecutive modifications of packet TOS
174field: say, you need to clear the
175.Dv IPTOS_THROUGHPUT

--- 60 unchanged lines hidden ---