Searched refs:optbuf (Results 1 - 16 of 16) sorted by relevance

/freebsd-9.3-release/usr.sbin/sysinstall/
H A Ddhcp.c41 char optbuf[1024], *optname = NULL; local
121 if (sscanf(tempbuf, "\"%[^\" ]\"", optbuf) < 1) {
128 strcpy(optbuf, tempbuf);
131 strcpy(hostname, optbuf);
133 strcpy(domain, optbuf);
135 strcpy(ipaddr, optbuf);
137 if((tptr = (char *)strchr(optbuf, ',')))
139 strcpy(gateway, optbuf);
141 strcpy(netmask, optbuf);
144 if((tptr = (char *)strchr(optbuf, ',')))
[all...]
/freebsd-9.3-release/contrib/tcp_wrappers/
H A Dfix_options.c42 unsigned char optbuf[BUFFER_SIZE / 3], *cp; local
44 int optsize = sizeof(optbuf), ipproto;
72 if (getsockopt(fd, ipproto, IP_OPTIONS, (char *) optbuf, &optsize) == 0
100 for (cp = optbuf + ADDR_LEN; cp < optbuf + optsize; cp += optlen) {
120 for (cp = optbuf; optsize > 0; cp++, optsize--, lp += 3)
/freebsd-9.3-release/sbin/mount/
H A Dmount.c203 char *optbuf, *opt; local
206 optbuf = strdup(arg);
207 if (optbuf == NULL)
210 for (opt = optbuf; (opt = strtok(opt, ",")) != NULL; opt = NULL) {
216 free(optbuf);
500 char *opt, *optbuf; local
507 optbuf = strdup(mntopts);
509 for (opt = optbuf; (opt = strtok(opt, ",")) != NULL; opt = NULL) {
516 free(optbuf);
538 char *optbuf, execnam local
[all...]
H A Dgetmntopts.c61 char *opt, *optbuf, *p; local
65 if ((optbuf = strdup(options)) == NULL)
68 for (opt = optbuf; (opt = strtok(opt, ",")) != NULL; opt = NULL) {
104 free(optbuf);
/freebsd-9.3-release/sbin/fsck/
H A Dfsck.c288 char *optbuf, execbase[MAXPATHLEN]; local
294 (void) &optbuf;
317 optbuf = NULL;
319 catopt(&optbuf, options);
321 catopt(&optbuf, extra);
323 catopt(&optbuf, auxopt);
325 catopt(&optbuf, "-B");
333 if (optbuf)
334 mangle(optbuf, &argc, &argv, &maxargc);
349 if (optbuf)
[all...]
/freebsd-9.3-release/bin/sh/
H A Dmiscbltin.c452 char optbuf[40]; local
461 snprintf(optbuf, sizeof(optbuf),
464 snprintf(optbuf, sizeof(optbuf),
466 out1fmt("%-18s %18s ", l->name, optbuf);
/freebsd-9.3-release/contrib/sendmail/src/
H A Dusersmtp.c2012 char optbuf[MAXLINE]; local
2033 (void) sm_snprintf(optbuf, sizeof(optbuf), " SIZE=%ld",
2035 bufp = &optbuf[strlen(optbuf)];
2039 optbuf[0] = '\0';
2040 bufp = optbuf;
2053 SPACELEFT(optbuf, bufp) > strlen(bodytype) + 7)
2055 (void) sm_snprintf(bufp, SPACELEFT(optbuf, bufp),
2090 SPACELEFT(optbuf, buf
2277 char optbuf[MAXLINE]; local
[all...]
/freebsd-9.3-release/libexec/rlogind/
H A Drlogind.c240 u_char optbuf[BUFSIZ/3]; local
241 socklen_t optsize = sizeof(optbuf);
249 if (getsockopt(0, ipproto, IP_OPTIONS, (char *)optbuf,
252 u_char c = optbuf[i];
262 i += (c == IPOPT_NOP) ? 1 : optbuf[i+1];
/freebsd-9.3-release/libexec/rshd/
H A Drshd.c226 u_char optbuf[BUFSIZ/3]; local
227 socklen_t optsize = sizeof(optbuf), ipproto, i;
234 if (!getsockopt(0, ipproto, IP_OPTIONS, optbuf, &optsize) &&
237 u_char c = optbuf[i];
247 i += (c == IPOPT_NOP) ? 1 : optbuf[i+1];
/freebsd-9.3-release/sys/netinet6/
H A Dip6_output.c1251 u_char *optbuf; local
1267 optbuf = mtod(mopt, u_char *);
1268 optbuf[1] = 0; /* = ((JUMBOOPTLEN) >> 3) - 1 */
1308 optbuf = mtod(n, caddr_t) + oldoptlen;
1312 optbuf = mtod(mopt, u_char *) + mopt->m_len;
1315 optbuf[0] = IP6OPT_PADN;
1316 optbuf[1] = 1;
1327 optbuf[2] = IP6OPT_JUMBO;
1328 optbuf[3] = 4;
1330 bcopy(&v, &optbuf[
1827 u_char *optbuf; local
[all...]
/freebsd-9.3-release/sbin/dhclient/
H A Doptions.c628 static char optbuf[32768]; /* XXX */ local
630 char fmtbuf[32], *op = optbuf;
631 int i, j, k, opleft = sizeof(optbuf);
855 return (optbuf);
H A Ddhclient.c2640 static char optbuf[32768]; /* XXX */ local
2641 char *op = optbuf;
2642 int opleft = sizeof(optbuf);
2668 return optbuf;
/freebsd-9.3-release/contrib/bind9/bin/named/
H A Dclient.c1373 isc_buffer_t optbuf; local
1416 isc_buffer_init(&optbuf, rdata.data, rdata.length);
1417 isc_buffer_add(&optbuf, rdata.length);
1418 while (isc_buffer_remaininglength(&optbuf) >= 4) {
1419 optcode = isc_buffer_getuint16(&optbuf);
1420 optlen = isc_buffer_getuint16(&optbuf);
1424 isc_buffer_forward(&optbuf, optlen);
1427 isc_buffer_forward(&optbuf, optlen);
/freebsd-9.3-release/contrib/bind9/lib/dns/
H A Dmessage.c3249 isc_buffer_t optbuf; local
3291 isc_buffer_init(&optbuf, rdata.data, rdata.length);
3292 isc_buffer_add(&optbuf, rdata.length);
3293 while (isc_buffer_remaininglength(&optbuf) != 0) {
3294 INSIST(isc_buffer_remaininglength(&optbuf) >= 4U);
3295 optcode = isc_buffer_getuint16(&optbuf);
3296 optlen = isc_buffer_getuint16(&optbuf);
3297 INSIST(isc_buffer_remaininglength(&optbuf) >= optlen);
3311 optdata = isc_buffer_current(&optbuf);
3326 isc_buffer_forward(&optbuf, optle
[all...]
H A Dresolver.c6817 isc_buffer_t optbuf; local
6826 isc_buffer_init(&optbuf, rdata.data, rdata.length);
6827 isc_buffer_add(&optbuf, rdata.length);
6828 while (isc_buffer_remaininglength(&optbuf) >= 4) {
6829 optcode = isc_buffer_getuint16(&optbuf);
6830 optlen = isc_buffer_getuint16(&optbuf);
6831 INSIST(optlen <= isc_buffer_remaininglength(&optbuf));
6835 log_nsid(&optbuf, optlen, query,
6838 isc_buffer_forward(&optbuf, optlen);
6841 isc_buffer_forward(&optbuf, optle
[all...]
/freebsd-9.3-release/crypto/openssh/
H A Dssh-keygen.c1821 show_options(const Buffer *optbuf, int v00, int in_critical) argument
1829 buffer_append(&options, buffer_ptr(optbuf), buffer_len(optbuf));

Completed in 336 milliseconds