freebsd-skq/sys/netinet
luigi 320493f9eb Add code to match MAC header fields (at the moment supported on
bridged packets only, soon to come also for packets on ordinary
ether_input() and ether_output() paths. The syntax is

    ipfw add <action> MAC dst src type

where dst and src can be "any" or a MAC address optionallyfollowed
by a mask, e.g.

	10:20:30:40:50
	10:20:30:40:50/32
	10:20:30:40:50&ff:ff:ff:f0:ff:0f

and type can be a single ethernet type, a range, or a type followed by
a mask (values are always in hexadecimal) e.g.

	0800
	0800-0806
	0800/8
	0800&03ff

Note, I am still uncertain on what is the best format for inputting
these values, having the values in hexadecimal is convenient in most
cases but can be confusing sometimes. Suggestions welcome.

Implement suggestion from PR 37778 to allow "not me" on destination
and source IP. The code in the PR was slightly wrong and interfered
with the normal handling of IP addresses. This version hopefully is
correct.

Minor cleanup of the code, in some places moving the indentation to 4
spaces because the code was becoming too deep. Eventually, in a
separate commit, I will move the whole file to 4 space indent.
2002-05-12 20:43:50 +00:00
..
libalias
accf_data.c Redo the sigio locking. 2002-05-01 20:44:46 +00:00
accf_http.c Redo the sigio locking. 2002-05-01 20:44:46 +00:00
icmp6.h Revised MLD-related definitions 2002-05-06 16:28:25 +00:00
icmp_var.h
if_atm.c
if_atm.h
if_ether.c Move ISO88025 source routing information into sockaddr_dl's sdl_data 2002-05-07 22:14:06 +00:00
if_ether.h
igmp_var.h
igmp.c s/demon/daemon/ 2002-05-12 00:22:38 +00:00
igmp.h
in_cksum.c
in_gif.c
in_gif.h
in_pcb.c
in_pcb.h
in_proto.c
in_rmx.c
in_systm.h
in_var.h
in.c
in.h Remove some duplicate types that should have been removed as part of 2002-05-11 23:28:51 +00:00
ip6.h
ip_divert.c
ip_dummynet.c
ip_dummynet.h Indentation and comments cleanup, no functional change. 2002-05-05 21:27:47 +00:00
ip_ecn.c
ip_ecn.h
ip_encap.c
ip_encap.h
ip_flow.c
ip_flow.h
ip_fw.c Add code to match MAC header fields (at the moment supported on 2002-05-12 20:43:50 +00:00
ip_fw.h Cleanup the interface to ip_fw_chk, two of the input arguments 2002-05-09 10:34:57 +00:00
ip_icmp.c
ip_icmp.h
ip_id.c
ip_input.c s/demon/daemon/ 2002-05-12 00:22:38 +00:00
ip_mroute.c
ip_mroute.h
ip_output.c Cleanup the interface to ip_fw_chk, two of the input arguments 2002-05-09 10:34:57 +00:00
ip_var.h
ip.h
ipprotosw.h
raw_ip.c
tcp_debug.c
tcp_debug.h
tcp_fsm.h
tcp_input.c Redo the sigio locking. 2002-05-01 20:44:46 +00:00
tcp_output.c
tcp_reass.c Redo the sigio locking. 2002-05-01 20:44:46 +00:00
tcp_seq.h
tcp_subr.c
tcp_syncache.c
tcp_timer.c
tcp_timer.h
tcp_timewait.c
tcp_usrreq.c
tcp_var.h
tcp.h
tcpip.h
udp_usrreq.c
udp_var.h
udp.h