FreeBSD kernel IPv4 code
ip_options.h File Reference
This graph shows which files directly or indirectly include this file:

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 *)
 

Macro Definition Documentation

◆ V_ip_doopts

#define V_ip_doopts   VNET(ip_doopts)

Definition at line 53 of file ip_options.h.

Function Documentation

◆ ip_checkrouteralert()

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().

Here is the caller graph for this function:

◆ ip_dooptions()

◆ ip_insertoptions()

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().

Here is the caller graph for this function:

◆ ip_optcopy()

int ip_optcopy ( struct ip ip,
struct ip jp 
)

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().

Here is the caller graph for this function:

◆ ip_pcbopts()

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().

Here is the caller graph for this function:

◆ ip_srcroute()

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().

Here is the caller graph for this function:

◆ ip_stripoptions()

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().

Here is the caller graph for this function:

◆ VNET_DECLARE()

VNET_DECLARE ( int  ,
ip_doopts   
)