/opensolaris-onvv-gate/usr/src/cmd/cmd-inet/sbin/dhcpinfo/ |
H A D | dhcpinfo.c | 64 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...] |
/opensolaris-onvv-gate/usr/src/uts/common/net/ |
H A D | ppp-comp.h | 63 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,
|
/opensolaris-onvv-gate/usr/src/cmd/cmd-inet/usr.bin/pppdump/ |
H A D | deflate.c | 64 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 D | ppp-comp.h | 53 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 D | bsd-comp.c | 129 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 D | zlib.c | 365 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...] |
/opensolaris-onvv-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/ |
H A D | cbcp.c | 330 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);
|
/opensolaris-onvv-gate/usr/src/cmd/cmd-inet/sbin/dhcpagent/ |
H A D | packet.c | 413 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...] |
/opensolaris-onvv-gate/usr/src/uts/common/io/ppp/spppcomp/ |
H A D | bsd-comp.c | 151 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 D | deflate.c | 78 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 D | spppcomp.c | 706 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 D | zlib.c | 541 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...] |
/opensolaris-onvv-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_dhcp.c | 275 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;
|
/opensolaris-onvv-gate/usr/src/uts/common/os/ |
H A D | ip_cksum.c | 539 int opt_len; local 541 opt_len = (ipha->ipha_version_and_hdr_length & 0xF) - 546 if (opt_len > 0) { 551 } while (--opt_len);
|
/opensolaris-onvv-gate/usr/src/uts/common/zmod/ |
H A D | trees.c | 422 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 D | deflate.h | 244 ulg opt_len; /* bit length of current block with optimal trees */ member in struct:internal_state
|
/opensolaris-onvv-gate/usr/src/uts/common/io/mac/ |
H A D | mac_protect.c | 258 uchar_t **opt, uint8_t *opt_len) 275 *opt_len = olen; 562 uint8_t opt_len, mtype, cid[DHCP_MAX_OPT_SIZE], cid_len; local 572 if (get_dhcpv4_option(dh4, end, CD_DHCP_TYPE, &opt, &opt_len) != 0 || 573 opt_len != 1) { 586 if (get_dhcpv4_option(dh4, end, CD_CLIENT_ID, &opt, &opt_len) == 0 && 587 opt_len >= 2) { 588 bcopy(opt, cid, opt_len); 589 cid_len = opt_len; 625 &opt, &opt_len) ! 257 get_dhcpv4_option(struct dhcp *dh4, uchar_t *end, uint8_t type, uchar_t **opt, uint8_t *opt_len) argument 659 uint8_t opt_len, mtype; local [all...] |
/opensolaris-onvv-gate/usr/src/cmd/cmd-inet/lib/nwamd/ |
H A D | ncu_ip.c | 153 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);
|
/opensolaris-onvv-gate/usr/src/lib/libfsmgt/common/ |
H A D | fs_mounts.c | 881 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];
|
/opensolaris-onvv-gate/usr/src/cmd/cmd-inet/usr.sbin/ping/ |
H A D | ping.c | 577 size_t opt_len = 0; local 584 opt_len = 3 + 587 opt_len = 3 + (num_gw + 1) * sizeof (struct in_addr); 591 opt_len = MAX_IPOPTLEN; 594 opt_len = MAX_IPOPTLEN; 596 opt_len += IPOPT_MINOFF + 602 opt_len++; 607 if (opt_len & 0x3) 608 opt_len = (opt_len [all...] |
/opensolaris-onvv-gate/usr/src/cmd/geniconvtbl/ |
H A D | itmcomp.c | 494 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);
|
/opensolaris-onvv-gate/usr/src/uts/common/inet/sctp/ |
H A D | sctp_opt_data.c | 1006 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);
|
/opensolaris-onvv-gate/usr/src/stand/lib/sock/ |
H A D | sock_test.c | 869 socklen_t opt_len; local 884 opt_len = sizeof (opt_val); 886 &opt_len) < 0) {
|
/opensolaris-onvv-gate/usr/src/uts/common/inet/ip/ |
H A D | ip_input.c | 558 uint_t opt_len; local 730 opt_len = ipha->ipha_version_and_hdr_length - IP_SIMPLE_HDR_VERSION; 732 if (opt_len != 0) { 735 ira->ira_ip_hdr_length += (opt_len << 2); 739 mp = ip_check_optlen(mp, ipha, opt_len, pkt_len, ira);
|
/opensolaris-onvv-gate/usr/src/cmd/mdb/common/modules/ip/ |
H A D | ip.c | 1177 uint32_t opt_len; local 1189 opt_len = (tcph.th_off << 2) - TCP_MIN_HEADER_LENGTH; 1190 if (opt_len > 0) { 1193 opt_buf = mdb_alloc(opt_len, UM_SLEEP); 1195 if (mdb_vread(opt_buf, opt_len, (uintptr_t)opts) == -1) { 1199 tcphdr_print_options(opt_buf, opt_len); 1200 mdb_free(opt_buf, opt_len);
|