Home
last modified time | relevance | path

Searched refs:f_id (Results 1 – 15 of 15) sorted by relevance

/freebsd/share/dtrace/
H A Dipfw.d163 addr_type = p->f_id.addr_type;
164 proto = p->f_id.proto;
165 proto_flags = p->f_id._flags;
168 fib = p->m != NULL ? p->m->m_pkthdr.fibnum : p->f_id.fib;
175 dst_ip = htonl(p->f_id.dst_ip);
176 src_ip = htonl(p->f_id.src_ip);
178 dst_ip6 = p->f_id.dst_ip6;
179 src_ip6 = p->f_id.src_ip6;
181 dst_port = p->f_id.dst_port;
182 src_port = p->f_id.src_port;
[all …]
/freebsd/sys/netpfil/ipfw/nat64/
H A Dnat64lsn.c109 struct ipfw_flow_id f_id; member
143 const struct ipfw_flow_id *f_id, struct mbuf **mp);
145 struct ipfw_flow_id *f_id, struct mbuf **mp);
204 struct nat64lsn_host *host, const struct ipfw_flow_id *f_id __unused) in nat64lsn_get_aliaslink()
310 const struct ipfw_flow_id *f_id, uint32_t hval, in_addr_t faddr, in nat64lsn_get_state6to4() argument
323 state->sport == port && state->dport == f_id->dst_port) in nat64lsn_get_state6to4()
327 link = nat64lsn_get_aliaslink(cfg, host, f_id); in nat64lsn_get_state6to4()
374 convert_tcp_flags(f_id->_flags); in nat64lsn_get_state6to4()
377 state->dport = f_id->dst_port; in nat64lsn_get_state6to4()
379 state->ip6_dst = f_id->dst_ip6; in nat64lsn_get_state6to4()
[all …]
H A Dnat64stl.c223 switch (args->f_id.addr_type) { in ipfw_nat64stl()
225 dst4 = htonl(args->f_id.dst_ip); in ipfw_nat64stl()
231 sizeof(struct in6_addr), &args->f_id.src_ip6, &tablearg); in ipfw_nat64stl()
242 if (args->f_id.proto != IPPROTO_ICMPV6) in ipfw_nat64stl()
247 if (args->f_id.addr_type == 4) in ipfw_nat64stl()
H A Dnat64clat.c220 switch (args->f_id.addr_type) { in ipfw_nat64clat()
237 if (args->f_id.proto != IPPROTO_ICMPV6) in ipfw_nat64clat()
/freebsd/sys/netpfil/ipfw/
H A Dip_fw2.c893 if (code == ICMP6_UNREACH_RST && args->f_id.proto == IPPROTO_TCP) { in send_reject6()
899 m0 = ipfw_send_pkt(args->m, &(args->f_id), in send_reject6()
908 args->f_id.proto == IPPROTO_SCTP) { in send_reject6()
964 m0 = ipfw_send_abort(args->m, &(args->f_id), v_tag, in send_reject6()
1013 } else if (code == ICMP_REJECT_RST && args->f_id.proto == IPPROTO_TCP) { in send_reject()
1018 m = ipfw_send_pkt(args->m, &(args->f_id), in send_reject()
1026 args->f_id.proto == IPPROTO_SCTP) { in send_reject()
1081 m = ipfw_send_abort(args->m, &(args->f_id), v_tag, in send_reject()
1122 id = &args->f_id; in check_uidgid()
1470 args->f_id.fib = args->ifp->if_fib; /* best guess */ in ipfw_chk()
[all …]
H A Dip_fw_log.c320 if (IS_IP6_FLOW_ID(&(args->f_id))) { in ipfw_log()
323 ip6_sprintf(ip6buf, &args->f_id.src_ip6)); in ipfw_log()
325 ip6_sprintf(ip6buf, &args->f_id.dst_ip6)); in ipfw_log()
340 switch (args->f_id.proto) { in ipfw_log()
355 args->f_id.proto == IPPROTO_UDP ? " ": "Lite ", in ipfw_log()
392 args->f_id.proto, src); in ipfw_log()
398 if (IS_IP6_FLOW_ID(&(args->f_id))) { in ipfw_log()
402 args->f_id.extra, in ipfw_log()
H A Dip_fw_dynamic.c1175 if (IN6_IS_ADDR_LINKLOCAL(&args->f_id.src_ip6) || in dyn_getscopeid()
1176 IN6_IS_ADDR_LINKLOCAL(&args->f_id.dst_ip6)) in dyn_getscopeid()
1341 info->hashval = hash_packet(&args->f_id); in ipfw_dyn_lookup_state()
1344 if (IS_IP4_FLOW_ID(&args->f_id)) { in ipfw_dyn_lookup_state()
1347 s = dyn_lookup_ipv4_state(&args->f_id, ulp, info, pktlen); in ipfw_dyn_lookup_state()
1363 else if (IS_IP6_FLOW_ID(&args->f_id)) { in ipfw_dyn_lookup_state()
1366 s = dyn_lookup_ipv6_state(&args->f_id, dyn_getscopeid(args), in ipfw_dyn_lookup_state()
2002 return (dyn_install_state(&args->f_id, in ipfw_dyn_install_state()
2004 IS_IP6_FLOW_ID(&args->f_id) ? dyn_getscopeid(args): in ipfw_dyn_install_state()
H A Dip_dn_io.c932 si = ipdn_si_find(fs->sched, &(fwa->f_id)); in dummynet_io()
940 q = ipdn_q_find(fs, si, &(fwa->f_id)); in dummynet_io()
H A Dip_fw_private.h130 struct ipfw_flow_id f_id; /* grabbed from IP header */ member
/freebsd/stand/libsa/
H A Dopen.c90 if (f->f_id == fd) in fd2open_file()
110 return (f->f_id); in o_gethandle()
120 f->f_id = last->f_id + 1; in o_gethandle()
124 return (f->f_id); in o_gethandle()
H A Dcloseall.c41 (void)close(f->f_id); in closeall()
H A Dstand.h207 int f_id; /* file number */ member
/freebsd/sys/netpfil/ipfw/pmod/
H A Dtcpmod.c202 if (args->f_id.proto != IPPROTO_TCP || in ipfw_tcpmod()
203 (args->f_id._flags & TH_SYN) == 0) in ipfw_tcpmod()
206 switch (args->f_id.addr_type) { in ipfw_tcpmod()
/freebsd/sys/netpfil/ipfw/nptv6/
H A Dnptv6.c368 if (V_ip6_forwarding == 0 || args->f_id.addr_type != 6) in ipfw_nptv6()
412 args->f_id.src_ip6 = ip6->ip6_src; in ipfw_nptv6()
413 args->f_id.dst_ip6 = ip6->ip6_dst; in ipfw_nptv6()
/freebsd/sys/netpfil/pf/
H A Dpf.c5374 dnflow.f_id.dst_port = 0; in pf_test_eth_rule()
5375 dnflow.f_id.src_port = 0; in pf_test_eth_rule()
5376 dnflow.f_id.proto = 0; in pf_test_eth_rule()
5383 dnflow.f_id.extra = dnflow.rule.info; in pf_test_eth_rule()
5391 dnflow.f_id.addr_type = 4; in pf_test_eth_rule()
5392 dnflow.f_id.src_ip = src->v4.s_addr; in pf_test_eth_rule()
5393 dnflow.f_id.dst_ip = dst->v4.s_addr; in pf_test_eth_rule()
5397 dnflow.f_id.addr_type = 6; in pf_test_eth_rule()
5398 dnflow.f_id.src_ip6 = src->v6; in pf_test_eth_rule()
5399 dnflow.f_id.dst_ip6 = dst->v6; in pf_test_eth_rule()
[all …]