Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/siftr.c
Show First 20 Lines • Show All 1,097 Lines • ▼ Show 20 Lines | if (tp == NULL || inp->inp_flags & INP_TIMEWAIT) { | ||||
goto inp_unlock6; | goto inp_unlock6; | ||||
} | } | ||||
/* | /* | ||||
* Only pkts selected by the tcp port filter | * Only pkts selected by the tcp port filter | ||||
* can be inserted into the pkt_queue | * can be inserted into the pkt_queue | ||||
*/ | */ | ||||
if ((siftr_port_filter != 0) && | if ((siftr_port_filter != 0) && | ||||
(siftr_port_filter != ntohs(inp->inp_lport)) && | (siftr_port_filter != ntohs(inp->inp_lport)) && | ||||
(siftr_port_filter != ntohs(inp->inp_fport))) { | (siftr_port_filter != ntohs(inp->inp_fport))) { | ||||
goto inp_unlock6; | goto inp_unlock6; | ||||
} | } | ||||
pn = malloc(sizeof(struct pkt_node), M_SIFTR_PKTNODE, M_NOWAIT|M_ZERO); | pn = malloc(sizeof(struct pkt_node), M_SIFTR_PKTNODE, M_NOWAIT|M_ZERO); | ||||
if (pn == NULL) { | if (pn == NULL) { | ||||
▲ Show 20 Lines • Show All 499 Lines • Show Last 20 Lines |