ng_patch.4 (d359a62d442af011179d630bf0ad5b302cd2d908) | ng_patch.4 (2875b4b99976bfdb06070ed48ee1e0dd222452f1) |
---|---|
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 --- 11 unchanged lines hidden (view full) --- 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$ 27.\" | 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 --- 11 unchanged lines hidden (view full) --- 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$ 27.\" |
28.Dd June 9, 2010 | 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 35.In netgraph/ng_patch.h 36.Sh DESCRIPTION --- 143 unchanged lines hidden (view full) --- 180.Bd -literal -offset 4n 181/usr/sbin/ngctl -f- <<-SEQ 182 mkpeer ipfw: patch 300 in 183 name ipfw:300 tos_chg 184 msg tos_chg: setconfig { count=2 csum_flags=1 ops=[ \e 185 { mode=7 value=0xf7 length=1 offset=1 } \e 186 { mode=8 value=0x02 length=1 offset=1 } ] } 187SEQ | 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 35.In netgraph/ng_patch.h 36.Sh DESCRIPTION --- 143 unchanged lines hidden (view full) --- 180.Bd -literal -offset 4n 181/usr/sbin/ngctl -f- <<-SEQ 182 mkpeer ipfw: patch 300 in 183 name ipfw:300 tos_chg 184 msg tos_chg: setconfig { count=2 csum_flags=1 ops=[ \e 185 { mode=7 value=0xf7 length=1 offset=1 } \e 186 { mode=8 value=0x02 length=1 offset=1 } ] } 187SEQ |
188/sbin/ipfw add 160 netgraph 600 ip from any to any not dst-port 80 | 188/sbin/ipfw add 160 netgraph 300 ip from any to any not dst-port 80 |
189.Ed 190.Pp 191This first does 192.Dv NG_PATCH_MODE_AND 193clearing the fourth bit and then 194.Dv NG_PATCH_MODE_OR 195setting the third bit. 196.Pp --- 39 unchanged lines hidden --- | 189.Ed 190.Pp 191This first does 192.Dv NG_PATCH_MODE_AND 193clearing the fourth bit and then 194.Dv NG_PATCH_MODE_OR 195setting the third bit. 196.Pp --- 39 unchanged lines hidden --- |