Home
last modified time | relevance | path

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

/openbsd-src/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-src/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, sizeo in print_ospf_rtr_flags()
[all...]
/openbsd-src/sbin/mount/
H A Dmount.c304 char *opt, *optbuf; in hasopt() local
308 if ((optbuf = strdup(mntopts)) == NULL) in hasopt()
311 for (opt = optbuf; !found && opt != NULL; strsep(&opt, ",")) 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()
[all …]
/openbsd-src/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()
743 static char optbuf[32]; in print_asext_flags() local
745 snprintf(optbuf, sizeof(optbuf), "*|*|*|*|*|%s|%s|%s", in print_asext_flags()
749 return (optbuf); in print_asext_flags()
755 static char optbuf[32]; in print_prefix_opt() local
758 snprintf(optbuf, sizeo in print_prefix_opt()
1041 static char optbuf[32]; print_ospf_options() local
1177 static char optbuf[32]; print_ospf_rtr_flags() local
[all...]
/openbsd-src/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-src/usr.bin/dig/lib/dns/
H A Dmessage.c2531 isc_buffer_t optbuf; in dns_message_pseudosectiontotext()
2578 isc_buffer_init(&optbuf, rdata.data, rdata.length); in dns_message_pseudosectiontotext()
2579 isc_buffer_add(&optbuf, rdata.length); in dns_message_pseudosectiontotext()
2580 while (isc_buffer_remaininglength(&optbuf) != 0) { in dns_message_pseudosectiontotext()
2581 INSIST(isc_buffer_remaininglength(&optbuf) >= 4U); in dns_message_pseudosectiontotext()
2582 optcode = isc_buffer_getuint16(&optbuf); in dns_message_pseudosectiontotext()
2583 optlen = isc_buffer_getuint16(&optbuf); in dns_message_pseudosectiontotext()
2584 INSIST(isc_buffer_remaininglength(&optbuf) >= optlen); in dns_message_pseudosectiontotext()
2595 isc_buffer_current(&optbuf), in dns_message_pseudosectiontotext()
2602 isc_buffer_forward(&optbuf, optle in dns_message_pseudosectiontotext()
2500 isc_buffer_t optbuf; dns_message_pseudosectiontotext() local
[all...]
/openbsd-src/sys/netinet6/
H A Dip6_output.c895 u_int8_t *optbuf; in ip6_insert_jumboopt() local
911 optbuf = mtod(mopt, u_int8_t *); in ip6_insert_jumboopt()
912 optbuf[1] = 0; /* = ((JUMBOOPTLEN) >> 3) - 1 */ in ip6_insert_jumboopt()
952 optbuf = mtod(n, u_int8_t *) + oldoptlen; in ip6_insert_jumboopt()
956 optbuf = mtod(mopt, u_int8_t *) + mopt->m_len; in ip6_insert_jumboopt()
959 optbuf[0] = IP6OPT_PADN; in ip6_insert_jumboopt()
960 optbuf[1] = 0; in ip6_insert_jumboopt()
971 optbuf[2] = IP6OPT_JUMBO; in ip6_insert_jumboopt()
972 optbuf[3] = 4; in ip6_insert_jumboopt()
974 memcpy(&optbuf[ in ip6_insert_jumboopt()
1247 u_char *optbuf; ip6_ctloutput() local
[all...]
/openbsd-src/usr.bin/dig/
H A Ddighost.c3108 isc_buffer_t *optbuf, size_t optlen) in process_sit()
3132 if (timingsafe_bcmp(isc_buffer_current(optbuf), sit, 8) == 0) { in process_sit()
3147 r.base = isc_buffer_current(optbuf); in process_sit()
3157 isc_buffer_forward(optbuf, (unsigned int)optlen); in process_sit()
3164 isc_buffer_t optbuf; in process_opt()
3173 isc_buffer_init(&optbuf, rdata.data, rdata.length); in process_opt()
3174 isc_buffer_add(&optbuf, rdata.length); in process_opt()
3175 while (isc_buffer_remaininglength(&optbuf) >= 4) { in process_opt()
3176 optcode = isc_buffer_getuint16(&optbuf); in process_opt()
3177 optlen = isc_buffer_getuint16(&optbuf); in process_opt()
3107 process_sit(dig_lookup_t * l,dns_message_t * msg,isc_buffer_t * optbuf,size_t optlen) process_sit() argument
3163 isc_buffer_t optbuf; process_opt() local
[all...]
/openbsd-src/sys/netinet/
H A Dtcp_output.c200 u_int32_t optbuf[howmany(MAX_TCPOPTLEN, sizeof(u_int32_t))]; in tcp_output()
201 u_char *opt = (u_char *)optbuf; in tcp_output()
202 u_int32_t optbuf[howmany(MAX_TCPOPTLEN, sizeof(u_int32_t))]; tcp_output() local
/openbsd-src/usr.bin/ssh/
H A Dssh-keygen.c2082 show_options(struct sshbuf *optbuf, int in_critical) in show_options()
2088 if ((options = sshbuf_fromb(optbuf)) == NULL) in show_options()
2054 show_options(struct sshbuf * optbuf,int in_critical) show_options() argument