Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/ip_divert.c
Show First 20 Lines • Show All 178 Lines • ▼ Show 20 Lines | |||||
/* | /* | ||||
* Divert a packet by passing it up to the divert socket at port 'port'. | * Divert a packet by passing it up to the divert socket at port 'port'. | ||||
* | * | ||||
* Setup generic address and protocol structures for div_input routine, | * Setup generic address and protocol structures for div_input routine, | ||||
* then pass them along with mbuf chain. | * then pass them along with mbuf chain. | ||||
*/ | */ | ||||
static void | static void | ||||
divert_packet(struct mbuf *m, int incoming) | divert_packet(struct mbuf *m, bool incoming) | ||||
{ | { | ||||
struct ip *ip; | struct ip *ip; | ||||
struct inpcb *inp; | struct inpcb *inp; | ||||
struct socket *sa; | struct socket *sa; | ||||
u_int16_t nport; | u_int16_t nport; | ||||
struct sockaddr_in divsrc; | struct sockaddr_in divsrc; | ||||
struct m_tag *mtag; | struct m_tag *mtag; | ||||
struct epoch_tracker et; | struct epoch_tracker et; | ||||
▲ Show 20 Lines • Show All 640 Lines • Show Last 20 Lines |