Searched refs:mape (Results 1 – 9 of 9) sorted by relevance
/freebsd/sys/netpfil/pf/ |
H A D | pf_nv.c | 190 pf_nvmape_to_mape(const nvlist_t *nvl, struct pf_mape_portset *mape) in pf_nvmape_to_mape() argument 194 bzero(mape, sizeof(*mape)); in pf_nvmape_to_mape() 195 PFNV_CHK(pf_nvuint8(nvl, "offset", &mape->offset)); in pf_nvmape_to_mape() 196 PFNV_CHK(pf_nvuint8(nvl, "psidlen", &mape->psidlen)); in pf_nvmape_to_mape() 197 PFNV_CHK(pf_nvuint16(nvl, "psid", &mape->psid)); in pf_nvmape_to_mape() 204 pf_mape_to_nvmape(const struct pf_mape_portset *mape) in pf_mape_to_nvmape() argument 212 nvlist_add_number(nvl, "offset", mape->offset); in pf_mape_to_nvmape() 213 nvlist_add_number(nvl, "psidlen", mape->psidlen); in pf_mape_to_nvmape() 214 nvlist_add_number(nvl, "psid", mape->psid); in pf_mape_to_nvmape() 238 &kpool->mape)); in pf_nvpool_to_pool() [all …]
|
H A D | pf_lb.c | 423 ashift = 16 - r->rpool.mape.offset; in pf_get_mape_sport() 424 psidshift = ashift - r->rpool.mape.psidlen; in pf_get_mape_sport() 425 psmask = r->rpool.mape.psid & ((1U << r->rpool.mape.psidlen) - 1); in pf_get_mape_sport() 429 ahigh = (1U << r->rpool.mape.offset) - 1; in pf_get_mape_sport() 766 if (r->rpool.mape.offset > 0) { in pf_get_translation() 772 r->rpool.mape.offset, in pf_get_translation() 773 r->rpool.mape.psidlen, in pf_get_translation() 774 r->rpool.mape.psid)); in pf_get_translation()
|
H A D | pf_nl.c | 564 { .type = PF_PT_MAPE, .off = _OUT(mape), .arg = &mape_portset_parser, .cb = nlattr_get_nested }, 580 nlattr_add_mape_portset(nw, PF_PT_MAPE, &pool->mape); in nlattr_add_pool()
|
/freebsd/stand/forth/ |
H A D | menu.rc | 49 set mainansi_caption[3]="^[1mEsc^[mape to loader prompt"
|
/freebsd/sbin/pfctl/ |
H A D | pfctl_parser.c | 496 if (pool->mape.offset > 0) in print_pool() 498 pool->mape.offset, pool->mape.psidlen, pool->mape.psid); in print_pool()
|
H A D | parse.y | 335 struct pf_mape_portset mape; member 4617 if (pool_opts.mape.offset) { 4642 pool_opts.mape.offset = $2; 4643 pool_opts.mape.psidlen = $4; 4644 pool_opts.mape.psid = $6; 4856 if ($10.mape.offset) { 4876 r.rpool.mape = $10.mape;
|
/freebsd/lib/libpfctl/ |
H A D | libpfctl.c | 659 pf_nvmape_to_mape(const nvlist_t *nvl, struct pf_mape_portset *mape) in pf_nvmape_to_mape() argument 661 mape->offset = nvlist_get_number(nvl, "offset"); in pf_nvmape_to_mape() 662 mape->psidlen = nvlist_get_number(nvl, "psidlen"); in pf_nvmape_to_mape() 663 mape->psid = nvlist_get_number(nvl, "psid"); in pf_nvmape_to_mape() 683 pf_nvmape_to_mape(nvlist_get_nvlist(nvl, "mape"), &pool->mape); in pf_nvpool_to_pool() 1180 snl_add_msg_attr_mape(nw, PF_PT_MAPE, &pool->mape); in snl_add_msg_attr_rpool() 1522 { .type = PF_PT_MAPE, .off = _OUT(mape), .arg = &mape_portset_parser, .cb = snl_attr_get_nested },
|
H A D | libpfctl.h | 151 struct pf_mape_portset mape; member
|
/freebsd/sys/net/ |
H A D | pfvar.h | 642 struct pf_mape_portset mape; member
|