Home
last modified time | relevance | path

Searched refs:rtableid (Results 1 – 17 of 17) sorted by relevance

/freebsd/contrib/netcat/
H A Dnetcat.c113 int rtableid = -1; variable
285 rtableid = (int)strtonum(optarg, 0, in main()
703 if (rtableid >= 0 && (setsockopt(s, SOL_SOCKET, SO_SETFIB, in remote_connect()
704 &rtableid, sizeof(rtableid)) == -1)) in remote_connect()
814 if (rtableid >= 0 && (setsockopt(s, SOL_SOCKET, SO_SETFIB, in local_listen()
815 &rtableid, sizeof(rtableid)) == -1)) in local_listen()
/freebsd/crypto/openssh/regress/
H A Dnetcat.c119 int rtableid = -1; variable
239 rtableid = (int)strtonum(optarg, 0, in main()
631 if (rtableid >= 0 && (setsockopt(s, SOL_SOCKET, SO_RTABLE, in remote_connect()
632 &rtableid, sizeof(rtableid)) == -1)) in remote_connect()
743 if (rtableid >= 0 && (setsockopt(s, SOL_SOCKET, SO_RTABLE, in local_listen()
744 &rtableid, sizeof(rtableid)) == -1)) in local_listen()
/freebsd/sbin/pfctl/
H A Dparse.y312 u_int rtableid; member
338 u_int rtableid; member
352 u_int rtableid; member
507 u_int rtableid; member
665 %type <v.rtableid> rtable
1128 r.rtableid = $7;
1152 r.rtableid = $7;
1197 r.rtableid = $7;
1501 r.rtableid = $8.rtableid;
1511 scrub_opts.rtableid = -1;
[all …]
H A Dpf_print_state.c431 if (s->rtableid != -1) in print_state()
432 printf(" rtable: %d", s->rtableid); in print_state()
H A Dpfctl_parser.c1315 if (r->rtableid != -1) in print_rule()
1316 printf(" rtable %u", r->rtableid); in print_rule()
/freebsd/sys/netpfil/pf/
H A Dpf_lb.c141 int rtableid = -1; in pf_match_translation_rule() local
194 if (r->rtableid >= 0) in pf_match_translation_rule()
195 rtableid = r->rtableid; in pf_match_translation_rule()
233 if (rtableid >= 0) in pf_match_translation_rule()
234 M_SETFIB(pd->m, rtableid); in pf_match_translation_rule()
H A Dpf_syncookies.c300 pd->act.rtableid, reason); in pf_syncookie_send()
519 cookie.flags.sack_ok, pd->act.rtableid, reason)); in pf_syncookie_recreate_syn()
H A Dpf.c3129 s->act.rtableid, NULL); in pf_remove_state()
3968 pd->act.rtableid); in pf_translate_af()
3972 pd->act.rtableid); in pf_translate_af()
4451 int rtableid, u_short *reason) in pf_build_tcp() argument
4508 if (rtableid >= 0) in pf_build_tcp()
4509 M_SETFIB(m, rtableid); in pf_build_tcp()
4601 uint8_t ttl, int rtableid) in pf_send_sctp_abort() argument
4688 if (rtableid >= 0) in pf_send_sctp_abort()
4689 M_SETFIB(m, rtableid); in pf_send_sctp_abort()
4720 int mbuf_flags, u_int16_t mtag_tag, u_int16_t mtag_flags, int rtableid, in pf_send_tcp() argument
[all …]
H A Dif_pfsync.c797 st->act.rtableid = r->rtableid; in pfsync_state_import()
825 st->act.rtableid = ntohl(sp->pfs_1400.rtableid); in pfsync_state_import()
844 st->act.rtableid = ntohl(sp->pfs_1500.rtableid); in pfsync_state_import()
872 if (! (st->act.rtableid == -1 || in pfsync_state_import()
873 (st->act.rtableid >= 0 && st->act.rtableid < rt_numfibs))) in pfsync_state_import()
H A Dpf.h549 int rtableid; member
H A Dpf_ioctl.c353 V_pf_default_rule.rtableid = -1; in pfattach_vnet()
2787 krule->rtableid = rule->rtableid; in pf_rule_to_krule()
3040 if (rule->rtableid > 0 && rule->rtableid >= rt_numfibs) in pf_ioctl_addrule()
4699 if (newrule->rtableid > 0 && in pfioctl()
4700 newrule->rtableid >= rt_numfibs) in pfioctl()
6625 sp->pfs_1400.rtableid = htonl(st->act.rtableid); in pfsync_state_export()
6659 sp->pfs_1500.rtableid = htonl(st->act.rtableid); in pfsync_state_export()
6799 sp->rtableid = htonl(st->act.rtableid); in pf_state_export()
H A Dpf_nv.c571 PFNV_CHK(pf_nvint(nvl, "rtableid", &rule->rtableid)); in pf_nvrule_to_krule()
746 nvlist_add_number(nvl, "rtableid", rule->rtableid); in pf_krule_to_nvrule()
H A Dpf_nl.c208 nlattr_add_u32(nw, PF_ST_RTABLEID, s->act.rtableid); in dump_state()
727 { .type = PF_RT_RTABLEID, .off = _OUT(rtableid), .cb = nlattr_get_uint32 },
963 nlattr_add_u32(nw, PF_RT_RTABLEID, rule->rtableid); in pf_handle_getrule()
/freebsd/lib/libpfctl/
H A Dlibpfctl.h215 int rtableid; member
400 int32_t rtableid; member
H A Dlibpfctl.c755 rule->rtableid = nvlist_get_number(nvl, "rtableid"); in pf_nvrule_to_rule()
1256 snl_add_msg_attr_u32(nw, PF_RT_RTABLEID, r->rtableid); in snl_add_msg_attr_pf_rule()
1641 { .type = PF_RT_RTABLEID, .off = _OUT(r.rtableid), .cb = snl_attr_get_uint32 },
1957 { .type = PF_ST_RTABLEID, .off = _OUT(rtableid), .cb = snl_attr_get_int32 },
/freebsd/tests/sys/netpfil/pf/ioctl/
H A Dvalidation.c871 rule.rule.rtableid = 0; in ATF_TC_BODY()
909 rule.rule.rtableid = 0; in ATF_TC_BODY()
/freebsd/sys/net/
H A Dpfvar.h672 int32_t rtableid; member
832 int32_t rtableid; member
1104 int32_t rtableid; member
1535 int32_t rtableid;
1564 int32_t rtableid;
1536 int32_t rtableid; global() member
1565 int32_t rtableid; global() member