Home
last modified time | relevance | path

Searched refs:prefix_len (Results 1 – 25 of 32) sorted by relevance

12

/illumos-gate/usr/src/lib/libdladm/common/
H A Dflowattr.c81 int prefix_max, prefix_len = 0; in do_check_ip_addr() local
93 prefix_len = (int)strtol(prefix_str, &endp, 10); in do_check_ip_addr()
94 if (errno != 0 || prefix_len == 0 || *endp != '\0') in do_check_ip_addr()
128 if (prefix_len == 0) in do_check_ip_addr()
129 prefix_len = prefix_max; in do_check_ip_addr()
131 status = dladm_prefixlen2mask(prefix_len, prefix_max, netmask); in do_check_ip_addr()
357 int prefix_len, prefix_max; in dladm_flow_attr_ip2str() local
372 prefix_max, &prefix_len); in dladm_flow_attr_ip2str()
373 (void) snprintf(buf, buf_len, "LCL:%s/%d ", cp, prefix_len); in dladm_flow_attr_ip2str()
386 prefix_max, &prefix_len); in dladm_flow_attr_ip2str()
[all …]
H A Dlibdlflow.c251 int prefix_len, prefix_max; in i_dladm_flow_fput_grp() local
270 &prefix_len); in i_dladm_flow_fput_grp()
273 ap, prefix_len)); in i_dladm_flow_fput_grp()
278 int prefix_len, prefix_max; in i_dladm_flow_fput_grp() local
297 &prefix_len); in i_dladm_flow_fput_grp()
300 ap, prefix_len)); in i_dladm_flow_fput_grp()
/illumos-gate/usr/src/lib/libtecla/common/
H A Dpcache.c225 static int cpa_cmd_contains_path(const char *prefix, int prefix_len);
231 size_t prefix_len, int escaped);
1275 prefix_len = word_end - word_start; in CPL_MATCH_FN()
1281 if(cpa_cmd_contains_path(start_path, prefix_len)) { in CPL_MATCH_FN()
1319 int test = strncmp(node->files[mid]+1, prefix, prefix_len); in CPL_MATCH_FN()
1336 strncmp(node->files[top]+1, prefix, prefix_len) == 0) in CPL_MATCH_FN()
1369 if(pca_prepare_suffix(pc, match + 1 + prefix_len, in CPL_MATCH_FN()
1527 if(prefix_len >= FS_ROOT_DIR_LEN && in cpa_cmd_contains_path()
1535 for(i=0; i<prefix_len; i++) { in cpa_cmd_contains_path()
1536 if(prefix_len - i >= FS_DIR_SEP_LEN && in cpa_cmd_contains_path()
[all …]
H A Dioutil.c109 int prefix_len; /* The length of the optional line prefix string */ in _io_display_text() local
137 prefix_len = prefix ? strlen(prefix) : 0; in _io_display_text()
145 margin_width = indentation + prefix_len; in _io_display_text()
164 if(prefix_len > 0 && last < margin_width) { in _io_display_text()
166 int plen = prefix_len - pstart; in _io_display_text()
H A Dcplfile.c114 size_t prefix_len; /* The length of the prefix being completed */ member
534 args.prefix_len = strlen(prefix); in cf_complete_username()
566 if(cf_prepare_suffix(cf, usrnam+args->prefix_len, args->escaped)) { in HOME_DIR_FN()
616 int prefix_len; /* The length of the filename prefix */ in cf_complete_entry() local
678 prefix_len = strlen(prefix); in cf_complete_entry()
688 if(name_len >= prefix_len && strncmp(prefix, file_name, prefix_len)==0) { in cf_complete_entry()
693 if(prefix_len > 0 || file_name[0] != '.') { in cf_complete_entry()
698 if(cf_prepare_suffix(cf, file_name + prefix_len, escaped)) { in cf_complete_entry()
711 if(_pn_append_to_path(cf->path, file_name + prefix_len, in cf_complete_entry()
H A Dhomedir.c334 int prefix_len; /* The length of prefix[] */ local
349 prefix_len = strlen(prefix);
379 strncmp(prefix, pwd->pw_name, prefix_len)==0) {
405 if(strncmp(prefix, pwd->pw_name, prefix_len) == 0) {
419 if(!waserr && strncmp(prefix, "+", prefix_len) == 0) {
H A Dhistory.h57 int _glh_search_prefix(GlHistory *glh, const char *line, int prefix_len);
H A Dhistory.c183 int prefix_len; /* The length of the prefix being searched for. */ member
739 int _glh_search_prefix(GlHistory *glh, const char *line, int prefix_len) in _glh_search_prefix() argument
760 if(prefix_len > 0) { in _glh_search_prefix()
764 glh->prefix = _glh_acquire_copy(glh, line, prefix_len); in _glh_search_prefix()
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/mech/
H A Doid_ops.c442 size_t prefix_len, in generic_gss_oid_compose() argument
454 if (oid->length < prefix_len) { in generic_gss_oid_compose()
459 memcpy(oid->elements, prefix, prefix_len); in generic_gss_oid_compose()
469 if (oid->length < prefix_len + nbytes) { in generic_gss_oid_compose()
474 op = (unsigned char *) oid->elements + prefix_len + nbytes; in generic_gss_oid_compose()
484 oid->length = prefix_len + nbytes; in generic_gss_oid_compose()
494 size_t prefix_len, in generic_gss_oid_decompose() argument
501 if (oid->length < prefix_len || in generic_gss_oid_decompose()
502 memcmp(oid->elements, prefix, prefix_len) != 0) { in generic_gss_oid_decompose()
506 op = (unsigned char *) oid->elements + prefix_len; in generic_gss_oid_decompose()
[all …]
/illumos-gate/usr/src/cmd/tsol/tnchkdb/
H A Dtnchkdb.c57 int prefix_len; member
107 add_addr(struct tsol_addr_list **head, int prefix_len, in6_addr_t addr, in add_addr() argument
122 entry->prefix_len = prefix_len; in add_addr()
130 find_addr(struct tsol_addr_list *head, int prefix_len, in6_addr_t addr) in find_addr() argument
135 if (entry->prefix_len == prefix_len && in find_addr()
154 add_host(int prefix_len, in6_addr_t addr, int linenum) in add_host() argument
156 add_addr(&rh_list_head, prefix_len, addr, linenum); in add_host()
160 find_host(int prefix_len, in6_addr_t addr) in find_host() argument
162 return (find_addr(rh_list_head, prefix_len, addr)); in find_host()
/illumos-gate/usr/src/lib/auditd_plugins/syslog/
H A Dsysplugin.c321 size_t prefix_len) in gethname() argument
332 if (prefix_len > max) in gethname()
335 (void) memcpy(p, prefix, prefix_len); in gethname()
336 p += prefix_len; in gethname()
337 max -= prefix_len; in gethname()
357 len = prefix_len + strlcpy(p, UNKNOWN, l); in gethname()
405 len = prefix_len + strlcpy(p, hosthash[ix].ht_value, l); in gethname()
419 size_t prefix_len) in getuname() argument
428 if (prefix_len > max) in getuname()
431 len = prefix_len; in getuname()
/illumos-gate/usr/src/cmd/ldap/common/
H A Dfileurl.c419 size_t prefix_len; local
425 prefix_len = strlen( prefix );
426 if ( strlen( s ) < prefix_len ) {
430 return( strncmp( s, prefix, prefix_len ) == 0 );
/illumos-gate/usr/src/lib/libdwarf/common/
H A Dgennames.c564 int prefix_len = 0; in ParseDefinitionsAndWriteOutput() local
591 prefix_len = (int)(second_underscore - name); in ParseDefinitionsAndWriteOutput()
592 safe_strncpy(new_prefix,sizeof(new_prefix),name,prefix_len); in ParseDefinitionsAndWriteOutput()
593 new_prefix[prefix_len] = 0; in ParseDefinitionsAndWriteOutput()
/illumos-gate/usr/src/cmd/mdb/common/modules/nsmb/
H A Dnsmb.c302 int prefix_len = sizeof (prefix) - 1; in vcstate_str() local
314 if (strncmp(cp, prefix, prefix_len) == 0) in vcstate_str()
315 cp += prefix_len; in vcstate_str()
/illumos-gate/usr/src/head/
H A Dndpd.h89 uint_t prefix_len; /* Num bits valid */ member
/illumos-gate/usr/src/uts/common/os/
H A Dlabelsys.c107 tnrhc_init_table(tnrhc_hash_t *table[], short prefix_len, int kmflag) in tnrhc_init_table() argument
113 if (table[prefix_len] == NULL) { in tnrhc_init_table()
114 table[prefix_len] = (tnrhc_hash_t *) in tnrhc_init_table()
116 if (table[prefix_len] == NULL) { in tnrhc_init_table()
121 mutex_init(&table[prefix_len][i].tnrh_lock, in tnrhc_init_table()
/illumos-gate/usr/src/test/os-tests/tests/spoof-ras/
H A Dspoof-ras.c113 spoof_prepare_pi(const char *prefix, int prefix_len, in spoof_prepare_pi() argument
120 pip->nd_opt_pi_prefix_len = prefix_len; in spoof_prepare_pi()
/illumos-gate/usr/src/lib/libvscan/common/
H A Dlibvscan.c1488 int i, prefix_len; in vs_props_get_engines() local
1505 prefix_len = sizeof (VS_PGNAME_ENGINE_PREFIX) - 1; in vs_props_get_engines()
1515 if (strncmp(pgname, VS_PGNAME_ENGINE_PREFIX, prefix_len) == 0) { in vs_props_get_engines()
1516 if ((engids[i] = strdup(pgname + prefix_len)) != NULL) { in vs_props_get_engines()
/illumos-gate/usr/src/uts/common/io/vnic/
H A Dvnic_dev.c198 int *addr_slot, uint_t prefix_len, int *addr_len_ptr_arg, in vnic_unicast_add() argument
254 prefix_len, mac_addr_arg, &mac_diag)) != 0) { in vnic_unicast_add()
294 prefix_len, mac_addr_arg, &mac_diag)) != 0) { in vnic_unicast_add()
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ndpd/
H A Dtables.c1047 prefix_set(struct in6_addr *prefix, struct in6_addr addr, int prefix_len) in prefix_set() argument
1052 if (prefix_len < 0 || prefix_len > IPV6_ABITS) in prefix_set()
1057 for (j = 0; prefix_len > 8; prefix_len -= 8, j++) in prefix_set()
1061 mask = 0xff << (8 - prefix_len); in prefix_set()
/illumos-gate/usr/src/lib/libkmf/libkmf/common/
H A Dpolicy.c1041 int prefix_len, tmpfd; in update_policyfile() local
1077 prefix_len = p - filename; in update_policyfile()
1078 (void) strncpy(tmpfilename, filename, prefix_len); in update_policyfile()
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.mpathd/
H A Dmpd_tables.c2618 prefix_equal(struct in6_addr p1, struct in6_addr p2, uint_t prefix_len) in prefix_equal() argument
2623 if (prefix_len > IPV6_ABITS) in prefix_equal()
2626 for (j = 0; prefix_len > 8; prefix_len -= 8, j++) in prefix_equal()
2631 mask = 0xff << (8 - prefix_len); in prefix_equal()
/illumos-gate/usr/src/uts/common/io/mac/
H A Dmac_client.c1263 mac_addr_random(mac_client_handle_t mch, uint_t prefix_len, in mac_addr_random() argument
1270 if (prefix_len >= addr_len) { in mac_addr_random()
1276 if (prefix_len > 0) { in mac_addr_random()
1277 bzero(mac_addr + prefix_len, addr_len - prefix_len); in mac_addr_random()
1286 if (prefix_len < addr_len) { in mac_addr_random()
1288 prefix_len, addr_len - prefix_len); in mac_addr_random()
/illumos-gate/usr/src/cmd/zonestat/zonestat/
H A Dzonestat.c572 size_t prefix_len; in zonestat_match_with_prefix() local
574 prefix_len = strlen(prefix); in zonestat_match_with_prefix()
575 if (strncmp(name, prefix, prefix_len) == 0) { in zonestat_match_with_prefix()
576 name += prefix_len; in zonestat_match_with_prefix()
/illumos-gate/usr/src/lib/libadutils/common/
H A Daddisc.c475 uint32_t prefix_len; in find_subnets() local
540 prefix_len = lifrp->lifr_addrlen; in find_subnets()
546 "%s/%d", s, prefix_len); in find_subnets()

12