Lines Matching refs:tcpopt

69 GenerateTCPTimestamp(tcp_stream *cur_stream, uint8_t *tcpopt, uint32_t cur_ts)  in GenerateTCPTimestamp()  argument
71 uint32_t *ts = (uint32_t *)(tcpopt + 2); in GenerateTCPTimestamp()
73 tcpopt[0] = TCP_OPT_TIMESTAMP; in GenerateTCPTimestamp()
74 tcpopt[1] = TCP_OPT_TIMESTAMP_LEN; in GenerateTCPTimestamp()
81 uint8_t flags, uint8_t *tcpopt, uint16_t optlen) in GenerateTCPOptions() argument
90 tcpopt[i++] = TCP_OPT_MSS; in GenerateTCPOptions()
91 tcpopt[i++] = TCP_OPT_MSS_LEN; in GenerateTCPOptions()
92 tcpopt[i++] = mss >> 8; in GenerateTCPOptions()
93 tcpopt[i++] = mss % 256; in GenerateTCPOptions()
98 tcpopt[i++] = TCP_OPT_NOP; in GenerateTCPOptions()
99 tcpopt[i++] = TCP_OPT_NOP; in GenerateTCPOptions()
101 tcpopt[i++] = TCP_OPT_SACK_PERMIT; in GenerateTCPOptions()
102 tcpopt[i++] = TCP_OPT_SACK_PERMIT_LEN; in GenerateTCPOptions()
109 tcpopt[i++] = TCP_OPT_NOP; in GenerateTCPOptions()
110 tcpopt[i++] = TCP_OPT_NOP; in GenerateTCPOptions()
112 GenerateTCPTimestamp(cur_stream, tcpopt + i, cur_ts); in GenerateTCPOptions()
117 tcpopt[i++] = TCP_OPT_NOP; in GenerateTCPOptions()
118 tcpopt[i++] = TCP_OPT_WSCALE; in GenerateTCPOptions()
119 tcpopt[i++] = TCP_OPT_WSCALE_LEN; in GenerateTCPOptions()
120 tcpopt[i++] = cur_stream->sndvar->wscale_mine; in GenerateTCPOptions()
125 tcpopt[i++] = TCP_OPT_NOP; in GenerateTCPOptions()
126 tcpopt[i++] = TCP_OPT_NOP; in GenerateTCPOptions()
127 GenerateTCPTimestamp(cur_stream, tcpopt + i, cur_ts); in GenerateTCPOptions()
149 uint8_t *tcpopt; in SendTCPPacketStandalone() local
191 tcpopt = (uint8_t *)tcph + TCP_HEADER_LEN; in SendTCPPacketStandalone()
192 ts = (uint32_t *)(tcpopt + 4); in SendTCPPacketStandalone()
194 tcpopt[0] = TCP_OPT_NOP; in SendTCPPacketStandalone()
195 tcpopt[1] = TCP_OPT_NOP; in SendTCPPacketStandalone()
196 tcpopt[2] = TCP_OPT_TIMESTAMP; in SendTCPPacketStandalone()
197 tcpopt[3] = TCP_OPT_TIMESTAMP_LEN; in SendTCPPacketStandalone()