FreeBSD kernel IPv4 code
|
Go to the source code of this file.
Data Structures | |
struct | ipoptrt |
struct | ipopt_tag |
Macros | |
#define | V_ip_doopts VNET(ip_doopts) |
Functions | |
VNET_DECLARE (int, ip_doopts) | |
int | ip_checkrouteralert (struct mbuf *) |
int | ip_dooptions (struct mbuf *, int) |
struct mbuf * | ip_insertoptions (struct mbuf *, struct mbuf *, int *) |
int | ip_optcopy (struct ip *, struct ip *) |
int | ip_pcbopts (struct inpcb *, int, struct mbuf *) |
void | ip_stripoptions (struct mbuf *) |
struct mbuf * | ip_srcroute (struct mbuf *) |
#define V_ip_doopts VNET(ip_doopts) |
Definition at line 53 of file ip_options.h.
int ip_checkrouteralert | ( | struct mbuf * | m | ) |
Definition at line 718 of file ip_options.c.
References ip::ip_hl, IPOPT_EOL, IPOPT_NOP, IPOPT_OFFSET, IPOPT_OLEN, IPOPT_OPTVAL, and IPOPT_RA.
Referenced by igmp_input().
int ip_dooptions | ( | struct mbuf * | m, |
int | pass | ||
) |
Definition at line 103 of file ip_options.c.
References fib4_lookup(), IA_SIN, icmp_error(), ICMP_PARAMPROB, ICMP_UNREACH, ICMP_UNREACH_FILTER_PROHIB, ICMP_UNREACH_HOST, ICMP_UNREACH_SRCFAIL, INA, inet_ntoa_r(), ip::ip_dst, ip_forward(), ip::ip_hl, IPOPT_EOL, IPOPT_LSRR, IPOPT_MINOFF, IPOPT_NOP, IPOPT_OFFSET, IPOPT_OLEN, IPOPT_OPTVAL, IPOPT_RR, IPOPT_SSRR, IPOPT_TS, IPOPT_TS_PRESPEC, IPOPT_TS_TSANDADDR, IPOPT_TS_TSONLY, IPSTAT_INC, iptime(), in_addr::s_addr, SA, save_rte(), sockaddr_in::sin_addr, V_ip_acceptsourceroute, V_ip_doopts, V_ip_dosourceroute, and V_ipforwarding.
Referenced by ip_input().
struct mbuf * ip_insertoptions | ( | struct mbuf * | m, |
struct mbuf * | opt, | ||
int * | phlen | ||
) |
Definition at line 507 of file ip_options.c.
References ip::ip_dst, ip::ip_hl, ip::ip_len, IP_MAXPACKET, ip::ip_v, ipoption::ipopt_dst, ipoption::ipopt_list, IPVERSION, and in_addr::s_addr.
Referenced by ip_output().
Definition at line 557 of file ip_options.c.
References ip::ip_hl, IPOPT_COPIED, IPOPT_EOL, IPOPT_NOP, and IPOPT_OLEN.
Referenced by ip_fragment().
int ip_pcbopts | ( | struct inpcb * | inp, |
int | optname, | ||
struct mbuf * | m | ||
) |
Definition at line 601 of file ip_options.c.
References inpcb::inp_options, INP_WLOCK_ASSERT, IPOPT_EOL, IPOPT_LSRR, IPOPT_MINOFF, IPOPT_NOP, IPOPT_OFFSET, IPOPT_OLEN, IPOPT_OPTVAL, IPOPT_SSRR, and MAX_IPOPTLEN.
Referenced by ip_ctloutput().
struct mbuf * ip_srcroute | ( | struct mbuf * | m0 | ) |
Definition at line 426 of file ip_options.c.
References ipoptrt::dst, ipopt_tag::ip_nhops, ipopt_tag::ip_srcrt, IPOPT_MINOFF, IPOPT_NOP, IPOPT_OFFSET, ipoptrt::nop, OPTSIZ, ipoptrt::route, and ipoptrt::srcopt.
Referenced by ip_savecontrol(), syncache_add(), and syncache_socket().
void ip_stripoptions | ( | struct mbuf * | m | ) |
Definition at line 483 of file ip_options.c.
References ip::ip_hl, and ip::ip_len.
Referenced by tcp_input_with_port().
VNET_DECLARE | ( | int | , |
ip_doopts | |||
) |