/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_ntp.c | 57 interpret_ntp(int flags, struct ntpdata *ntp_pkt, int fraglen) in interpret_ntp() argument 89 (void) memcpy(&fragbuf, ntp_pkt, MIN(sizeof (fragbuf), fraglen)); in interpret_ntp() 125 show_header("NTP: ", "Network Time Protocol", fraglen); in interpret_ntp() 206 fraglen < (LEN_PKT_NOMAC + MAC_OCTETS_MIN)) { in interpret_ntp() 217 macbytes = fraglen - (LEN_PKT_NOMAC + sizeof (uint32_t)); in interpret_ntp() 371 return (fraglen); in interpret_ntp()
|
H A D | snoop_tcp.c | 75 interpret_tcp(int flags, struct tcphdr *tcp, int iplen, int fraglen) in interpret_tcp() argument 88 fraglen -= hdrlen; in interpret_tcp() 89 if (fraglen < 0) in interpret_tcp() 90 return (fraglen + hdrlen); /* incomplete header */ in interpret_tcp() 91 if (fraglen > tcplen) in interpret_tcp() 92 fraglen = tcplen; in interpret_tcp() 132 valid_rpc(data + 4, fraglen - 4); in interpret_tcp() 216 data, fraglen)) { in interpret_tcp() 217 if (sunrpc && fraglen > 0) in interpret_tcp() 218 interpret_rpc(flags, data, fraglen, IPPROTO_TCP); in interpret_tcp()
|
H A D | snoop_udp.c | 48 interpret_udp(int flags, struct udphdr *udp, int iplen, int fraglen) in interpret_udp() argument 56 if (fraglen < sizeof (struct udphdr)) in interpret_udp() 57 return (fraglen); /* incomplete header */ in interpret_udp() 61 fraglen -= sizeof (struct udphdr); in interpret_udp() 62 if (fraglen > udplen) in interpret_udp() 63 fraglen = udplen; in interpret_udp() 100 udplen > fraglen ? in interpret_udp() 116 data, fraglen)) { in interpret_udp() 117 if (fraglen > 0 && sunrpc) in interpret_udp() 118 interpret_rpc(flags, data, fraglen, IPPROTO_UDP); in interpret_udp() [all …]
|
H A D | snoop_socks.c | 42 int fraglen; 51 if (fraglen >= 2) { 58 if (fraglen >= 8) { 67 if (fraglen > 8) { 122 fraglen - 3); 144 if (fraglen >= 2) { 209 fraglen, 20)); 247 return (fraglen); 254 int fraglen; 262 if (fraglen >= 2) { [all …]
|
H A D | snoop_rip.c | 44 interpret_rip(int flags, struct rip *rip, int fraglen) in interpret_rip() argument 63 if ((len = fraglen - 4) < 0) in interpret_rip() 146 len = fraglen - 4; in interpret_rip() 147 show_header("RIP: ", "Routing Information Protocol", fraglen); in interpret_rip() 379 return (fraglen - len); in interpret_rip()
|
H A D | snoop_rip6.c | 51 interpret_rip6(int flags, struct rip6 *rip6, int fraglen) in interpret_rip6() argument 70 len = fraglen - 4; in interpret_rip6() 89 fraglen); in interpret_rip6() 103 len = fraglen - 4; in interpret_rip6() 126 return (fraglen); in interpret_rip6()
|
H A D | snoop_sctp.c | 979 fraglen -= pad; in interpret_chunks() 985 if (fraglen < 0 || fraglen < sizeof (*cp)) { in interpret_chunks() 986 if (fraglen > 0 && flags & F_DTAIL) { in interpret_chunks() 991 return (fraglen); in interpret_chunks() 995 if (fraglen < clen) { in interpret_chunks() 1000 return (fraglen); in interpret_chunks() 1056 fraglen -= clen; in interpret_chunks() 1086 fraglen -= sizeof (*sctp); in interpret_sctp() 1087 if (fraglen < 0) { in interpret_sctp() 1096 if (fraglen > len_from_iphdr) { in interpret_sctp() [all …]
|
H A D | snoop_ospf6.c | 99 ((uchar_t *)op + fraglen)) in interpret_ospf6_hello() 138 ((uchar_t *)op + fraglen)) in interpret_ospf6_hello() 145 return (fraglen); in interpret_ospf6_hello() 604 return (fraglen); in interpret_ospf6() 609 fraglen = ntohs(ospf->ospf6_len); in interpret_ospf6() 623 return (fraglen); in interpret_ospf6() 679 fraglen); in interpret_ospf6() 713 fraglen); in interpret_ospf6() 745 fraglen); in interpret_ospf6() 778 fraglen); in interpret_ospf6() [all …]
|
H A D | snoop_ospf.c | 152 ((uchar_t *)op + fraglen)) in interpret_ospf_hello() 190 ((uchar_t *)op + fraglen)) in interpret_ospf_hello() 197 return (fraglen); in interpret_ospf_hello() 550 if (fraglen > ntohs(ospf->ospf_len)) in interpret_ospf() 551 fraglen = ntohs(ospf->ospf_len); in interpret_ospf() 566 return (fraglen); in interpret_ospf() 612 return (fraglen); in interpret_ospf() 637 fraglen); in interpret_ospf() 699 fraglen); in interpret_ospf() 733 fraglen); in interpret_ospf() [all …]
|
H A D | snoop_ldap.c | 119 interpret_ldap(flags, data, fraglen, src, dst) in interpret_ldap() argument 122 int fraglen; 132 (void) decode_ldap(data, fraglen); 137 "Lightweight Directory Access Protocol Header", fraglen);
|
H A D | snoop_mip.c | 286 interpret_mip_cntrlmsg(int flags, uchar_t *msg, int fraglen) { in interpret_mip_cntrlmsg() argument 299 if (fraglen < sizeof (regreq_t)) in interpret_mip_cntrlmsg() 304 regext_size = fraglen - sizeof (regreq_t); in interpret_mip_cntrlmsg() 308 if (fraglen < sizeof (regrep_t)) in interpret_mip_cntrlmsg() 313 regext_size = fraglen - sizeof (regrep_t); in interpret_mip_cntrlmsg() 501 show_header("MIP: ", "Mobile IP Header", fraglen); in interpret_mip_cntrlmsg() 626 fraglen = interpret_extensions(regext_data, regext_size, REG); in interpret_mip_cntrlmsg()
|
H A D | snoop_http.c | 61 interpret_http(int flags, char *line, int fraglen) in interpret_http() argument 67 endp = line + fraglen; in interpret_http() 81 show_header("HTTP: ", "HyperText Transfer Protocol", fraglen); in interpret_http() 121 return (fraglen); in interpret_http()
|
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_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_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_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 …]
|
/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()
|