Home
last modified time | relevance | path

Searched refs:f_id (Results 1 – 16 of 16) 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()
217 const struct ipfw_flow_id *f_id __unused) in nat64lsn_get_alias()
319 const struct ipfw_flow_id *f_id, uint32_t hval, in_addr_t faddr, in nat64lsn_get_state6to4() argument
332 state->sport == port && state->dport == f_id->dst_port) in nat64lsn_get_state6to4()
336 link = nat64lsn_get_aliaslink(cfg, host, f_id); in nat64lsn_get_state6to4()
380 convert_tcp_flags(f_id->_flags); in nat64lsn_get_state6to4()
383 state->dport = f_id->dst_port; 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.c895 if (code == ICMP6_UNREACH_RST && args->f_id.proto == IPPROTO_TCP) { in send_reject6()
901 m0 = ipfw_send_pkt(args->m, &(args->f_id), in send_reject6()
910 args->f_id.proto == IPPROTO_SCTP) { in send_reject6()
966 m0 = ipfw_send_abort(args->m, &(args->f_id), v_tag, in send_reject6()
1015 } else if (code == ICMP_REJECT_RST && args->f_id.proto == IPPROTO_TCP) { in send_reject()
1020 m = ipfw_send_pkt(args->m, &(args->f_id), in send_reject()
1028 args->f_id.proto == IPPROTO_SCTP) { in send_reject()
1083 m = ipfw_send_abort(args->m, &(args->f_id), v_tag, in send_reject()
1124 id = &args->f_id; in check_uidgid()
1515 args->f_id.fib = args->ifp->if_fib; /* best guess */ in ipfw_chk()
[all …]
H A Dip_fw_log.c326 if (IS_IP6_FLOW_ID(&(args->f_id))) { in ipfw_log_syslog()
329 ip6_sprintf(ip6buf, &args->f_id.src_ip6)); in ipfw_log_syslog()
331 ip6_sprintf(ip6buf, &args->f_id.dst_ip6)); in ipfw_log_syslog()
346 switch (args->f_id.proto) { in ipfw_log_syslog()
361 args->f_id.proto == IPPROTO_UDP ? " ": "Lite ", in ipfw_log_syslog()
398 args->f_id.proto, src); in ipfw_log_syslog()
404 if (IS_IP6_FLOW_ID(&(args->f_id))) { in ipfw_log_syslog()
408 args->f_id.extra, in ipfw_log_syslog()
456 if (IS_IP6_FLOW_ID(&(args->f_id))) { in ipfw_rtsocklog_fill_l3()
463 v6src->sin6_addr = args->f_id.src_ip6; in ipfw_rtsocklog_fill_l3()
[all …]
H A Dip_fw_dynamic.c1182 if (IN6_IS_ADDR_LINKLOCAL(&args->f_id.src_ip6) || in dyn_getscopeid()
1183 IN6_IS_ADDR_LINKLOCAL(&args->f_id.dst_ip6)) in dyn_getscopeid()
1349 info->hashval = hash_packet(&args->f_id); in ipfw_dyn_lookup_state()
1352 if (IS_IP4_FLOW_ID(&args->f_id)) { in ipfw_dyn_lookup_state()
1355 s = dyn_lookup_ipv4_state(&args->f_id, ulp, info, pktlen); in ipfw_dyn_lookup_state()
1371 else if (IS_IP6_FLOW_ID(&args->f_id)) { in ipfw_dyn_lookup_state()
1374 s = dyn_lookup_ipv6_state(&args->f_id, dyn_getscopeid(args), in ipfw_dyn_lookup_state()
2012 return (dyn_install_state(&args->f_id, in ipfw_dyn_install_state()
2014 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
H A Ddosfs.c229 err = ioctl(fd->f_id, DIOCGSECTORSIZE, &secsz); in dos_mount_impl()
/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.c5409 dnflow.f_id.dst_port = 0; in pf_test_eth_rule()
5410 dnflow.f_id.src_port = 0; in pf_test_eth_rule()
5411 dnflow.f_id.proto = 0; in pf_test_eth_rule()
5418 dnflow.f_id.extra = dnflow.rule.info; in pf_test_eth_rule()
5426 dnflow.f_id.addr_type = 4; in pf_test_eth_rule()
5427 dnflow.f_id.src_ip = src->v4.s_addr; in pf_test_eth_rule()
5428 dnflow.f_id.dst_ip = dst->v4.s_addr; in pf_test_eth_rule()
5432 dnflow.f_id.addr_type = 6; in pf_test_eth_rule()
5433 dnflow.f_id.src_ip6 = src->v6; in pf_test_eth_rule()
5434 dnflow.f_id.dst_ip6 = dst->v6; in pf_test_eth_rule()
[all …]