Lines Matching refs:tcp

78 interpret_tcp(int flags, struct tcphdr *tcp, int iplen, int fraglen)  in interpret_tcp()  argument
88 hdrlen = tcp->th_off * 4; in interpret_tcp()
89 data = (char *)tcp + hdrlen; in interpret_tcp()
101 ntohs(tcp->th_dport), ntohs(tcp->th_sport)); in interpret_tcp()
105 if (tcp->th_flags & tcp_flags[i].tf_flag) { in interpret_tcp()
112 if (tcp->th_flags & TH_URG) { in interpret_tcp()
114 ntohs(tcp->th_urp)); in interpret_tcp()
117 if (tcp->th_flags & TH_ACK) { in interpret_tcp()
119 ntohl(tcp->th_ack)); in interpret_tcp()
122 if (ntohl(tcp->th_seq)) { in interpret_tcp()
124 ntohl(tcp->th_seq), tcplen); in interpret_tcp()
128 ntohs(tcp->th_win)); in interpret_tcp()
129 print_tcpoptions_summary((uchar_t *)(tcp + 1), in interpret_tcp()
130 (int)(tcp->th_off * 4 - sizeof (struct tcphdr)), line); in interpret_tcp()
133 sunrpc = !reservedport(IPPROTO_TCP, ntohs(tcp->th_dport)) && in interpret_tcp()
134 !reservedport(IPPROTO_TCP, ntohs(tcp->th_sport)) && in interpret_tcp()
141 (void) sprintf(get_line((char *)(uintptr_t)tcp->th_sport - in interpret_tcp()
142 dlc_header, 2), "Source port = %d", ntohs(tcp->th_sport)); in interpret_tcp()
147 pname = getportname(IPPROTO_TCP, ntohs(tcp->th_dport)); in interpret_tcp()
155 (void) sprintf(get_line((char *)(uintptr_t)tcp->th_dport - in interpret_tcp()
157 ntohs(tcp->th_dport), pname); in interpret_tcp()
158 (void) sprintf(get_line((char *)(uintptr_t)tcp->th_seq - in interpret_tcp()
160 ntohl(tcp->th_seq)); in interpret_tcp()
161 (void) sprintf(get_line((char *)(uintptr_t)tcp->th_ack - dlc_header, 4), in interpret_tcp()
163 ntohl(tcp->th_ack)); in interpret_tcp()
164 (void) sprintf(get_line(((char *)(uintptr_t)tcp->th_ack - dlc_header) + in interpret_tcp()
165 4, 1), "Data offset = %d bytes", tcp->th_off * 4); in interpret_tcp()
166 (void) sprintf(get_line(((char *)(uintptr_t)tcp->th_flags - in interpret_tcp()
167 dlc_header) + 4, 1), "Flags = 0x%02x", tcp->th_flags); in interpret_tcp()
168 (void) sprintf(get_line(((char *)(uintptr_t)tcp->th_flags - in interpret_tcp()
169 dlc_header) + 4, 1), " %s", getflag(tcp->th_flags, TH_CWR, in interpret_tcp()
172 (void) sprintf(get_line(((char *)(uintptr_t)tcp->th_flags - in interpret_tcp()
173 dlc_header) + 4, 1), " %s", getflag(tcp->th_flags, TH_ECE, in interpret_tcp()
176 get_line(((char *)(uintptr_t)tcp->th_flags - dlc_header) + 4, 1), in interpret_tcp()
177 " %s", getflag(tcp->th_flags, TH_URG, in interpret_tcp()
179 (void) sprintf(get_line(((char *)(uintptr_t)tcp->th_flags - in interpret_tcp()
180 dlc_header) + 4, 1), " %s", getflag(tcp->th_flags, TH_ACK, in interpret_tcp()
182 (void) sprintf(get_line(((char *)(uintptr_t)tcp->th_flags - in interpret_tcp()
183 dlc_header) + 4, 1), " %s", getflag(tcp->th_flags, TH_PUSH, in interpret_tcp()
185 (void) sprintf(get_line(((char *)(uintptr_t)tcp->th_flags - in interpret_tcp()
186 dlc_header) + 4, 1), " %s", getflag(tcp->th_flags, TH_RST, in interpret_tcp()
188 (void) sprintf(get_line(((char *)(uintptr_t)tcp->th_flags - in interpret_tcp()
189 dlc_header) + 4, 1), " %s", getflag(tcp->th_flags, TH_SYN, in interpret_tcp()
191 (void) sprintf(get_line(((char *)(uintptr_t)tcp->th_flags - in interpret_tcp()
192 dlc_header) + 4, 1), " %s", getflag(tcp->th_flags, TH_FIN, in interpret_tcp()
194 (void) sprintf(get_line(((char *)(uintptr_t)tcp->th_win - dlc_header) + in interpret_tcp()
195 4, 1), "Window = %d", ntohs(tcp->th_win)); in interpret_tcp()
197 (void) sprintf(get_line(((char *)(uintptr_t)tcp->th_sum - dlc_header) + in interpret_tcp()
198 4, 1), "Checksum = 0x%04x", ntohs(tcp->th_sum)); in interpret_tcp()
199 (void) sprintf(get_line(((char *)(uintptr_t)tcp->th_urp - dlc_header) + in interpret_tcp()
200 4, 1), "Urgent pointer = %d", ntohs(tcp->th_urp)); in interpret_tcp()
204 print_tcpoptions((uchar_t *)(tcp + 1), in interpret_tcp()
205 tcp->th_off * 4 - sizeof (struct tcphdr)); in interpret_tcp()
217 ntohs(tcp->th_sport), ntohs(tcp->th_dport), data, fraglen)) { in interpret_tcp()