1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00
freebsd/sys/netinet
Ruslan Ermilov 680c8244a9 - Remove unused includes.
- Minor spelling fixes.
- Make IcmpAliasOut2() really work.

Before this change:

# natd -v -n PUB_IFACE -p 12345 -redirect_address 192.168.1.1 P.P.P.P
natd[87923]: Aliasing to A.A.A.A, mtu 1500 bytes
In  [UDP]  [UDP] X.X.X.X:49562 -> P.P.P.P:50000 aliased to
           [UDP] X.X.X.X:49562 -> 192.168.1.1:50000
Out [ICMP] [ICMP] 192.168.1.1 -> X.X.X.X 3(3) aliased to
           [ICMP] A.A.A.A -> X.X.X.X 3(3)

# tcpdump -n -t -i PUB_IFACE host X.X.X.X and "(udp or icmp)"
tcpdump: listening on PUB_IFACE
X.X.X.X.49562 > P.P.P.P.50000: udp 3
A.A.A.A > X.X.X.X: icmp: A.A.A.A udp port 50000 unreachable

After this change:

# natd -v -n PUB_IFACE -p 12345 -redirect_address 192.168.1.1 P.P.P.P
natd[89360]: Aliasing to A.A.A.A, mtu 1500 bytes
In  [UDP]  [UDP] X.X.X.X:49563 -> P.P.P.P:50000 aliased to
           [UDP] X.X.X.X:49563 -> 192.168.1.1:50000
Out [ICMP] [ICMP] 192.168.1.1 -> X.X.X.X 3(3) aliased to
           [ICMP] P.P.P.P -> X.X.X.X 3(3)

# tcpdump -n -t -i PUB_IFACE host X.X.X.X and "(udp or icmp)"
tcpdump: listening on PUB_IFACE
X.X.X.X.49563 > P.P.P.P.50000: udp 3
P.P.P.P > X.X.X.X: icmp: P.P.P.P udp port 50000 unreachable
2000-04-05 14:27:34 +00:00
..
libalias - Remove unused includes. 2000-04-05 14:27:34 +00:00
fil.c Bring over ipfilter v3_3_8 kernel sources, including merging the 2000-02-09 20:56:36 +00:00
icmp6.h Forbid include of soem inet6 header files from wrong place 2000-02-10 19:33:58 +00:00
icmp_var.h
if_atm.c
if_atm.h
if_ether.c Peter Johnson found another log() call without a trailing newline. 2000-03-29 07:50:39 +00:00
if_ether.h
if_fddi.h
igmp_var.h
igmp.c
igmp.h
in_cksum.c
in_gif.c Disable IPv4 over IPv4 tunnel on the 6to4 interface for better security. 2000-03-11 22:11:57 +00:00
in_gif.h
in_hostcache.c
in_hostcache.h
in_pcb.c Try and make the kernel build again without INET6. 2000-04-02 03:49:25 +00:00
in_pcb.h
in_proto.c Clean up some loose ends in the network code, including the X.25 and ISO 2000-02-13 03:32:07 +00:00
in_rmx.c
in_systm.h
in_var.h
in.c
in.h Forbid include of soem inet6 header files from wrong place 2000-02-10 19:33:58 +00:00
ip6.h Forbid include of soem inet6 header files from wrong place 2000-02-10 19:33:58 +00:00
ip_auth.c Re add rev 1.11 diffs to ip_fil.h Also discover that I did not undefine 2000-02-10 21:29:11 +00:00
ip_auth.h Re add rev 1.11 diffs to ip_fil.h Also discover that I did not undefine 2000-02-10 21:29:11 +00:00
ip_compat.h Re add rev 1.11 diffs to ip_fil.h Also discover that I did not undefine 2000-02-10 21:29:11 +00:00
ip_divert.c
ip_dummynet.c Forgot one line: don't try to match flags when looking for a flow. 2000-02-11 13:23:14 +00:00
ip_dummynet.h Support for stateful (dynamic) ipfw rules. They are very 2000-02-10 14:17:40 +00:00
ip_ecn.c
ip_ecn.h
ip_fil.c Re add rev 1.11 diffs to ip_fil.h Also discover that I did not undefine 2000-02-10 21:29:11 +00:00
ip_fil.h Re add rev 1.11 diffs to ip_fil.h Also discover that I did not undefine 2000-02-10 21:29:11 +00:00
ip_flow.c
ip_flow.h
ip_frag.c Re add rev 1.11 diffs to ip_fil.h Also discover that I did not undefine 2000-02-10 21:29:11 +00:00
ip_frag.h Re add rev 1.11 diffs to ip_fil.h Also discover that I did not undefine 2000-02-10 21:29:11 +00:00
ip_ftp_pxy.c Re add rev 1.11 diffs to ip_fil.h Also discover that I did not undefine 2000-02-10 21:29:11 +00:00
ip_fw.c Fix reporting of src and dst IP addresses for ICMP and generic IP packets. 2000-03-14 14:11:53 +00:00
ip_fw.h Support for stateful (dynamic) ipfw rules. They are very 2000-02-10 14:17:40 +00:00
ip_icmp.c
ip_icmp.h
ip_input.c Add support for offloading IP/TCP/UDP checksums to NIC hardware which 2000-03-27 19:14:27 +00:00
ip_log.c Re add rev 1.11 diffs to ip_fil.h Also discover that I did not undefine 2000-02-10 21:29:11 +00:00
ip_mroute.c
ip_mroute.h
ip_nat.c Re add rev 1.11 diffs to ip_fil.h Also discover that I did not undefine 2000-02-10 21:29:11 +00:00
ip_nat.h Re add rev 1.11 diffs to ip_fil.h Also discover that I did not undefine 2000-02-10 21:29:11 +00:00
ip_output.c Move htons() ip_len to after the in_delayed_cksum() call. 2000-04-02 16:18:26 +00:00
ip_proxy.c Re add rev 1.11 diffs to ip_fil.h Also discover that I did not undefine 2000-02-10 21:29:11 +00:00
ip_proxy.h Re add rev 1.11 diffs to ip_fil.h Also discover that I did not undefine 2000-02-10 21:29:11 +00:00
ip_raudio_pxy.c Re add rev 1.11 diffs to ip_fil.h Also discover that I did not undefine 2000-02-10 21:29:11 +00:00
ip_rcmd_pxy.c Re add rev 1.11 diffs to ip_fil.h Also discover that I did not undefine 2000-02-10 21:29:11 +00:00
ip_state.c Re add rev 1.11 diffs to ip_fil.h Also discover that I did not undefine 2000-02-10 21:29:11 +00:00
ip_state.h Re add rev 1.11 diffs to ip_fil.h Also discover that I did not undefine 2000-02-10 21:29:11 +00:00
ip_var.h
ip.h
ipl.h Re add rev 1.11 diffs to ip_fil.h Also discover that I did not undefine 2000-02-10 21:29:11 +00:00
ipprotosw.h
mlfk_ipl.c Bring over ipfilter v3_3_8 kernel sources, including merging the 2000-02-09 20:56:36 +00:00
raw_ip.c
tcp_debug.c
tcp_debug.h
tcp_fsm.h
tcp_input.c Support per socket based IPv4 mapped IPv6 addr enable/disable control. 2000-04-01 22:35:47 +00:00
tcp_output.c Add support for offloading IP/TCP/UDP checksums to NIC hardware which 2000-03-27 19:14:27 +00:00
tcp_reass.c Support per socket based IPv4 mapped IPv6 addr enable/disable control. 2000-04-01 22:35:47 +00:00
tcp_seq.h
tcp_subr.c Add support for offloading IP/TCP/UDP checksums to NIC hardware which 2000-03-27 19:14:27 +00:00
tcp_timer.c
tcp_timer.h
tcp_timewait.c Add support for offloading IP/TCP/UDP checksums to NIC hardware which 2000-03-27 19:14:27 +00:00
tcp_usrreq.c Support per socket based IPv4 mapped IPv6 addr enable/disable control. 2000-04-01 22:35:47 +00:00
tcp_var.h
tcp.h
tcpip.h
udp_usrreq.c Add support for offloading IP/TCP/UDP checksums to NIC hardware which 2000-03-27 19:14:27 +00:00
udp_var.h
udp.h