Lines Matching refs:pkt
571 if (f == NULL) { /* bogus pkt */
873 lookup_dyn_rule(struct ipfw_flow_id *pkt, int *match_direction,
895 i = hash_packet( pkt );
914 if (pkt->proto == q->id.proto &&
916 if (pkt->src_ip == q->id.src_ip &&
917 pkt->dst_ip == q->id.dst_ip &&
918 pkt->src_port == q->id.src_port &&
919 pkt->dst_port == q->id.dst_port ) {
923 if (pkt->src_ip == q->id.dst_ip &&
924 pkt->dst_ip == q->id.src_ip &&
925 pkt->src_port == q->id.dst_port &&
926 pkt->dst_port == q->id.src_port ) {
943 if (pkt->proto == IPPROTO_TCP) { /* update state according to flags */
944 u_char flags = pkt->flags & (TH_FIN|TH_SYN|TH_RST);
995 } else if (pkt->proto == IPPROTO_UDP) {
1099 * lookup dynamic parent rule using pkt and rule as search keys.
1103 lookup_dyn_parent(struct ipfw_flow_id *pkt, struct ip_fw *rule)
1112 i = hash_packet( pkt );
1116 pkt->proto == q->id.proto &&
1117 pkt->src_ip == q->id.src_ip &&
1118 pkt->dst_ip == q->id.dst_ip &&
1119 pkt->src_port == q->id.src_port &&
1120 pkt->dst_port == q->id.dst_port) {
1126 return add_dyn_rule(pkt, O_LIMIT_PARENT, rule);
1461 u_int hlen = 0; /* hlen >0 means we have an IP pkt */