Sync with reality a little.

This commit is contained in:
rmind 2011-12-23 20:51:50 +00:00
parent 72ba32522f
commit 40947a78e4
1 changed files with 12 additions and 5 deletions

View File

@ -1,4 +1,4 @@
.\" $NetBSD: npf_ncode.9,v 1.6 2011/01/30 07:02:23 rmind Exp $ .\" $NetBSD: npf_ncode.9,v 1.7 2011/12/23 20:51:50 rmind Exp $
.\" .\"
.\" Copyright (c) 2009-2011 The NetBSD Foundation, Inc. .\" Copyright (c) 2009-2011 The NetBSD Foundation, Inc.
.\" All rights reserved. .\" All rights reserved.
@ -27,7 +27,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE. .\" POSSIBILITY OF SUCH DAMAGE.
.\" .\"
.Dd January 30, 2011 .Dd December 23, 2011
.Dt NPF_NCODE 9 .Dt NPF_NCODE 9
.Os .Os
.Sh NAME .Sh NAME
@ -222,13 +222,13 @@ Read Ethernet type in the frame, handle possible VLAN and match with
the value passed in the argument. the value passed in the argument.
Return value to advance to layer 3 header in R3. Return value to advance to layer 3 header in R3.
.\" - .\" -
.It Sy 0x90 NPF_OPCODE_IP4MASK <s/d>, <network address>, <subnet mask> .It Sy 0x90 NPF_OPCODE_IP4MASK <s/d>, <network address>, <subnet>
Match passed network address with subnet mask against source or destination Match passed network address with subnet against source or destination
address in the IPv4 header. address in the IPv4 header.
Address and mask should be in network byte order. Address and mask should be in network byte order.
Value of first argument indicates whether source (if 0x1) or destination Value of first argument indicates whether source (if 0x1) or destination
(if 0x0) address should be matched. (if 0x0) address should be matched.
.It Sy 0x91 NPF_OPCODE_IP4TABLE <s/d>, <table id> .It Sy 0x91 NPF_OPCODE_TABLE <s/d>, <table id>
Match the source or destination address with NPF table contents Match the source or destination address with NPF table contents
specified by table ID. specified by table ID.
Value of the first argument indicates whether source (if 0x1) or Value of the first argument indicates whether source (if 0x1) or
@ -242,6 +242,13 @@ If comparison is required, the type and code values are represented by
lower 16 bits. lower 16 bits.
The higher 8 bits represent type, and the lower 8 bits code number. The higher 8 bits represent type, and the lower 8 bits code number.
.\" - .\" -
.It Sy 0x93 NPF_OPCODE_IP4MASK <s/d>, <network address>, <subnet>
Match passed network address with subnet against source or destination
address in the IPv6 header.
Address and mask should be in network byte order.
Value of first argument indicates whether source (if 0x1) or destination
(if 0x0) address should be matched.
.\" -
.It Sy 0xa0 NPF_OPCODE_TCP_PORTS <s/d>, <port range> .It Sy 0xa0 NPF_OPCODE_TCP_PORTS <s/d>, <port range>
Match the TCP source or destination port with a specified port range. Match the TCP source or destination port with a specified port range.
The higher 16 bits of the second argument represent the "from" and The higher 16 bits of the second argument represent the "from" and