ng_etf.4 (158617) | ng_etf.4 (231564) |
---|---|
1.\" 2.\" Copyright (c) 2001, FreeBSD Inc. 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 --- 10 unchanged lines hidden (view full) --- 19.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25.\" SUCH DAMAGE. 26.\" | 1.\" 2.\" Copyright (c) 2001, FreeBSD Inc. 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 --- 10 unchanged lines hidden (view full) --- 19.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25.\" SUCH DAMAGE. 26.\" |
27.\" $FreeBSD: head/share/man/man4/ng_etf.4 158617 2006-05-15 20:28:18Z marius $ | 27.\" $FreeBSD: head/share/man/man4/ng_etf.4 231564 2012-02-12 18:29:56Z ed $ |
28.\" 29.Dd May 16, 2006 30.Dt NG_ETF 4 31.Os 32.Sh NAME 33.Nm ng_etf 34.Nd Ethertype filtering netgraph node type 35.Sh SYNOPSIS --- 61 unchanged lines hidden (view full) --- 97Sets the a new ethertype filter into the node and specifies the hook to and 98from which packets of that type should use. 99The hook and ethertype 100are specified in a structure of type 101.Vt "struct ng_etffilter" : 102.Bd -literal -offset 4n 103struct ng_etffilter { 104 char matchhook[NG_HOOKSIZ]; /* hook name */ | 28.\" 29.Dd May 16, 2006 30.Dt NG_ETF 4 31.Os 32.Sh NAME 33.Nm ng_etf 34.Nd Ethertype filtering netgraph node type 35.Sh SYNOPSIS --- 61 unchanged lines hidden (view full) --- 97Sets the a new ethertype filter into the node and specifies the hook to and 98from which packets of that type should use. 99The hook and ethertype 100are specified in a structure of type 101.Vt "struct ng_etffilter" : 102.Bd -literal -offset 4n 103struct ng_etffilter { 104 char matchhook[NG_HOOKSIZ]; /* hook name */ |
105 u_int16_t ethertype; /* catch these */ | 105 uint16_t ethertype; /* catch these */ |
106}; 107.Ed 108.El 109.Sh EXAMPLES 110Using 111.Xr ngctl 8 112it is possible to set a filter in place from the command line 113as follows: --- 42 unchanged lines hidden --- | 106}; 107.Ed 108.El 109.Sh EXAMPLES 110Using 111.Xr ngctl 8 112it is possible to set a filter in place from the command line 113as follows: --- 42 unchanged lines hidden --- |