Home
last modified time | relevance | path

Searched refs:pfx (Results 1 – 25 of 53) sorted by relevance

123

/freebsd/usr.sbin/rtadvd/
H A Dconfig.c289 struct prefix *pfx; in rm_rainfo() local
306 while ((pfx = TAILQ_FIRST(&rai->rai_prefix)) != NULL) in rm_rainfo()
307 delete_prefix(pfx); in rm_rainfo()
510 struct prefix *pfx; in getconfig() local
518 ELM_MALLOC(pfx, exit(1)); in getconfig()
519 pfx->pfx_rainfo = rai; in getconfig()
520 pfx->pfx_origin = PREFIX_FROM_CONFIG; in getconfig()
522 if (inet_pton(AF_INET6, addr, &pfx->pfx_prefix) != 1) { in getconfig()
528 if (IN6_IS_ADDR_MULTICAST(&pfx->pfx_prefix)) { in getconfig()
535 if (IN6_IS_ADDR_LINKLOCAL(&pfx in getconfig()
1031 struct prefix *pfx; get_prefix() local
1132 struct prefix *pfx; add_prefix() local
1163 delete_prefix(struct prefix * pfx) delete_prefix() argument
1184 invalidate_prefix(struct prefix * pfx) invalidate_prefix() argument
1227 update_prefix(struct prefix * pfx) update_prefix() argument
1338 struct prefix *pfx; make_packet() local
[all...]
H A Drrenum.c149 struct prefix *pfx; in do_use_prefix() local
219 TAILQ_FOREACH(pfx, &rai->rai_prefix, pfx_next) { in do_use_prefix()
222 if (prefix_match(&pfx->pfx_prefix, in do_use_prefix()
223 pfx->pfx_prefixlen, &rpm->rpm_prefix, in do_use_prefix()
226 pfx->pfx_validlifetime = in do_use_prefix()
228 pfx->pfx_preflifetime = in do_use_prefix()
233 pfx->pfx_vltimeexpire = in do_use_prefix()
235 pfx->pfx_validlifetime; in do_use_prefix()
237 pfx->pfx_vltimeexpire = 0; in do_use_prefix()
241 pfx->pfx_pltimeexpire = in do_use_prefix()
[all …]
H A Drtadvd.c466 struct prefix *pfx; in rtmsg_input() local
608 pfx = find_prefix(rai, addr, plen); in rtmsg_input()
609 if (pfx) { in rtmsg_input()
610 if (pfx->pfx_timer) { in rtmsg_input()
615 update_prefix(pfx); in rtmsg_input()
647 pfx = find_prefix(rai, addr, plen); in rtmsg_input()
648 if (pfx == NULL) { in rtmsg_input()
657 invalidate_prefix(pfx); in rtmsg_input()
1233 struct prefix *pfx; in prefix_check() local
1258 if ((pfx in prefix_check()
1352 struct prefix *pfx; find_prefix() local
[all...]
H A Dcontrol_server.c101 DEF_PL_HANDLER(pfx),
338 struct prefix *pfx; in cm_getprop_pfx() local
360 TAILQ_FOREACH(pfx, &rai->rai_prefix, pfx_next) { in cm_getprop_pfx()
361 len += sizeof(*pfx); in cm_getprop_pfx()
373 TAILQ_FOREACH(pfx, &rai->rai_prefix, pfx_next) { in cm_getprop_pfx()
374 memcpy(p, pfx, sizeof(*pfx)); in cm_getprop_pfx()
375 p += sizeof(*pfx); in cm_getprop_pfx()
/freebsd/sys/netpfil/pf/
H A Dinet_nat64.c32 inet_nat64_mask(u_int32_t src, u_int32_t pfx, u_int8_t pfxlen) in inet_nat64_mask() argument
41 (pfx & htonl(0xffffffff << (32 - pfxlen))); in inet_nat64_mask()
48 const void *pfx, u_int8_t pfxlen) in inet_nat64() argument
52 return (inet_nat64_inet(src, dst, pfx, pfxlen)); in inet_nat64()
54 return (inet_nat64_inet6(src, dst, pfx, pfxlen)); in inet_nat64()
65 inet_nat64_inet(const void *src, void *dst, const void *pfx, u_int8_t pfxlen) in inet_nat64_inet() argument
68 const union inet_nat64_addr *p = pfx; in inet_nat64_inet()
106 inet_nat64_inet6(const void *src, void *dst, const void *pfx, u_int8_t pfxlen) in inet_nat64_inet6() argument
109 const union inet_nat64_addr *p = pfx; in inet_nat64_inet6()
154 const void *pfx, u_int8_t pfxlen) in inet_nat46() argument
[all …]
/freebsd/lib/libc/stdio/
H A Dtempnam.c46 tempnam(const char *dir, const char *pfx) in tempnam() argument
54 if (!pfx) in tempnam()
55 pfx = "tmp."; in tempnam()
59 *(f + strlen(f) - 1) == '/'? "": "/", pfx); in tempnam()
66 *(f + strlen(f) - 1) == '/'? "": "/", pfx); in tempnam()
72 (void)snprintf(name, MAXPATHLEN, "%s%sXXXXXX", f, pfx); in tempnam()
77 (void)snprintf(name, MAXPATHLEN, "%s%sXXXXXX", f, pfx); in tempnam()
/freebsd/crypto/krb5/src/lib/krb5/keytab/
H A Dktbase.c155 char *pfx = NULL; in krb5_kt_resolve() local
171 pfx = strdup("FILE"); in krb5_kt_resolve()
172 if (!pfx) in krb5_kt_resolve()
177 pfx = strdup("FILE"); in krb5_kt_resolve()
178 if (!pfx) in krb5_kt_resolve()
183 pfx = k5memdup0(name, pfxlen, &err); in krb5_kt_resolve()
184 if (pfx == NULL) in krb5_kt_resolve()
197 if (strcmp (tlist->ops->prefix, pfx) == 0) { in krb5_kt_resolve()
207 free(pfx); in krb5_kt_resolve()
/freebsd/crypto/heimdal/lib/hx509/
H A Dks_p12.c329 PKCS12_PFX pfx; in p12_init() local
372 ret = decode_PKCS12_PFX(buf, len, &pfx, NULL); in p12_init()
380 if (der_heim_oid_cmp(&pfx.authSafe.contentType, &asn1_oid_id_pkcs7_data) != 0) { in p12_init()
381 free_PKCS12_PFX(&pfx); in p12_init()
388 if (pfx.authSafe.content == NULL) { in p12_init()
389 free_PKCS12_PFX(&pfx); in p12_init()
399 ret = decode_PKCS12_OctetString(pfx.authSafe.content->data, in p12_init()
400 pfx.authSafe.content->length, in p12_init()
403 free_PKCS12_PFX(&pfx); in p12_init()
568 PKCS12_PFX pfx; in p12_store() local
[all …]
/freebsd/usr.sbin/rtadvctl/
H A Drtadvctl.c413 char argv_pfx[IFNAMSIZ + sizeof(":pfx=")]; in action_show()
477 struct prefix *pfx; in action_show() local
647 sprintf(argv_pfx, "%s:pfx=", ifi->ifi_ifname); in action_show()
654 pfx = (struct prefix *)cp.cp_val; in action_show()
655 len = cp.cp_val_len / sizeof(*pfx); in action_show()
661 action_show_prefix(&pfx[i]); in action_show()
745 action_show_prefix(struct prefix *pfx) in action_show_prefix() argument
752 printf("\t %s/%d", inet_ntop(AF_INET6, &pfx->pfx_prefix, in action_show_prefix()
753 ntopbuf, sizeof(ntopbuf)), pfx->pfx_prefixlen); in action_show_prefix()
756 switch (pfx in action_show_prefix()
[all...]
/freebsd/contrib/netbsd-tests/bin/sh/
H A Dt_here.sh239 (2-7) pfx="${end%?}"
241 'x=$(cat <<'"'${end}'${nl}text${nl}${end}${pfx}${nl}${end}${nl}"'); printf %s "$x"' \
242 "text ${end}${pfx}" 0
244 'x=$(cat <<'"'${end}'${nl}text${nl}${pfx}${end}${nl}${end}${nl}"'); printf %s "$x"' \
245 "text ${pfx}${end}" 0
247 (*) pfx=${end%??????}; sfx=${end#??????}
252 'x=$(cat <<'"'${end}'${nl}text${nl}${pfx}${end}${nl}${end}${nl}"'); printf %s "$x"' \
253 "text ${pfx}${end}" 0
255 'x=$(cat <<'"'${end}'${nl}text${nl}${pfx}${sfx}${nl}${end}${nl}"'); printf %s "$x"' \
256 "text ${pfx}${sfx}" 0
H A Dt_varval.sh58 pfx="${pfx}${pfx:+ }${1}"
72 oneline "${pfx}" "$i" "${sfx}" $quote
/freebsd/crypto/krb5/src/lib/krb5/ccache/
H A Dccbase.c204 char *pfx, *cp; in krb5_cc_resolve() local
212 pfx = NULL; in krb5_cc_resolve()
225 pfx = strdup("FILE"); in krb5_cc_resolve()
226 if (!pfx) in krb5_cc_resolve()
232 pfx = k5memdup0(name, pfxlen, &err); in krb5_cc_resolve()
233 if (pfx == NULL) in krb5_cc_resolve()
239 err = krb5int_cc_getops(context, pfx, &ops); in krb5_cc_resolve()
240 if (pfx != NULL) in krb5_cc_resolve()
241 free(pfx); in krb5_cc_resolve()
262 const char *pfx, in krb5int_cc_getops() argument
[all …]
/freebsd/crypto/openssl/include/internal/
H A Dhashtable.h197 #define IMPLEMENT_HT_VALUE_TYPE_FNS(vtype, name, pfx) \ argument
199 pfx ossl_unused int ossl_ht_##name##_##vtype##_insert(HT *h, HT_KEY *key, \
215 pfx ossl_unused vtype *ossl_ht_##name##_##vtype##_from_value(HT_VALUE *v) \
225 pfx ossl_unused vtype *ossl_unused ossl_ht_##name##_##vtype##_get(HT *h, \
237 pfx ossl_unused HT_VALUE *ossl_ht_##name##_##vtype##_to_value(vtype *data, \
245 pfx ossl_unused int ossl_ht_##name##_##vtype##_type(HT_VALUE *h) \
/freebsd/sys/geom/part/
H A Dg_part_if.m46 struct g_part_entry *entry, struct sbuf *sb, const char *pfx)
50 sbuf_printf(sb, "%s%s%s", pfx, g_part_separator,
56 struct g_part_entry *entry, const char *pfx)
62 G_PART_FULLNAME(table, entry, sb, pfx);
71 struct g_part_entry *entry, const char *pfx)
76 G_PART_FULLNAME(table, entry, sb, pfx);
131 const char *pfx;
171 const char *pfx;
196 const char *pfx;
H A Dg_part_ebr.c289 struct g_part_entry *baseentry, const char *pfx) in g_part_ebr_add_alias() argument
293 g_provider_add_alias(pp, "%s%s" EBRNAMFMT, pfx, g_part_separator, in g_part_ebr_add_alias()
296 g_provider_add_alias(pp, "%.*s%u", (int)strlen(pfx) - 1, pfx, in g_part_ebr_add_alias()
302 struct g_part_entry *baseentry, const char *pfx) in g_part_ebr_new_provider() argument
307 pp = g_new_providerf(gp, "%s%s" EBRNAMFMT, pfx, g_part_separator, in g_part_ebr_new_provider()
310 g_provider_add_alias(pp, "%.*s%u", (int)strlen(pfx) - 1, pfx, in g_part_ebr_new_provider()
/freebsd/usr.bin/limits/
H A Dlimits.c71 const char * pfx; member
269 const char *pfx, const char *sfx, const char *which);
518 if (shellparm[shelltype].lprm[rcswhich].pfx) { in main()
523 shellparm[shelltype].lprm[rcswhich].pfx, in main()
531 shellparm[shelltype].lprm[rcswhich].pfx, in main()
539 shellparm[shelltype].lprm[rcswhich].pfx, in main()
563 print_limit(rlim_t limit, unsigned divisor, const char * inf, const char * pfx, const char * sfx, c… in print_limit() argument
571 printf(pfx, which, numbr); in print_limit()
/freebsd/usr.bin/mkimg/tests/
H A Dmkimg_test.sh32 local blksz bootarg bootsz format geom nhds nsecs partarg pfx scheme
38 pfx=$5
62 imagename=$pfx-$geom-$blksz-$scheme.$format
/freebsd/bin/sh/
H A Dshow.c65 shtree(union node *n, int ind, char *pfx, FILE *fp) in shtree() argument
73 indent(ind, pfx, fp); in shtree()
252 indent(int amount, char *pfx, FILE *fp) in indent() argument
257 if (pfx && i == amount - 1) in indent()
258 fputs(pfx, fp); in indent()
/freebsd/contrib/tcpdump/
H A Dprint-openflow-1.0.c1186 const char *pfx, const u_char *cp) in of10_match_print() argument
1197 ND_PRINT("%swildcards 0x%08x (bogus)", pfx, wildcards); in of10_match_print()
1201 ND_PRINT("%smatch in_port %s", pfx, in of10_match_print()
1206 ND_PRINT("%smatch dl_src %s", pfx, GET_ETHERADDR_STRING(cp)); in of10_match_print()
1210 ND_PRINT("%smatch dl_dst %s", pfx, GET_ETHERADDR_STRING(cp)); in of10_match_print()
1214 ND_PRINT("%smatch dl_vlan %s", pfx, vlan_str(GET_BE_U_2(cp))); in of10_match_print()
1218 ND_PRINT("%smatch dl_vlan_pcp %s", pfx, pcp_str(GET_U_1(cp))); in of10_match_print()
1226 ND_PRINT("%smatch dl_type 0x%04x", pfx, dl_type); in of10_match_print()
1229 ND_PRINT("%smatch nw_tos 0x%02x", pfx, GET_U_1(cp)); in of10_match_print()
1237 ND_PRINT("%smatch %s %u", pfx, field_name, nw_proto); in of10_match_print()
[all …]
/freebsd/crypto/openssl/test/radix/
H A Dquic_bindings.c204 static void report_ssl_state(BIO *bio, const char *pfx, int is_write, in report_ssl_state() argument
209 BIO_printf(bio, "%s%-15s%s(%d)", pfx, is_write ? "Write state: " : "Read state: ", in report_ssl_state()
216 static void report_ssl(SSL *ssl, BIO *bio, const char *pfx) in report_ssl() argument
235 BIO_printf(bio, "%sType: %s\n", pfx, type); in report_ssl()
250 pfx, in report_ssl()
269 BIO_printf(bio, "%sStream ID: %llu\n", pfx, in report_ssl()
281 report_ssl_state(bio, pfx, 0, rstate, rec); in report_ssl()
282 report_ssl_state(bio, pfx, 1, wstate, wec); in report_ssl()
/freebsd/tools/tools/vop_table/
H A Dvop_table.tcl110 set pfx [lindex [split $i _] 0]
123 } elseif { $t == "${pfx}_${sfx}" } {
131 } elseif { $sfx == "cachedlookup" && $t == "${pfx}_lookup" } {
/freebsd/sys/netgraph/
H A Dng_bridge.c394 const struct ng_link_prefix *pfx = ng_get_link_prefix(name); in ng_bridge_newhook() local
395 if (pfx == NULL) in ng_bridge_newhook()
398 isUplink = (pfx == &uplink_pfx); in ng_bridge_newhook()
401 if (strlen(name) > pfx->len) { /* given number */ in ng_bridge_newhook()
405 linkNum = strtoul(name + pfx->len, NULL, 10); in ng_bridge_newhook()
407 snprintf(linkName, sizeof(linkName), "%s%u", pfx->prefix, in ng_bridge_newhook()
419 snprintf(NG_HOOK_NAME(hook), NG_HOOKSIZ, "%s%u", pfx->prefix, in ng_bridge_newhook()
972 const struct ng_link_prefix *pfx = ng_get_link_prefix(name); in ng_bridge_disconnect() local
982 linkNum = strtoul(name + pfx->len, NULL, 10); in ng_bridge_disconnect()
983 free_unr(pfx == &link_pfx ? priv->linkUnit: priv->uplinkUnit, linkNum); in ng_bridge_disconnect()
/freebsd/sys/contrib/dev/iwlwifi/
H A Diwl-config.h142 #define IWL_FW_AND_PNVM(pfx, api) \ argument
143 MODULE_FIRMWARE(pfx "-" __stringify(api) ".ucode"); \
144 MODULE_FIRMWARE(pfx ".pnvm")
/freebsd/sys/contrib/dev/iwlwifi/tests/
H A Ddevinfo.c14 static void iwl_pci_print_dev_info(const char *pfx, const struct iwl_dev_info *di) in iwl_pci_print_dev_info() argument
57 pfx, di->device, di->subdevice, subdevice_mask, buf); in iwl_pci_print_dev_info()
/freebsd/contrib/less/
H A Dforwback.c134 static POSITION forw_line_pfx(POSITION pos, int pfx, int skipeol) in forw_line_pfx() argument
140 sc_width = pfx + line_pfx_width(); in forw_line_pfx()

123