Lines Matching refs:prefix

320 		char prefix[5];	/* "/nnn" with terminator. */  in dump_sockaddr()  local
322 (void) snprintf(prefix, sizeof (prefix), "/%d", prefixlen); in dump_sockaddr()
325 (void) strlcat(printable_addr, prefix, in dump_sockaddr()
1852 print_sa(FILE *file, char *prefix, struct sadb_sa *assoc) in print_sa() argument
1863 prefix, ntohl(assoc->sadb_sa_spi), assoc->sadb_sa_replay); in print_sa()
1866 dgettext(TEXT_DOMAIN, "%sSADB_ASSOC state="), prefix); in print_sa()
1896 prefix); in print_sa()
1905 "\n%sEncryption algorithm = "), prefix); in print_sa()
1909 (void) fprintf(file, dgettext(TEXT_DOMAIN, "\n%sflags=0x%x < "), prefix, in print_sa()
2225 print_address(FILE *file, char *prefix, struct sadb_address *addr, in print_address() argument
2230 (void) fprintf(file, "%s", prefix); in print_address()
2271 (void) fprintf(file, dgettext(TEXT_DOMAIN, ")\n%s"), prefix); in print_address()
2280 print_key(FILE *file, char *prefix, struct sadb_key *key) in print_key() argument
2282 (void) fprintf(file, "%s", prefix); in print_key()
2293 (void) fprintf(file, dgettext(TEXT_DOMAIN, " key.\n%s"), prefix); in print_key()
2303 print_keystr(FILE *file, char *prefix, struct sadb_key *key) in print_keystr() argument
2305 (void) fprintf(file, "%s", prefix); in print_keystr()
2307 (void) fprintf(file, dgettext(TEXT_DOMAIN, " string.\n%s"), prefix); in print_keystr()
2317 print_ident(FILE *file, char *prefix, struct sadb_ident *id) in print_ident() argument
2321 (void) fprintf(file, "%s", prefix); in print_ident()
2334 (void) fprintf(file, "\n%s", prefix); in print_ident()
2416 print_sens(FILE *file, char *prefix, const struct sadb_sens *sens, in print_sens() argument
2435 prefix, sensname, sens->sadb_sens_dpd, sens->sadb_sens_sens_level, in print_sens()
2442 "%s %s Label: %s\n"), prefix, sensname, hlabel); in print_sens()
2447 prefix, sensname, i, *bitmap); in print_sens()
2454 prefix, sensname, plabel, hlabel); in print_sens()
2465 prefix, i, *bitmap); in print_sens()
2472 print_prop(FILE *file, char *prefix, struct sadb_prop *prop) in print_prop() argument
2478 "%sProposal, replay counter = %u.\n"), prefix, in print_prop()
2488 "%s Combination #%u "), prefix, i + 1); in print_prop()
2496 combs[i].sadb_comb_auth_maxbits, prefix); in print_prop()
2507 combs[i].sadb_x_comb_encrypt_saltbits, prefix); in print_prop()
2527 prefix); in print_prop()
2550 print_eprop(FILE *file, char *prefix, struct sadb_prop *eprop) in print_eprop() argument
2558 "%sExtended Proposal, replay counter = %u, "), prefix, in print_eprop()
2568 "%s Extended combination #%u:\n"), prefix, ++i); in print_eprop()
2571 prefix); in print_eprop()
2582 prefix); in print_eprop()
2598 "%s Alg #%u "), prefix, ++j); in print_eprop()
2654 print_supp(FILE *file, char *prefix, struct sadb_supported *supp) in print_supp() argument
2659 (void) fprintf(file, dgettext(TEXT_DOMAIN, "%sSupported "), prefix); in print_supp()
2676 (void) fprintf(file, "%s", prefix); in print_supp()
2700 print_spirange(FILE *file, char *prefix, struct sadb_spirange *range) in print_spirange() argument
2703 "%sSPI Range, min=0x%x, max=0x%x\n"), prefix, in print_spirange()
2713 print_kmc(FILE *file, char *prefix, struct sadb_x_kmc *kmc) in print_kmc() argument
2724 "%s Protocol %u, cookie=\"%s\" (%u)\n"), prefix, in print_kmc()
2749 prefix, kmc->sadb_x_kmc_proto, cookie_label, in print_kmc()
2758 print_replay(FILE *file, char *prefix, sadb_x_replay_ctr_t *repl) in print_replay() argument
2761 "%sReplay Value "), prefix); in print_replay()
2780 print_pair(FILE *file, char *prefix, struct sadb_x_pair *pair) in print_pair() argument
2783 prefix, ntohl(pair->sadb_x_pair_spi)); in print_pair()
2962 char *prefix; in save_lifetime() local
2966 prefix = "hard"; in save_lifetime()
2969 prefix = "soft"; in save_lifetime()
2972 prefix = "idle"; in save_lifetime()
2980 "%s_alloc %u ", prefix, lifetime->sadb_lifetime_allocations) < 0) in save_lifetime()
2984 "%s_bytes %" PRIu64 " ", prefix, lifetime->sadb_lifetime_bytes) < 0) in save_lifetime()
2988 "%s_addtime %" PRIu64 " ", prefix, in save_lifetime()
2993 "%s_usetime %" PRIu64 " ", prefix, in save_lifetime()
3007 const char *prefix, *pprefix; in save_address() local
3020 prefix = "src"; in save_address()
3024 prefix = "isrc"; in save_address()
3028 prefix = "dst"; in save_address()
3032 prefix = "idst"; in save_address()
3036 prefix = "nat_loc "; in save_address()
3040 prefix = "nat_rem "; in save_address()
3045 if (fprintf(ofile, " %s ", prefix) < 0) in save_address()
3083 char *prefix; in save_key() local
3088 prefix = (key->sadb_key_exttype == SADB_EXT_KEY_AUTH) ? "auth" : "encr"; in save_key()
3090 if (fprintf(ofile, "%skey ", prefix) < 0) in save_key()
3128 char *prefix; in save_ident() local
3133 prefix = (ident->sadb_ident_exttype == SADB_EXT_IDENTITY_SRC) ? "src" : in save_ident()
3136 if (fprintf(ofile, "%sidtype %s ", prefix, in save_ident()
3156 char *prefix; in save_sens() local
3164 prefix = "label"; in save_sens()
3166 prefix = "outer-label"; in save_sens()
3168 prefix = "implicit-label"; in save_sens()
3173 if (fprintf(ofile, "%s %s ", prefix, hlabel) < 0) { in save_sens()