Lines Matching refs:ebuf

124 record_error(char *ep, char *ebuf, char *fmt, ...)  in record_error()  argument
140 if (ebuf != NULL) in record_error()
141 length += strlen(ebuf); in record_error()
158 if (ep == NULL && ebuf != NULL) in record_error()
159 (void) strlcpy(err_ptr, ebuf, length); in record_error()
195 handle_errors(char *ep, char *ebuf, boolean_t fatal, boolean_t done) in handle_errors() argument
209 if (ebuf != NULL) { in handle_errors()
210 free(ebuf); in handle_errors()
224 if (ebuf != NULL) { in handle_errors()
225 free(ebuf); in handle_errors()
344 parsenum(char *num, boolean_t bail, char *ebuf) in parsenum() argument
351 FATAL(ep, ebuf, gettext("Unexpected end of command line," in parsenum()
360 FATAL1(ep, ebuf, gettext( in parsenum()
391 parsesatype(char *type, char *ebuf) in parsesatype() argument
407 tt->token = (int)parsenum(type, B_FALSE, ebuf); in parsesatype()
409 ERROR1(ep, ebuf, gettext( in parsesatype()
644 parsestate(char *state, char *ebuf) in parsestate() argument
660 FATAL(ep, ebuf, "Unexpected end of command line " in parsestate()
668 ERROR1(ep, ebuf, gettext("Unknown state type \"%s\"\n"), state); in parsestate()
678 parsealg(char *alg, int proto_num, char *ebuf) in parsealg() argument
685 FATAL(ep, ebuf, gettext("Unexpected end of command line, " in parsealg()
695 WARN1(ep, ebuf, gettext( in parsealg()
708 invalue = parsenum(alg, B_FALSE, ebuf); in parsealg()
714 ERROR1(ep, ebuf, gettext( in parsealg()
717 ERROR1(ep, ebuf, gettext( in parsealg()
725 parsetcpalg(char *alg, char *ebuf) in parsetcpalg() argument
731 FATAL(ep, ebuf, gettext("Unexpected end of command line, " in parsetcpalg()
739 ERROR1(ep, ebuf, in parsetcpalg()
765 parseidtype(char *type, char *ebuf) in parseidtype() argument
773 FATAL(ep, ebuf, gettext("Unexpected end of command line, " in parseidtype()
785 invalue = parsenum(type, B_FALSE, ebuf); in parseidtype()
791 ERROR1(ep, ebuf, gettext("Unknown identity type \"%s\"\n"), type); in parseidtype()
815 parseaddr(char *addr, struct hostent **hpp, boolean_t v6only, char *ebuf) in parseaddr() argument
822 FATAL(ep, ebuf, gettext("Unexpected end of command line, " in parseaddr()
870 WARN1(ep, ebuf, gettext("Unknown address %s."), addr); in parseaddr()
897 parsekey(char *input, char *ebuf, uint_t reserved_bits) in parsekey() argument
905 FATAL(ep, ebuf, gettext("Unexpected end of command line, " in parsekey()
922 FATAL1(ep, ebuf, gettext( in parsekey()
928 ERROR2(ep, ebuf, gettext( in parsekey()
936 WARN2(ep, ebuf, gettext( in parsekey()
973 ERROR1(ep, ebuf, gettext( in parsekey()
997 parseauthstr(char *input, char *ebuf) in parseauthstr() argument
1004 FATAL(ep, ebuf, gettext("Unexpected end of command line, " in parseauthstr()
1011 FATAL(ep, ebuf, gettext("Authentication string is too long, " in parseauthstr()
1310 char *ebuf) in doaddresses() argument
1424 WARN(ep, ebuf, gettext( in doaddresses()
1497 ERROR1(ep, ebuf, gettext( in doaddresses()
1501 FATAL(ep, ebuf, gettext( in doaddresses()
1521 WARN1(ep, ebuf, gettext( in doaddresses()
1579 ERROR1(ep, ebuf, gettext( in doaddresses()
1584 FATAL(ep, ebuf, gettext( in doaddresses()
1601 WARN1(ep, ebuf, gettext( in doaddresses()
1623 handle_errors(ep, ebuf, B_TRUE, B_FALSE); in doaddresses()
1692 ERROR2(ep, ebuf, gettext( in doaddresses()
1697 ERROR2(ep, ebuf, "%s %s.\n", in doaddresses()
1707 ERROR2(ep, ebuf, gettext( in doaddresses()
1720 WARN1(ep, ebuf, gettext("WARNING: " in doaddresses()
1727 handle_errors(ep, ebuf, B_TRUE, B_FALSE); in doaddresses()
1743 handle_errors(ep, ebuf, B_TRUE, B_TRUE); in doaddresses()
1751 doaddup(int cmd, int satype, char *argv[], char *ebuf) in doaddup() argument
1808 ERROR1(ep, ebuf, gettext( in doaddup()
1843 ERROR(ep, ebuf, gettext( in doaddup()
1851 ebuf)); in doaddup()
1853 ERROR(ep, ebuf, gettext( in doaddup()
1859 ERROR(ep, ebuf, gettext( in doaddup()
1871 ERROR(ep, ebuf, gettext( in doaddup()
1883 ebuf)); in doaddup()
1885 ERROR(ep, ebuf, gettext( in doaddup()
1897 ERROR(ep, ebuf, gettext( in doaddup()
1903 (uint8_t)parsenum(*argv, B_TRUE, ebuf); in doaddup()
1905 WARN(ep, ebuf, gettext( in doaddup()
1918 ERROR(ep, ebuf, gettext( in doaddup()
1924 ebuf); in doaddup()
1929 ERROR(ep, ebuf, gettext( in doaddup()
1936 parsetcpalg(*argv, ebuf); in doaddup()
1941 IPSEC_PROTO_AH, ebuf); in doaddup()
1946 ERROR(ep, ebuf, gettext("Cannot specify" in doaddup()
1951 ERROR(ep, ebuf, gettext("Cannot specify" in doaddup()
1957 ERROR(ep, ebuf, gettext( in doaddup()
1963 IPSEC_PROTO_ESP, ebuf); in doaddup()
1967 ERROR(ep, ebuf, gettext( in doaddup()
1973 ERROR(ep, ebuf, gettext( in doaddup()
1986 ERROR(ep, ebuf, gettext("Can only specify " in doaddup()
1990 srcport = parsenum(*argv, B_TRUE, ebuf); in doaddup()
1995 ERROR(ep, ebuf, gettext("Can only specify " in doaddup()
1999 dstport = parsenum(*argv, B_TRUE, ebuf); in doaddup()
2005 ERROR(ep, ebuf, gettext( in doaddup()
2010 isrcport = parsenum(*argv, B_TRUE, ebuf); in doaddup()
2016 ERROR(ep, ebuf, gettext( in doaddup()
2021 idstport = parsenum(*argv, B_TRUE, ebuf); in doaddup()
2026 ERROR(ep, ebuf, gettext( in doaddup()
2031 natt_lport = parsenum(*argv, B_TRUE, ebuf); in doaddup()
2036 ERROR(ep, ebuf, gettext( in doaddup()
2041 natt_rport = parsenum(*argv, B_TRUE, ebuf); in doaddup()
2047 ERROR(ep, ebuf, gettext( in doaddup()
2052 proto = parsenum(*argv, B_TRUE, ebuf); in doaddup()
2058 ERROR(ep, ebuf, gettext( in doaddup()
2063 iproto = parsenum(*argv, B_TRUE, ebuf); in doaddup()
2069 ERROR(ep, ebuf, gettext( in doaddup()
2075 (token == TOK_SRCADDR6), ebuf); in doaddup()
2077 ERROR1(ep, ebuf, gettext( in doaddup()
2110 ERROR(ep, ebuf, gettext( in doaddup()
2116 (token == TOK_DSTADDR6), ebuf); in doaddup()
2118 ERROR1(ep, ebuf, gettext( in doaddup()
2147 ERROR(ep, ebuf, gettext( in doaddup()
2157 ERROR1(ep, ebuf, gettext( in doaddup()
2179 (token == TOK_PROXYADDR6), ebuf); in doaddup()
2181 ERROR1(ep, ebuf, gettext( in doaddup()
2225 WARN1(ep, ebuf, gettext( in doaddup()
2236 ERROR(ep, ebuf, gettext( in doaddup()
2246 ERROR1(ep, ebuf, gettext( in doaddup()
2268 (token == TOK_IDSTADDR6), ebuf); in doaddup()
2270 ERROR1(ep, ebuf, gettext( in doaddup()
2314 WARN1(ep, ebuf, gettext( in doaddup()
2324 ERROR(ep, ebuf, gettext( in doaddup()
2329 sa_len = parseaddr(*argv, &natt_lhp, 0, ebuf); in doaddup()
2331 ERROR1(ep, ebuf, gettext( in doaddup()
2370 WARN1(ep, ebuf, gettext( in doaddup()
2381 ERROR(ep, ebuf, gettext( in doaddup()
2386 sa_len = parseaddr(*argv, &natt_rhp, 0, ebuf); in doaddup()
2388 ERROR1(ep, ebuf, gettext( in doaddup()
2427 WARN1(ep, ebuf, gettext( in doaddup()
2438 ERROR(ep, ebuf, gettext( in doaddup()
2445 FATAL(ep, ebuf, gettext( in doaddup()
2450 encrypt = parsekey(*argv, ebuf, reserved_bits); in doaddup()
2453 ERROR(ep, ebuf, gettext( in doaddup()
2462 ERROR(ep, ebuf, gettext( in doaddup()
2467 auth = parsekey(*argv, ebuf, 0); in doaddup()
2470 ERROR(ep, ebuf, gettext( in doaddup()
2479 ERROR(ep, ebuf, gettext( in doaddup()
2485 ERROR(ep, ebuf, gettext( in doaddup()
2490 auth = parseauthstr(*argv, ebuf); in doaddup()
2493 ERROR(ep, ebuf, gettext( in doaddup()
2502 FATAL(ep, ebuf, gettext( in doaddup()
2509 ERROR(ep, ebuf, gettext( in doaddup()
2520 srcid->sadb_ident_type = parseidtype(*argv, ebuf); in doaddup()
2531 ERROR(ep, ebuf, gettext( in doaddup()
2537 ERROR(ep, ebuf, gettext( in doaddup()
2548 dstid->sadb_ident_type = parseidtype(*argv, ebuf); in doaddup()
2575 ERROR(ep, ebuf, gettext( in doaddup()
2581 (uint32_t)parsenum(*argv, B_TRUE, ebuf); in doaddup()
2585 ERROR(ep, ebuf, gettext( in doaddup()
2591 B_TRUE, ebuf); in doaddup()
2595 ERROR(ep, ebuf, gettext( in doaddup()
2601 B_TRUE, ebuf); in doaddup()
2605 ERROR(ep, ebuf, gettext( in doaddup()
2611 B_TRUE, ebuf); in doaddup()
2634 ERROR(ep, ebuf, gettext( in doaddup()
2640 (uint32_t)parsenum(*argv, B_TRUE, ebuf); in doaddup()
2644 ERROR(ep, ebuf, gettext( in doaddup()
2650 B_TRUE, ebuf); in doaddup()
2654 ERROR(ep, ebuf, gettext( in doaddup()
2660 B_TRUE, ebuf); in doaddup()
2664 ERROR(ep, ebuf, gettext( in doaddup()
2670 B_TRUE, ebuf); in doaddup()
2683 ERROR(ep, ebuf, gettext( in doaddup()
2703 *argv, B_TRUE, ebuf); in doaddup()
2723 B_TRUE, ebuf); in doaddup()
2728 B_TRUE, ebuf); in doaddup()
2735 ERROR(ep, ebuf, gettext( in doaddup()
2739 B_TRUE, ebuf); in doaddup()
2746 ERROR(ep, ebuf, in doaddup()
2760 ERROR(ep, ebuf, in doaddup()
2769 ERROR1(ep, ebuf, gettext( in doaddup()
2776 handle_errors(ep, ebuf, B_TRUE, B_FALSE); in doaddup()
2812 ERROR(ep, ebuf, gettext("Must specify 'encap udp' " in doaddup()
2815 ERROR(ep, ebuf, gettext("Must specify 'encap udp' " in doaddup()
2864 ERROR1(ep, ebuf, gettext( in doaddup()
2871 FATAL(ep, ebuf, gettext( in doaddup()
2884 ERROR(ep, ebuf, gettext( in doaddup()
2906 ERROR1(ep, ebuf, gettext( in doaddup()
2921 ERROR1(ep, ebuf, gettext( in doaddup()
2924 ERROR1(ep, ebuf, gettext( in doaddup()
2931 ERROR1(ep, ebuf, gettext( in doaddup()
2960 ERROR(ep, ebuf, gettext( in doaddup()
2998 FATAL1(ep, ebuf, gettext( in doaddup()
3004 ERROR(ep, ebuf, gettext( in doaddup()
3030 handle_errors(ep, ebuf, B_TRUE, B_FALSE); in doaddup()
3095 spi, ebuf); in doaddup()
3110 free(ebuf); in doaddup()
3120 dodelget(int cmd, int satype, char *argv[], char *ebuf) in dodelget() argument
3175 ERROR1(ep, ebuf, gettext( in dodelget()
3180 ERROR(ep, ebuf, gettext( in dodelget()
3189 B_TRUE, ebuf)); in dodelget()
3195 ERROR(ep, ebuf, gettext( in dodelget()
3199 srcport = parsenum(*argv, B_TRUE, ebuf); in dodelget()
3204 ERROR(ep, ebuf, gettext( in dodelget()
3209 dstport = parsenum(*argv, B_TRUE, ebuf); in dodelget()
3214 ERROR(ep, ebuf, gettext( in dodelget()
3218 proto = parsenum(*argv, B_TRUE, ebuf); in dodelget()
3224 ERROR(ep, ebuf, gettext( in dodelget()
3229 (token == TOK_SRCADDR6), ebuf); in dodelget()
3231 ERROR1(ep, ebuf, gettext( in dodelget()
3256 ERROR(ep, ebuf, gettext( in dodelget()
3262 (token == TOK_SRCADDR6), ebuf); in dodelget()
3264 ERROR1(ep, ebuf, gettext( in dodelget()
3292 ERROR2(ep, ebuf, gettext( in dodelget()
3299 handle_errors(ep, ebuf, B_TRUE, B_FALSE); in dodelget()
3302 FATAL1(ep, ebuf, gettext( in dodelget()
3605 parseit(int argc, char *argv[], char *ebuf, boolean_t read_cmdfile) in parseit() argument
3624 ERROR(ep, ebuf, gettext("Help not appropriate in " in parseit()
3631 ERROR(ep, ebuf, gettext("Monitor not appropriate in " in parseit()
3649 ERROR(ep, ebuf, gettext("Monitor not appropriate in " in parseit()
3663 handle_errors(ep, ebuf, B_FALSE, B_FALSE); in parseit()
3668 satype = parsesatype(*argv, ebuf); in parseit()
3678 FATAL(ep, ebuf, gettext( in parseit()
3691 ERROR(ep, ebuf, gettext("Too many arguments for " in parseit()
3693 handle_errors(ep, ebuf, in parseit()
3717 FATAL(ep, ebuf, gettext( in parseit()
3722 doaddup(cmd, satype, argv, ebuf); in parseit()
3728 FATAL(ep, ebuf, gettext( in parseit()
3733 dodelget(cmd, satype, argv, ebuf); in parseit()
3737 ERROR(ep, ebuf, gettext("Dump not appropriate in " in parseit()
3741 ERROR(ep, ebuf, gettext("Too many arguments " in parseit()
3743 handle_errors(ep, ebuf, in parseit()
3751 ERROR(ep, ebuf, gettext("Save not appropriate in " in parseit()
3763 handle_errors(ep, ebuf, B_FALSE, B_FALSE); in parseit()