Lines Matching refs:i

18 	int i;  in ParseTCPOptions()  local
21 for (i = 0; i < len; ) { in ParseTCPOptions()
22 opt = *(tcpopt + i++); in ParseTCPOptions()
30 optlen = *(tcpopt + i++); in ParseTCPOptions()
31 if (i + optlen - 2 > len) { in ParseTCPOptions()
36 cur_stream->sndvar->mss = *(tcpopt + i++) << 8; in ParseTCPOptions()
37 cur_stream->sndvar->mss += *(tcpopt + i++); in ParseTCPOptions()
43 cur_stream->sndvar->wscale_peer = *(tcpopt + i++); in ParseTCPOptions()
50 cur_stream->rcvvar->ts_recent = ntohl(*(uint32_t *)(tcpopt + i)); in ParseTCPOptions()
52 i += 8; in ParseTCPOptions()
55 i += optlen - 2; in ParseTCPOptions()
65 int i; in ParseTCPTimestamp() local
68 for (i = 0; i < len; ) { in ParseTCPTimestamp()
69 opt = *(tcpopt + i++); in ParseTCPTimestamp()
76 optlen = *(tcpopt + i++); in ParseTCPTimestamp()
77 if (i + optlen - 2 > len) { in ParseTCPTimestamp()
82 ts->ts_val = ntohl(*(uint32_t *)(tcpopt + i)); in ParseTCPTimestamp()
83 ts->ts_ref = ntohl(*(uint32_t *)(tcpopt + i + 4)); in ParseTCPTimestamp()
87 i += optlen - 2; in ParseTCPTimestamp()
99 int i, j; in ParseSACKOption() local
103 for (i = 0; i < len; ) { in ParseSACKOption()
104 opt = *(tcpopt + i++); in ParseSACKOption()
111 optlen = *(tcpopt + i++); in ParseSACKOption()
112 if (i + optlen - 2 > len) { in ParseSACKOption()
119 left_edge = ntohl(*(uint32_t *)(tcpopt + i + j)); in ParseSACKOption()
120 right_edge = ntohl(*(uint32_t *)(tcpopt + i + j + 4)); in ParseSACKOption()
147 i += j; in ParseSACKOption()
150 i += optlen - 2; in ParseSACKOption()
195 int i; in PrintTCPOptions() local
198 for (i = 0; i < len; i++) { in PrintTCPOptions()
199 printf("%u ", tcpopt[i]); in PrintTCPOptions()
203 for (i = 0; i < len; ) { in PrintTCPOptions()
204 opt = *(tcpopt + i++); in PrintTCPOptions()
212 optlen = *(tcpopt + i++); in PrintTCPOptions()
219 mss = *(tcpopt + i++) << 8; in PrintTCPOptions()
220 mss += *(tcpopt + i++); in PrintTCPOptions()
226 ts_val = *(uint32_t *)(tcpopt + i); in PrintTCPOptions()
227 i += 4; in PrintTCPOptions()
228 ts_ref = *(uint32_t *)(tcpopt + i); in PrintTCPOptions()
229 i += 4; in PrintTCPOptions()
233 wscale = *(tcpopt + i++); in PrintTCPOptions()
237 i += optlen - 2; in PrintTCPOptions()