Home
last modified time | relevance | path

Searched refs:opt_len (Results 1 – 25 of 29) sorted by relevance

12

/titanic_50/usr/src/cmd/cmd-inet/sbin/dhcpinfo/
H A Ddhcpinfo.c64 size_t opt_len; in main() local
187 opt = dhcp_ipc_get_data(reply, &opt_len, NULL); in main()
194 if (opt_len == 0) in main()
204 if (opt_len < sizeof (d6o)) in main()
207 if (opt_len != ntohs(d6o.d6o_len) + sizeof (d6o)) in main()
210 opt_len -= sizeof (d6o); in main()
212 if (opt_len < 2 || (opt_len - 2 != opt->len)) in main()
214 opt_len -= 2; in main()
220 value = malloc(opt_len * (sizeof ("0xNN") + 1)); in main()
226 for (i = 0, valuep = value; i < opt_len; i++) in main()
[all …]
/titanic_50/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);
/titanic_50/usr/src/cmd/cmd-inet/usr.bin/pppdump/
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) in bsd_alloc() argument
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) in bsd_decomp_alloc() argument
368 int opt_len;
370 return bsd_alloc(options, opt_len, 1);
377 bsd_init(db, options, opt_len, unit, hdrlen, mru, debug, decomp) in bsd_init() argument
380 int opt_len, unit, hdrlen, mru, debug, decomp;
[all …]
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) in z_decomp_alloc() argument
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) in z_decomp_init() argument
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 Dzlib.c365 ulg opt_len; /* bit length of current block with optimal trees */ member
1780 s->opt_len = s->static_len = 0L;
1885 s->opt_len += (ulg)f * (bits + xbits);
1918 s->opt_len += ((long)bits - (long)tree[m].Len)
2012 s->opt_len--; if (stree) s->static_len -= stree[node].Len;
2183 s->opt_len += 3*(max_blindex+1) + 5+5+4;
2185 s->opt_len, s->static_len));
2298 Tracev((stderr, "\nlit data: dyn %ld, stat %ld", s->opt_len,
2302 Tracev((stderr, "\ndist data: dyn %ld, stat %ld", s->opt_len,
2314 opt_lenb = (s->opt_len+3+7)>>3;
[all …]
/titanic_50/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,
/titanic_50/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) in bsd_alloc() argument
357 if (opt_len != 3 || in bsd_alloc()
457 bsd_comp_alloc(uchar_t *options, int opt_len) in bsd_comp_alloc() argument
459 return (bsd_alloc(options, opt_len, 0)); in bsd_comp_alloc()
466 bsd_decomp_alloc(uchar_t *options, int opt_len) in bsd_decomp_alloc() argument
468 return (bsd_alloc(options, opt_len, 1)); in bsd_decomp_alloc()
[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) in z_comp_alloc() argument
199 if (opt_len != CILEN_DEFLATE || in z_comp_alloc()
255 z_comp_init(void *arg, uchar_t *options, int opt_len, int unit, int hdrlen, in z_comp_init() argument
260 if (opt_len < CILEN_DEFLATE || in z_comp_init()
648 z_decomp_alloc(uchar_t *options, int opt_len) in z_decomp_alloc() argument
653 if (opt_len != CILEN_DEFLATE || in z_decomp_alloc()
[all …]
H A Dspppcomp.c706 uint32_t opt_len; in spppcomp_inner_ioctl() local
795 opt_len = mp->b_cont->b_wptr - opt_data; in spppcomp_inner_ioctl()
796 if (opt_len > iop->ioc_count) { in spppcomp_inner_ioctl()
797 opt_len = iop->ioc_count; in spppcomp_inner_ioctl()
800 if (len < 2 || len > opt_len) in spppcomp_inner_ioctl()
825 opt_len); in spppcomp_inner_ioctl()
834 (uchar_t)opt_data[0], opt_len, in spppcomp_inner_ioctl()
846 (*comp)->decomp_alloc(opt_data, opt_len); in spppcomp_inner_ioctl()
855 (uchar_t)opt_data[0], opt_len, in spppcomp_inner_ioctl()
H A Dzlib.c541 ulg opt_len; /* bit length of current block with optimal trees */ member
2583 s->opt_len = s->static_len = 0L;
2695 s->opt_len += (ulg)f * (bits + xbits);
2735 s->opt_len += ((long)bits - (long)tree[m].Len)
2841 s->opt_len--; if (stree) s->static_len -= stree[node].Len;
3034 s->opt_len += 3*(max_blindex+1) + 5+5+4;
3036 s->opt_len, s->static_len));
3175 Tracev((stderr, "\nlit data: dyn %ld, stat %ld", s->opt_len,
3179 Tracev((stderr, "\ndist data: dyn %ld, stat %ld", s->opt_len,
3198 opt_lenb = (s->opt_len+3+7)>>3;
[all …]
/titanic_50/usr/src/cmd/cmd-inet/sbin/dhcpagent/
H A Dpacket.c413 uint_t opt_len) in add_pkt_opt() argument
424 req_len = opt_len + sizeof (d6o); in add_pkt_opt()
434 d6o.d6o_len = htons(opt_len); in add_pkt_opt()
437 if (opt_len > 0) { in add_pkt_opt()
439 opt_len); in add_pkt_opt()
440 dpkt->pkt_cur_len += opt_len; in add_pkt_opt()
443 req_len = opt_len + 2; /* + 2 for code & length bytes */ in add_pkt_opt()
464 raw_pkt[dpkt->pkt_cur_len++] = opt_len; in add_pkt_opt()
465 if (opt_len > 0) { in add_pkt_opt()
467 opt_val, opt_len); in add_pkt_opt()
[all …]
/titanic_50/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_dhcp.c275 int opt_len; in show_options() local
540 opt_len = *start++; in show_options()
543 for (i = 0; i < opt_len; i++) { in show_options()
570 opt_len = *start++; in show_options()
588 opt_len, B_TRUE); in show_options()
593 prmpt, save, opt_len); in show_options()
599 start += opt_len; in show_options()
/titanic_50/usr/src/uts/common/zmod/
H A Dtrees.c422 s->opt_len = s->static_len = 0L;
527 s->opt_len += (ulg)f * (bits + xbits);
560 s->opt_len += ((long)bits - (long)tree[m].Len)
654 s->opt_len--; if (stree) s->static_len -= stree[node].Len;
826 s->opt_len += 3*(max_blindex+1) + 5+5+4;
828 s->opt_len, s->static_len));
939 Tracev((stderr, "\nlit data: dyn %ld, stat %ld", s->opt_len,
943 Tracev((stderr, "\ndist data: dyn %ld, stat %ld", s->opt_len,
955 opt_lenb = (s->opt_len+3+7)>>3;
959 opt_lenb, s->opt_len, static_lenb, s->static_len, stored_len,
[all …]
H A Ddeflate.h244 ulg opt_len; /* bit length of current block with optimal trees */ member
/titanic_50/usr/src/uts/common/os/
H A Dip_cksum.c539 int opt_len; in ip_csum_hdr() local
541 opt_len = (ipha->ipha_version_and_hdr_length & 0xF) - in ip_csum_hdr()
546 if (opt_len > 0) { in ip_csum_hdr()
551 } while (--opt_len); in ip_csum_hdr()
/titanic_50/usr/src/cmd/geniconvtbl/
H A Ditmcomp.c494 size_t opt_len; in cpp_opt_append() local
499 opt_len = ((NULL == opt) ? 0 : strlen(opt)); in cpp_opt_append()
501 if (0 < (opt_len + arg_len)) { in cpp_opt_append()
502 new_opt = malloc_vital(opt_len + arg_len + 1); in cpp_opt_append()
504 (void) memcpy(new_opt, opt, opt_len + 1); in cpp_opt_append()
507 (void) memcpy(new_opt + opt_len, arg, arg_len + 1); in cpp_opt_append()
/titanic_50/usr/src/lib/libfsmgt/common/
H A Dfs_mounts.c881 size_t opt_len; in is_option() local
885 opt_len = strlen(opt); in is_option()
887 value_len = opt_string_len - opt_len; in is_option()
902 value[counter] = opt_string[opt_len+counter]; in is_option()
/titanic_50/usr/src/cmd/cmd-inet/lib/nwamd/
H A Dncu_ip.c153 size_t opt_len; in nwamd_get_dhcpinfo_data() local
191 opt = dhcp_ipc_get_data(reply, &opt_len, NULL); in nwamd_get_dhcpinfo_data()
192 if (opt_len == 0) { in nwamd_get_dhcpinfo_data()
198 if (opt_len < 2 || (opt_len -2 != opt->len)) { in nwamd_get_dhcpinfo_data()
202 opt_len -= 2; in nwamd_get_dhcpinfo_data()
205 value = inittab_decode(entry, opt->value, opt_len, B_TRUE); in nwamd_get_dhcpinfo_data()
/titanic_50/usr/src/uts/common/io/mac/
H A Dmac_protect.c274 uchar_t **opt, uint8_t *opt_len) in get_dhcpv4_option() argument
291 *opt_len = olen; in get_dhcpv4_option()
577 uint8_t opt_len, mtype, cid[DHCP_MAX_OPT_SIZE], cid_len; in intercept_dhcpv4_outbound() local
587 if (get_dhcpv4_option(dh4, end, CD_DHCP_TYPE, &opt, &opt_len) != 0 || in intercept_dhcpv4_outbound()
588 opt_len != 1) { in intercept_dhcpv4_outbound()
601 if (get_dhcpv4_option(dh4, end, CD_CLIENT_ID, &opt, &opt_len) == 0 && in intercept_dhcpv4_outbound()
602 opt_len >= 2) { in intercept_dhcpv4_outbound()
603 bcopy(opt, cid, opt_len); in intercept_dhcpv4_outbound()
604 cid_len = opt_len; in intercept_dhcpv4_outbound()
640 &opt, &opt_len) != 0 || opt_len != sizeof (ipaddr)) { in intercept_dhcpv4_outbound()
[all …]
/titanic_50/usr/src/cmd/cmd-inet/usr.sbin/ping/
H A Dping.c605 size_t opt_len = 0; in main() local
612 opt_len = 3 + in main()
615 opt_len = 3 + (num_gw + 1) * sizeof (struct in_addr); in main()
619 opt_len = MAX_IPOPTLEN; in main()
622 opt_len = MAX_IPOPTLEN; in main()
624 opt_len += IPOPT_MINOFF + in main()
630 opt_len++; in main()
635 if (opt_len & 0x3) in main()
636 opt_len = (opt_len & ~0x3) + 4; in main()
638 if (datalen > (IP_MAXPACKET - (sizeof (struct ip) + opt_len + in main()
/titanic_50/usr/src/uts/common/inet/sctp/
H A Dsctp_opt_data.c1006 int opt_len; in sctp_get_opt() local
1009 opt_len = ip_opt_get_user(connp, obuf); in sctp_get_opt()
1010 ASSERT(opt_len <= sizeof (obuf)); in sctp_get_opt()
1012 if (buflen < opt_len) { in sctp_get_opt()
1014 opt_len = buflen; in sctp_get_opt()
1016 *optlen = opt_len; in sctp_get_opt()
1017 bcopy(obuf, ptr, opt_len); in sctp_get_opt()
/titanic_50/usr/src/stand/lib/sock/
H A Dsock_test.c869 socklen_t opt_len; in st_getsockopt() local
884 opt_len = sizeof (opt_val); in st_getsockopt()
886 &opt_len) < 0) { in st_getsockopt()
/titanic_50/usr/src/cmd/mdb/common/modules/ip/
H A Dip.c1177 uint32_t opt_len; in tcphdr() local
1189 opt_len = (tcph.th_off << 2) - TCP_MIN_HEADER_LENGTH; in tcphdr()
1190 if (opt_len > 0) { in tcphdr()
1193 opt_buf = mdb_alloc(opt_len, UM_SLEEP); in tcphdr()
1195 if (mdb_vread(opt_buf, opt_len, (uintptr_t)opts) == -1) { in tcphdr()
1199 tcphdr_print_options(opt_buf, opt_len); in tcphdr()
1200 mdb_free(opt_buf, opt_len); in tcphdr()
/titanic_50/usr/src/uts/common/inet/ip/
H A Dip_input.c560 uint_t opt_len; in ill_input_short_v4() local
732 opt_len = ipha->ipha_version_and_hdr_length - IP_SIMPLE_HDR_VERSION; in ill_input_short_v4()
734 if (opt_len != 0) { in ill_input_short_v4()
737 ira->ira_ip_hdr_length += (opt_len << 2); in ill_input_short_v4()
741 mp = ip_check_optlen(mp, ipha, opt_len, pkt_len, ira); in ill_input_short_v4()

12