diff options
author | roam <roam@FreeBSD.org> | 2003-09-10 06:41:16 +0000 |
---|---|---|
committer | roam <roam@FreeBSD.org> | 2003-09-10 06:41:16 +0000 |
commit | 222b91160b83e15fa3d76c002bae8c5b8d5f46f9 (patch) | |
tree | 8d299991363fc9a6495625015d4ed20a917e618a /sbin/ipfw/ipfw.8 | |
parent | 5fcbea6e1914877060fde58652af3898f244d31e (diff) | |
download | FreeBSD-src-222b91160b83e15fa3d76c002bae8c5b8d5f46f9.zip FreeBSD-src-222b91160b83e15fa3d76c002bae8c5b8d5f46f9.tar.gz |
Document the alternate way of matching MAC addresses: by a bitmask.
PR: 56021
Submitted by: Glen Gibb <grg@ridley.unimelb.edu.au>
MFC after: 1 month
Diffstat (limited to 'sbin/ipfw/ipfw.8')
-rw-r--r-- | sbin/ipfw/ipfw.8 | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/sbin/ipfw/ipfw.8 b/sbin/ipfw/ipfw.8 index c5515e0..c82612d 100644 --- a/sbin/ipfw/ipfw.8 +++ b/sbin/ipfw/ipfw.8 @@ -1046,11 +1046,31 @@ addresses, specified as the .Cm any keyword (matching any MAC address), or six groups of hex digits separated by colons, -and optionally followed by a mask indicating how many bits are -significant, as in +and optionally followed by a mask indicating the significant bits. +The mask may be specified using either of the following methods: +.Bl -enum -width indent +.It +A slash +.Pq / +followed by the number of significant bits. +For example, an address with 33 significant bits could be specified as: .Pp .Dl "MAC 10:20:30:40:50:60/33 any" .Pp +.It +An ampersand +.Pq & +followed by a bitmask specified as six groups of hex digits separated +by colons. +For example, an address in which the last 16 bits are significant could +be specified as: +.Pp +.Dl "MAC 10:20:30:40:50:60&00:00:00:00:ff:ff any" +.Pp +Note that the ampersand character has a special meaning in many shells +and should generally be escaped. +.Pp +.El Note that the order of MAC addresses (destination first, source second) is the same as on the wire, but the opposite of the one used for |