/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_socks.c | 36 static void put_socks5_addr(char *cp, const unsigned char *buf, int fraglen); 41 interpret_socks_call(flags, line, fraglen) in interpret_socks_call() argument 44 int fraglen; 53 if (fraglen >= 2) { 60 if (fraglen >= 8) { 69 if (fraglen > 8) { 73 i < 40 && i < fraglen; 94 if (2 + n == fraglen) { 98 for (i = 0; i < n && 2 + i < fraglen; ++i) { 102 } else if (fraglen >= 6 && buf[2] == 0) { [all …]
|
H A D | snoop_ipsec.c | 52 interpret_esp(int flags, uint8_t *hdr, int iplen, int fraglen) in interpret_esp() argument 60 if (fraglen < sizeof (esph_t)) in interpret_esp() 61 return (fraglen); /* incomplete header */ in interpret_esp() 103 interpret_ah(int flags, uint8_t *hdr, int iplen, int fraglen) in interpret_ah() argument 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() 136 return (fraglen + ahlen); /* incomplete header */ in interpret_ah() 196 &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 | 131 interpret_ospf_hello(int flags, struct ospfhdr *op, int fraglen) in interpret_ospf_hello() argument 136 if (fraglen < OSPF_MIN_HEADER_SIZE + OSPF_MIN_HELLO_HEADER_SIZE) in interpret_ospf_hello() 152 while ((uchar_t *)nbr < ((uchar_t *)op + fraglen)) { in interpret_ospf_hello() 154 ((uchar_t *)op + fraglen)) in interpret_ospf_hello() 190 while ((uchar_t *)nbr < ((uchar_t *)op + fraglen)) { in interpret_ospf_hello() 192 ((uchar_t *)op + fraglen)) in interpret_ospf_hello() 199 return (fraglen); in interpret_ospf_hello() 540 interpret_ospf(int flags, struct ospfhdr *ospf, int iplen, int fraglen) in interpret_ospf() argument 548 if ((fraglen < OSPF_MIN_HEADER_SIZE) || in interpret_ospf() 549 (fraglen < ntohs(ospf->ospf_len))) in interpret_ospf() [all …]
|
H A D | snoop_ospf6.c | 78 interpret_ospf6_hello(int flags, struct ospf6hdr *op, int fraglen) in interpret_ospf6_hello() argument 83 if (fraglen < OSPF6_MIN_HEADER_SIZE + OSPF_MIN_HELLO_HEADER_SIZE) in interpret_ospf6_hello() 99 while ((uchar_t *)nbr < ((uchar_t *)op + fraglen)) { in interpret_ospf6_hello() 101 ((uchar_t *)op + fraglen)) in interpret_ospf6_hello() 138 while ((uchar_t *)nbr < ((uchar_t *)op + fraglen)) { in interpret_ospf6_hello() 140 ((uchar_t *)op + fraglen)) in interpret_ospf6_hello() 147 return (fraglen); in interpret_ospf6_hello() 587 interpret_ospf6(int flags, struct ospf6hdr *ospf, int iplen, int fraglen) in interpret_ospf6() argument 595 if ((fraglen < OSPF6_MIN_HEADER_SIZE) || in interpret_ospf6() 596 (fraglen < ntohs(ospf->ospf6_len))) in interpret_ospf6() [all …]
|
H A D | snoop_ip.c | 83 interpret_ip(int flags, const struct ip *ip, int fraglen) in interpret_ip() argument 94 iplen = interpret_ipv6(flags, (ip6_t *)ip, fraglen); in interpret_ip() 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() 111 "IP truncated: header missing %d bytes", -fraglen); in interpret_ip() 113 return (fraglen + iplen); in interpret_ip() 147 iplen > fraglen ? "?" : "", in interpret_ip() 186 iplen > fraglen ? " -- truncated" : ""); in interpret_ip() [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_rpc.c | 68 interpret_rpc(int flags, char *rpc, int fraglen, int type) in interpret_rpc() argument 81 xdr_init(rpc, fraglen); in interpret_rpc() 87 return (fraglen); in interpret_rpc() 107 rpc, fraglen); in interpret_rpc() 132 rpc, fraglen); in interpret_rpc() 163 rpc, fraglen); in interpret_rpc() 209 show_header("RPC: ", "SUN RPC Header", fraglen); in interpret_rpc() 229 prog, vers, proc, rpc, fraglen); in interpret_rpc() 232 rpc_detail_reply(flags, xid, x, rpc, fraglen); in interpret_rpc() 237 return (fraglen); in interpret_rpc()
|
H A D | snoop_sctp.c | 957 interpret_chunks(int flags, sctp_chunk_hdr_t *cp, int fraglen) in interpret_chunks() argument 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() 1066 interpret_sctp(int flags, sctp_hdr_t *sctp, int iplen, int fraglen) in interpret_sctp() argument 1088 fraglen -= sizeof (*sctp); in interpret_sctp() [all …]
|
H A D | snoop_slp.c | 166 void interpret_slp(int flags, char *slp, int fraglen) { in interpret_slp() argument 170 msglength = fraglen; in interpret_slp() 178 if (add_tcp_cont(tce, slp, fraglen)) { in interpret_slp() 180 fraglen = tce->curr_offset; in interpret_slp() 186 interpret_slp_v2(flags, (void *)slp, fraglen); in interpret_slp() 188 interpret_slp_v1(flags, (void *)slp, fraglen); in interpret_slp() 623 int fraglen, int dst_port) { in reg_tcp_cont() argument 634 memcpy(tce->msg, msg, fraglen); in reg_tcp_cont() 636 tce->curr_offset = fraglen; in reg_tcp_cont() 644 static int add_tcp_cont(struct tcp_cont *tce, char *msg, int fraglen) { in add_tcp_cont() argument [all …]
|
H A D | snoop_tftp.c | 38 interpret_tftp(int flags, struct tftphdr *tftp, int fraglen) in interpret_tftp() argument 42 int blocksize = fraglen - 4; in interpret_tftp() 90 show_header("TFTP: ", "Trivial File Transfer Protocol", fraglen); in interpret_tftp() 142 return (fraglen); in interpret_tftp()
|
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);
|
/titanic_41/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()
|
/titanic_41/usr/src/uts/common/inet/sctp/ |
H A D | sctp_input.c | 944 uint16_t fraglen = 0; in sctp_data_frag() local 1149 fraglen += ntohs(qdc->sdh_len); in sctp_data_frag() 1153 srp->sr_msglen += fraglen; in sctp_data_frag()
|