Searched refs:opt_len (Results 1 - 25 of 31) sorted by relevance

12

/illumos-gate/usr/src/cmd/cmd-inet/sbin/dhcpinfo/
H A Ddhcpinfo.c64 size_t opt_len; local
187 opt = dhcp_ipc_get_data(reply, &opt_len, NULL);
194 if (opt_len == 0)
204 if (opt_len < sizeof (d6o))
207 if (opt_len != ntohs(d6o.d6o_len) + sizeof (d6o))
210 opt_len -= sizeof (d6o);
212 if (opt_len < 2 || (opt_len - 2 != opt->len))
214 opt_len -= 2;
220 value = malloc(opt_len * (sizeo
[all...]
/illumos-gate/usr/src/uts/common/net/
H A Dppp-comp.h63 void *(*comp_alloc) __P((uchar_t *options, int opt_len));
67 int (*comp_init) __P((void *state, uchar_t *options, int opt_len,
78 void *(*decomp_alloc) __P((uchar_t *options, int opt_len));
82 int (*decomp_init) __P((void *state, uchar_t *options, int opt_len,
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppdump/
H A Ddeflate.c64 static void *z_decomp_alloc __P((u_char *options, int opt_len));
66 static int z_decomp_init __P((void *state, u_char *options, int opt_len,
131 z_decomp_alloc(options, opt_len)
133 int opt_len;
138 if (opt_len != CILEN_DEFLATE || options[0] != CI_DEFLATE
175 z_decomp_init(arg, options, opt_len, unit, hdrlen, mru, debug)
178 int opt_len, unit, hdrlen, mru, debug;
182 if (opt_len < CILEN_DEFLATE || options[0] != CI_DEFLATE
H A Dppp-comp.h53 void *(*decomp_alloc) __P((u_char *options, int opt_len));
57 int (*decomp_init) __P((void *state, u_char *options, int opt_len,
H A Dbsd-comp.c129 static void *bsd_decomp_alloc __P((u_char *options, int opt_len));
131 static int bsd_decomp_init __P((void *state, u_char *options, int opt_len,
287 bsd_alloc(options, opt_len, decomp)
289 int opt_len, decomp;
295 if (opt_len != 3 || options[0] != CI_BSD_COMPRESS || options[1] != 3
366 bsd_decomp_alloc(options, opt_len)
368 int opt_len;
370 return bsd_alloc(options, opt_len, 1);
377 bsd_init(db, options, opt_len, unit, hdrlen, mru, debug, decomp)
380 int opt_len, uni
[all...]
H A Dzlib.c365 ulg opt_len; /* bit length of current block with optimal trees */ member in struct:deflate_state
1780 s->opt_len = s->static_len = 0L;
1845 * The length opt_len is updated; static_len is also updated if stree is
1885 s->opt_len += (ulg)f * (bits + xbits);
1918 s->opt_len += ((long)bits - (long)tree[m].Len)
1974 * and corresponding code. The length opt_len is updated; static_len is
2012 s->opt_len--; if (stree) s->static_len -= stree[node].Len;
2171 /* opt_len now includes the length of the tree representations, except
2182 /* Update opt_len to include the bit length tree and counts */
2183 s->opt_len
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/
H A Dcbcp.c330 u_char type, opt_len; local
339 GETCHAR(opt_len, pckt);
341 if (opt_len > 2) {
345 len -= opt_len;
463 int opt_len; local
467 GETCHAR(opt_len, pckt);
478 if (opt_len > 4) {
483 if (debug && opt_len > 5)
484 dbglog("CBCP: peer will call %.*s", pckt, opt_len - 4);
/illumos-gate/usr/src/cmd/cmd-inet/sbin/dhcpagent/
H A Dpacket.c413 uint_t opt_len)
424 req_len = opt_len + sizeof (d6o);
434 d6o.d6o_len = htons(opt_len);
437 if (opt_len > 0) {
439 opt_len);
440 dpkt->pkt_cur_len += opt_len;
443 req_len = opt_len + 2; /* + 2 for code & length bytes */
464 raw_pkt[dpkt->pkt_cur_len++] = opt_len;
465 if (opt_len > 0) {
467 opt_val, opt_len);
412 add_pkt_opt(dhcp_pkt_t *dpkt, uint_t opt_type, const void *opt_val, uint_t opt_len) argument
493 add_pkt_subopt(dhcp_pkt_t *dpkt, dhcpv6_option_t *parentopt, uint_t opt_type, const void *opt_val, uint_t opt_len) argument
[all...]
/illumos-gate/usr/src/uts/common/io/ppp/spppcomp/
H A Dbsd-comp.c151 static void *bsd_comp_alloc(uchar_t *options, int opt_len);
152 static void *bsd_decomp_alloc(uchar_t *options, int opt_len);
154 static int bsd_comp_init(void *state, uchar_t *options, int opt_len,
156 static int bsd_decomp_init(void *state, uchar_t *options, int opt_len,
347 bsd_alloc(uchar_t *options, int opt_len, int decomp) argument
357 if (opt_len != 3 ||
457 bsd_comp_alloc(uchar_t *options, int opt_len) argument
459 return (bsd_alloc(options, opt_len, 0));
466 bsd_decomp_alloc(uchar_t *options, int opt_len) argument
468 return (bsd_alloc(options, opt_len,
477 bsd_init(struct bsd_db *db, uchar_t *options, int opt_len, int unit, int hdrlen, int mru, int debug, int decomp) argument
526 bsd_comp_init(void *state, uchar_t *options, int opt_len, int unit, int hdrlen, int debug) argument
537 bsd_decomp_init(void *state, uchar_t *options, int opt_len, int unit, int hdrlen, int mru, int debug) argument
[all...]
H A Ddeflate.c78 static void *z_comp_alloc(uchar_t *options, int opt_len);
79 static void *z_decomp_alloc(uchar_t *options, int opt_len);
82 static int z_comp_init(void *state, uchar_t *options, int opt_len,
84 static int z_decomp_init(void *state, uchar_t *options, int opt_len,
194 z_comp_alloc(uchar_t *options, int opt_len) argument
199 if (opt_len != CILEN_DEFLATE ||
255 z_comp_init(void *arg, uchar_t *options, int opt_len, int unit, int hdrlen, argument
260 if (opt_len < CILEN_DEFLATE ||
648 z_decomp_alloc(uchar_t *options, int opt_len) argument
653 if (opt_len !
706 z_decomp_init(void *arg, uchar_t *options, int opt_len, int unit, int hdrlen, int mru, int debug) argument
[all...]
H A Dspppcomp.c706 uint32_t opt_len; local
795 opt_len = mp->b_cont->b_wptr - opt_data;
796 if (opt_len > iop->ioc_count) {
797 opt_len = iop->ioc_count;
800 if (len < 2 || len > opt_len)
825 opt_len);
832 "opt_len=0x%d flags=0x%b\n",
834 (uchar_t)opt_data[0], opt_len,
846 (*comp)->decomp_alloc(opt_data, opt_len);
853 "opt_len
[all...]
H A Dzlib.c541 ulg opt_len; /* bit length of current block with optimal trees */ member in struct:deflate_state
2583 s->opt_len = s->static_len = 0L;
2652 * The length opt_len is updated; static_len is also updated if stree is
2695 s->opt_len += (ulg)f * (bits + xbits);
2735 s->opt_len += ((long)bits - (long)tree[m].Len)
2799 * and corresponding code. The length opt_len is updated; static_len is
2841 s->opt_len--; if (stree) s->static_len -= stree[node].Len;
3020 * opt_len now includes the length of the tree
3033 /* Update opt_len to include the bit length tree and counts */
3034 s->opt_len
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_dhcp.c275 int opt_len; local
540 opt_len = *start++;
543 for (i = 0; i < opt_len; i++) {
570 opt_len = *start++;
588 opt_len, B_TRUE);
593 prmpt, save, opt_len);
599 start += opt_len;
/illumos-gate/usr/src/uts/common/os/
H A Dip_cksum.c539 int opt_len; local
541 opt_len = (ipha->ipha_version_and_hdr_length & 0xF) -
546 if (opt_len > 0) {
551 } while (--opt_len);
/illumos-gate/usr/src/uts/common/zmod/
H A Dtrees.c422 s->opt_len = s->static_len = 0L;
487 * The length opt_len is updated; static_len is also updated if stree is
527 s->opt_len += (ulg)f * (bits + xbits);
560 s->opt_len += ((long)bits - (long)tree[m].Len)
616 * and corresponding code. The length opt_len is updated; static_len is
654 s->opt_len--; if (stree) s->static_len -= stree[node].Len;
814 /* opt_len now includes the length of the tree representations, except
825 /* Update opt_len to include the bit length tree and counts */
826 s->opt_len += 3*(max_blindex+1) + 5+5+4;
828 s->opt_len,
[all...]
H A Ddeflate.h244 ulg opt_len; /* bit length of current block with optimal trees */ member in struct:internal_state
/illumos-gate/usr/src/boot/lib/libz/
H A Dtrees.c420 s->opt_len = s->static_len = 0L;
485 * The length opt_len is updated; static_len is also updated if stree is
525 s->opt_len += (ulg)f * (bits + xbits);
558 s->opt_len += ((long)bits - (long)tree[m].Len)
614 * and corresponding code. The length opt_len is updated; static_len is
652 s->opt_len--; if (stree) s->static_len -= stree[node].Len;
812 /* opt_len now includes the length of the tree representations, except
823 /* Update opt_len to include the bit length tree and counts */
824 s->opt_len += 3*(max_blindex+1) + 5+5+4;
826 s->opt_len,
[all...]
H A Ddeflate.h247 ulg opt_len; /* bit length of current block with optimal trees */ member in struct:internal_state
/illumos-gate/usr/src/cmd/cmd-inet/lib/nwamd/
H A Dncu_ip.c153 size_t opt_len; local
191 opt = dhcp_ipc_get_data(reply, &opt_len, NULL);
192 if (opt_len == 0) {
198 if (opt_len < 2 || (opt_len -2 != opt->len)) {
202 opt_len -= 2;
205 value = inittab_decode(entry, opt->value, opt_len, B_TRUE);
/illumos-gate/usr/src/lib/libfsmgt/common/
H A Dfs_mounts.c881 size_t opt_len; local
885 opt_len = strlen(opt);
887 value_len = opt_string_len - opt_len;
902 value[counter] = opt_string[opt_len+counter];
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ping/
H A Dping.c605 size_t opt_len = 0; local
612 opt_len = 3 +
615 opt_len = 3 + (num_gw + 1) * sizeof (struct in_addr);
619 opt_len = MAX_IPOPTLEN;
622 opt_len = MAX_IPOPTLEN;
624 opt_len += IPOPT_MINOFF +
630 opt_len++;
635 if (opt_len & 0x3)
636 opt_len = (opt_len
[all...]
/illumos-gate/usr/src/cmd/geniconvtbl/
H A Ditmcomp.c494 size_t opt_len; local
499 opt_len = ((NULL == opt) ? 0 : strlen(opt));
501 if (0 < (opt_len + arg_len)) {
502 new_opt = malloc_vital(opt_len + arg_len + 1);
504 (void) memcpy(new_opt, opt, opt_len + 1);
507 (void) memcpy(new_opt + opt_len, arg, arg_len + 1);
/illumos-gate/usr/src/uts/common/io/mac/
H A Dmac_protect.c274 uchar_t **opt, uint8_t *opt_len)
291 *opt_len = olen;
577 uint8_t opt_len, mtype, cid[DHCP_MAX_OPT_SIZE], cid_len; local
587 if (get_dhcpv4_option(dh4, end, CD_DHCP_TYPE, &opt, &opt_len) != 0 ||
588 opt_len != 1) {
601 if (get_dhcpv4_option(dh4, end, CD_CLIENT_ID, &opt, &opt_len) == 0 &&
602 opt_len >= 2) {
603 bcopy(opt, cid, opt_len);
604 cid_len = opt_len;
640 &opt, &opt_len) !
273 get_dhcpv4_option(struct dhcp *dh4, uchar_t *end, uint8_t type, uchar_t **opt, uint8_t *opt_len) argument
674 uint8_t opt_len, mtype; local
[all...]
/illumos-gate/usr/src/uts/common/inet/sctp/
H A Dsctp_opt_data.c1006 int opt_len; local
1009 opt_len = ip_opt_get_user(connp, obuf);
1010 ASSERT(opt_len <= sizeof (obuf));
1012 if (buflen < opt_len) {
1014 opt_len = buflen;
1016 *optlen = opt_len;
1017 bcopy(obuf, ptr, opt_len);
/illumos-gate/usr/src/stand/lib/sock/
H A Dsock_test.c869 socklen_t opt_len; local
884 opt_len = sizeof (opt_val);
886 &opt_len) < 0) {

Completed in 171 milliseconds

12