Home
last modified time | relevance | path

Searched refs:optbuf (Results 1 – 11 of 11) sorted by relevance

/openbsd/sbin/fsck/
H A Dfsck.c263 char *optbuf = NULL, fsname[PATH_MAX], execname[PATH_MAX]; in checkfs() local
278 optbuf = catopt(options, extra, 0); in checkfs()
280 optbuf = estrdup(options); in checkfs()
283 optbuf = estrdup(extra); in checkfs()
285 if (optbuf) in checkfs()
286 mangle(optbuf, &argc, &argv, &maxargc); in checkfs()
302 free(optbuf); in checkfs()
334 free(optbuf); in checkfs()
498 char *opt, *optbuf; in hasopt() local
502 optbuf = strdup(mntopts); in hasopt()
[all …]
/openbsd/usr.sbin/ospfctl/
H A Dospfctl.c493 static char optbuf[32]; in print_ospf_flags() local
495 snprintf(optbuf, sizeof(optbuf), "*|*|*|*|*|%s|%s|%s", in print_ospf_flags()
499 return (optbuf); in print_ospf_flags()
505 static char optbuf[32]; in print_ospf_options() local
507 snprintf(optbuf, sizeof(optbuf), "%s|%s|%s|%s|%s|%s|%s|%s", in print_ospf_options()
516 return (optbuf); in print_ospf_options()
522 static char optbuf[32]; in print_ospf_rtr_flags() local
524 snprintf(optbuf, sizeof(optbuf), "%s%s%s", in print_ospf_rtr_flags()
528 return (optbuf); in print_ospf_rtr_flags()
/openbsd/sbin/mount/
H A Dmount.c304 char *opt, *optbuf; in hasopt() local
308 if ((optbuf = strdup(mntopts)) == NULL) in hasopt()
313 free(optbuf); in hasopt()
351 char *optbuf, execname[PATH_MAX], mntpath[PATH_MAX]; in mountfs() local
375 optbuf = catopt(cp, options); in mountfs()
378 if (!hasopt(optbuf, "update")) in mountfs()
379 optbuf = catopt(optbuf, "update"); in mountfs()
407 mangle(optbuf, &argc, argv, argvsize - 4); in mountfs()
417 free(optbuf); in mountfs()
425 free(optbuf); in mountfs()
[all …]
/openbsd/sbin/dhclient/
H A Doptions.c720 static char optbuf[8192]; /* XXX */ in pretty_print_option() local
725 char *op = optbuf, *buf, *name, *fmt; in pretty_print_option()
727 int i, j, k, opleft = sizeof(optbuf); in pretty_print_option()
735 memset(optbuf, 0, sizeof(optbuf)); in pretty_print_option()
753 pretty_print_classless_routes(dp, len, optbuf, sizeof(optbuf)); in pretty_print_option()
756 pretty_print_domain_list(dp, len, optbuf, sizeof(optbuf)); in pretty_print_option()
928 return optbuf; in pretty_print_option()
931 memset(optbuf, 0, sizeof(optbuf)); in pretty_print_option()
932 return optbuf; in pretty_print_option()
/openbsd/usr.sbin/ospf6ctl/
H A Dospf6ctl.c731 static char optbuf[32]; in print_ospf_flags() local
733 snprintf(optbuf, sizeof(optbuf), "*|*|*|*|*|%s|%s|%s", in print_ospf_flags()
737 return (optbuf); in print_ospf_flags()
745 snprintf(optbuf, sizeof(optbuf), "*|*|*|*|*|%s|%s|%s", in print_asext_flags()
749 return (optbuf); in print_asext_flags()
758 snprintf(optbuf, sizeof(optbuf), in print_prefix_opt()
764 return (optbuf); in print_prefix_opt()
1043 snprintf(optbuf, sizeof(optbuf), "*|*|%s|%s|%s|*|%s|%s", in print_ospf_options()
1049 return (optbuf); in print_ospf_options()
1179 snprintf(optbuf, sizeof(optbuf), "%s%s%s", in print_ospf_rtr_flags()
[all …]
/openbsd/usr.sbin/dvmrpctl/
H A Ddvmrpctl.c503 static char optbuf[32]; in print_dvmrp_options() local
505 snprintf(optbuf, sizeof(optbuf), "*|*|%s|%s|%s|%s|%s|%s", in print_dvmrp_options()
512 return (optbuf); in print_dvmrp_options()
/openbsd/usr.bin/dig/lib/dns/
H A Dmessage.c2500 isc_buffer_t optbuf; in dns_message_pseudosectiontotext() local
2548 isc_buffer_add(&optbuf, rdata.length); in dns_message_pseudosectiontotext()
2551 optcode = isc_buffer_getuint16(&optbuf); in dns_message_pseudosectiontotext()
2552 optlen = isc_buffer_getuint16(&optbuf); in dns_message_pseudosectiontotext()
2564 isc_buffer_current(&optbuf), in dns_message_pseudosectiontotext()
2571 isc_buffer_forward(&optbuf, optlen); in dns_message_pseudosectiontotext()
2578 secs = isc_buffer_getuint32(&optbuf); in dns_message_pseudosectiontotext()
2600 id = isc_buffer_getuint16(&optbuf); in dns_message_pseudosectiontotext()
2615 isc_buffer_getuint16(&optbuf); in dns_message_pseudosectiontotext()
2634 optdata = isc_buffer_current(&optbuf); in dns_message_pseudosectiontotext()
[all …]
/openbsd/sys/netinet6/
H A Dip6_output.c886 u_int8_t *optbuf; in ip6_insert_jumboopt() local
902 optbuf = mtod(mopt, u_int8_t *); in ip6_insert_jumboopt()
943 optbuf = mtod(n, u_int8_t *) + oldoptlen; in ip6_insert_jumboopt()
950 optbuf[0] = IP6OPT_PADN; in ip6_insert_jumboopt()
951 optbuf[1] = 0; in ip6_insert_jumboopt()
962 optbuf[2] = IP6OPT_JUMBO; in ip6_insert_jumboopt()
963 optbuf[3] = 4; in ip6_insert_jumboopt()
965 memcpy(&optbuf[4], &v, sizeof(u_int32_t)); in ip6_insert_jumboopt()
1238 u_char *optbuf; in ip6_ctloutput() local
1247 optbuf = mtod(m, u_char *); in ip6_ctloutput()
[all …]
/openbsd/usr.bin/dig/
H A Ddighost.c3107 isc_buffer_t *optbuf, size_t optlen) in process_sit() argument
3146 r.base = isc_buffer_current(optbuf); in process_sit()
3156 isc_buffer_forward(optbuf, (unsigned int)optlen); in process_sit()
3163 isc_buffer_t optbuf; in process_opt() local
3173 isc_buffer_add(&optbuf, rdata.length); in process_opt()
3174 while (isc_buffer_remaininglength(&optbuf) >= 4) { in process_opt()
3175 optcode = isc_buffer_getuint16(&optbuf); in process_opt()
3176 optlen = isc_buffer_getuint16(&optbuf); in process_opt()
3183 isc_buffer_forward(&optbuf, optlen); in process_opt()
3186 process_sit(l, msg, &optbuf, optlen); in process_opt()
[all …]
/openbsd/sys/netinet/
H A Dtcp_output.c202 u_int32_t optbuf[howmany(MAX_TCPOPTLEN, sizeof(u_int32_t))]; in tcp_output() local
203 u_char *opt = (u_char *)optbuf; in tcp_output()
/openbsd/usr.bin/ssh/
H A Dssh-keygen.c2054 show_options(struct sshbuf *optbuf, int in_critical) in show_options() argument
2060 if ((options = sshbuf_fromb(optbuf)) == NULL) in show_options()