/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_socks.c | 44 int fraglen; 53 if (fraglen >= 2) { 60 if (fraglen >= 8) { 69 if (fraglen > 8) { 124 fraglen - 3); 146 if (fraglen >= 2) { 211 fraglen, 20)); 249 return (fraglen); 256 int fraglen; 264 if (fraglen >= 2) { [all …]
|
H A D | snoop_ipsec.c | 60 if (fraglen < sizeof (esph_t)) in interpret_esp() 61 return (fraglen); /* incomplete header */ in interpret_esp() 115 if (fraglen < sizeof (ah_t)) in interpret_ah() 116 return (fraglen); /* incomplete header */ in interpret_ah() 134 fraglen -= ahlen; in interpret_ah() 135 if (fraglen < 0) in interpret_ah() 196 &fraglen); in interpret_ah() 199 if (fraglen > 0) in interpret_ah() 218 new_iplen, fraglen); in interpret_ah() 227 fraglen); in interpret_ah() [all …]
|
H A D | snoop_udp.c | 50 interpret_udp(int flags, struct udphdr *udp, int iplen, int fraglen) in interpret_udp() argument 58 if (fraglen < sizeof (struct udphdr)) in interpret_udp() 59 return (fraglen); /* incomplete header */ in interpret_udp() 63 fraglen -= sizeof (struct udphdr); in interpret_udp() 64 if (fraglen > udplen) in interpret_udp() 65 fraglen = udplen; in interpret_udp() 102 udplen > fraglen ? in interpret_udp() 118 data, fraglen)) { in interpret_udp() 119 if (fraglen > 0 && sunrpc) in interpret_udp() 120 interpret_rpc(flags, data, fraglen, IPPROTO_UDP); in interpret_udp() [all …]
|
H A D | snoop_ospf.c | 154 ((uchar_t *)op + fraglen)) in interpret_ospf_hello() 192 ((uchar_t *)op + fraglen)) in interpret_ospf_hello() 199 return (fraglen); in interpret_ospf_hello() 552 if (fraglen > ntohs(ospf->ospf_len)) in interpret_ospf() 553 fraglen = ntohs(ospf->ospf_len); in interpret_ospf() 568 return (fraglen); in interpret_ospf() 614 return (fraglen); in interpret_ospf() 639 fraglen); in interpret_ospf() 701 fraglen); in interpret_ospf() 735 fraglen); in interpret_ospf() [all …]
|
H A D | snoop_vxlan.c | 26 interpret_vxlan(int flags, char *data, int fraglen) in interpret_vxlan() argument 31 if (fraglen < sizeof (vxlan_hdr_t)) { in interpret_vxlan() 36 show_header("VXLAN RUNT: ", "Short packet", fraglen); in interpret_vxlan() 38 return (fraglen); in interpret_vxlan() 63 fraglen -= sizeof (vxlan_hdr_t); in interpret_vxlan() 66 return (interpret_ether(flags, data, fraglen, fraglen)); in interpret_vxlan()
|
H A D | snoop_ospf6.c | 101 ((uchar_t *)op + fraglen)) in interpret_ospf6_hello() 140 ((uchar_t *)op + fraglen)) in interpret_ospf6_hello() 147 return (fraglen); in interpret_ospf6_hello() 606 return (fraglen); in interpret_ospf6() 611 fraglen = ntohs(ospf->ospf6_len); in interpret_ospf6() 625 return (fraglen); in interpret_ospf6() 681 fraglen); in interpret_ospf6() 715 fraglen); in interpret_ospf6() 747 fraglen); in interpret_ospf6() 780 fraglen); in interpret_ospf6() [all …]
|
H A D | snoop_ip.c | 106 fraglen -= hdrlen; in interpret_ip() 107 if (fraglen > iplen) in interpret_ip() 108 fraglen = iplen; in interpret_ip() 109 if (fraglen < 0) { in interpret_ip() 270 fraglen); in interpret_ip() 274 fraglen); in interpret_ip() 333 if (fraglen < 0) in interpret_ipv6() 414 &fraglen); in interpret_ipv6() 435 fraglen); in interpret_ipv6() 440 fraglen); in interpret_ipv6() [all …]
|
H A D | snoop_rip6.c | 53 interpret_rip6(int flags, struct rip6 *rip6, int fraglen) in interpret_rip6() argument 72 len = fraglen - 4; in interpret_rip6() 91 fraglen); in interpret_rip6() 105 len = fraglen - 4; in interpret_rip6() 128 return (fraglen); in interpret_rip6()
|
H A D | snoop_tcp.c | 78 interpret_tcp(int flags, struct tcphdr *tcp, int iplen, int fraglen) in interpret_tcp() argument 91 fraglen -= hdrlen; in interpret_tcp() 92 if (fraglen < 0) in interpret_tcp() 93 return (fraglen + hdrlen); /* incomplete header */ in interpret_tcp() 94 if (fraglen > tcplen) in interpret_tcp() 95 fraglen = tcplen; in interpret_tcp() 135 valid_rpc(data + 4, fraglen - 4); in interpret_tcp() 215 data, fraglen)) { in interpret_tcp() 216 if (sunrpc && fraglen > 0) in interpret_tcp() 217 interpret_rpc(flags, data, fraglen, IPPROTO_TCP); in interpret_tcp()
|
H A D | snoop_http.c | 63 interpret_http(int flags, char *line, int fraglen) in interpret_http() argument 69 endp = line + fraglen; in interpret_http() 83 show_header("HTTP: ", "HyperText Transfer Protocol", fraglen); in interpret_http() 123 return (fraglen); in interpret_http()
|
H A D | snoop_sctp.c | 981 fraglen -= pad; in interpret_chunks() 987 if (fraglen < 0 || fraglen < sizeof (*cp)) { in interpret_chunks() 988 if (fraglen > 0 && flags & F_DTAIL) { in interpret_chunks() 993 return (fraglen); in interpret_chunks() 997 if (fraglen < clen) { in interpret_chunks() 1002 return (fraglen); in interpret_chunks() 1058 fraglen -= clen; in interpret_chunks() 1088 fraglen -= sizeof (*sctp); in interpret_sctp() 1089 if (fraglen < 0) { in interpret_sctp() 1098 if (fraglen > len_from_iphdr) { in interpret_sctp() [all …]
|
H A D | snoop_rpc.c | 69 interpret_rpc(int flags, char *rpc, int fraglen, int type) in interpret_rpc() argument 82 xdr_init(rpc, fraglen); in interpret_rpc() 88 return (fraglen); in interpret_rpc() 108 rpc, fraglen); in interpret_rpc() 133 rpc, fraglen); in interpret_rpc() 164 rpc, fraglen); in interpret_rpc() 210 show_header("RPC: ", "SUN RPC Header", fraglen); in interpret_rpc() 230 prog, vers, proc, rpc, fraglen); in interpret_rpc() 233 rpc_detail_reply(flags, xid, x, rpc, fraglen); in interpret_rpc() 238 return (fraglen); in interpret_rpc()
|
H A D | snoop_tftp.c | 42 interpret_tftp(int flags, void *data, int fraglen) in interpret_tftp() argument 46 int blocksize = fraglen - 4; in interpret_tftp() 107 fraglen - sizeof (tftp->th_opcode), &opts)); in interpret_tftp() 116 fraglen); in interpret_tftp() 166 fraglen - sizeof (tftp->th_opcode), &opts)); in interpret_tftp() 173 return (fraglen); in interpret_tftp()
|
H A D | snoop_slp.c | 168 msglength = fraglen; in interpret_slp() 178 fraglen = tce->curr_offset; in interpret_slp() 184 interpret_slp_v2(flags, slp, fraglen); in interpret_slp() 186 interpret_slp_v1(flags, slp, fraglen); in interpret_slp() 622 int fraglen, int dst_port) { in reg_tcp_cont() argument 633 memcpy(tce->msg, msg, fraglen); in reg_tcp_cont() 635 tce->curr_offset = fraglen; in reg_tcp_cont() 648 tce->curr_offset += fraglen; in add_tcp_cont() 746 totallen - fraglen); in interpret_slp_v2() 764 int fraglen) { in v2_header() argument [all …]
|
H A D | snoop_ntp.c | 59 interpret_ntp(int flags, struct ntpdata *ntp_pkt, int fraglen) in interpret_ntp() argument 91 (void) memcpy(&fragbuf, ntp_pkt, MIN(sizeof (fragbuf), fraglen)); in interpret_ntp() 127 show_header("NTP: ", "Network Time Protocol", fraglen); in interpret_ntp() 208 fraglen < (LEN_PKT_NOMAC + MAC_OCTETS_MIN)) { in interpret_ntp() 219 macbytes = fraglen - (LEN_PKT_NOMAC + sizeof (uint32_t)); in interpret_ntp() 373 return (fraglen); in interpret_ntp()
|
H A D | snoop_rip.c | 46 interpret_rip(int flags, struct rip *rip, int fraglen) in interpret_rip() argument 65 if ((len = fraglen - 4) < 0) in interpret_rip() 148 len = fraglen - 4; in interpret_rip() 149 show_header("RIP: ", "Routing Information Protocol", fraglen); in interpret_rip() 381 return (fraglen - len); in interpret_rip()
|
H A D | snoop_mip.c | 288 interpret_mip_cntrlmsg(int flags, uchar_t *msg, int fraglen) { in interpret_mip_cntrlmsg() argument 301 if (fraglen < sizeof (regreq_t)) in interpret_mip_cntrlmsg() 306 regext_size = fraglen - sizeof (regreq_t); in interpret_mip_cntrlmsg() 310 if (fraglen < sizeof (regrep_t)) in interpret_mip_cntrlmsg() 315 regext_size = fraglen - sizeof (regrep_t); in interpret_mip_cntrlmsg() 503 show_header("MIP: ", "Mobile IP Header", fraglen); in interpret_mip_cntrlmsg() 628 fraglen = interpret_extensions(regext_data, regext_size, REG); in interpret_mip_cntrlmsg()
|
H A D | snoop_ldap.c | 121 interpret_ldap(flags, data, fraglen, src, dst) in interpret_ldap() argument 124 int fraglen; 134 (void) decode_ldap(data, fraglen); 139 "Lightweight Directory Access Protocol Header", fraglen);
|
/illumos-gate/usr/src/uts/common/io/rtw/ |
H A D | rtw.c | 2034 uint32_t flags, int fraglen, int rate, struct rtw_ieee80211_duration *d0, in rtw_compute_duration() argument 2051 npkt = paylen / fraglen; in rtw_compute_duration() 2052 lastlen0 = paylen % fraglen; in rtw_compute_duration() 2060 lastlen = fraglen + overlen; in rtw_compute_duration() 2066 firstlen = fraglen + overlen; in rtw_compute_duration()
|
/illumos-gate/usr/src/uts/common/inet/sctp/ |
H A D | sctp_input.c | 944 uint16_t fraglen = 0; in sctp_data_frag() local 1150 fraglen += ntohs(qdc->sdh_len); in sctp_data_frag() 1154 srp->sr_msglen += fraglen; in sctp_data_frag()
|