Lines Matching refs:opt
19 unsigned int opt, optlen; in ParseTCPOptions() local
22 opt = *(tcpopt + i++); in ParseTCPOptions()
24 if (opt == TCP_OPT_END) { // end of option field in ParseTCPOptions()
26 } else if (opt == TCP_OPT_NOP) { // no option in ParseTCPOptions()
35 if (opt == TCP_OPT_MSS) { in ParseTCPOptions()
42 } else if (opt == TCP_OPT_WSCALE) { in ParseTCPOptions()
44 } else if (opt == TCP_OPT_SACK_PERMIT) { in ParseTCPOptions()
47 } else if (opt == TCP_OPT_TIMESTAMP) { in ParseTCPOptions()
66 unsigned int opt, optlen; in ParseTCPTimestamp() local
69 opt = *(tcpopt + i++); in ParseTCPTimestamp()
71 if (opt == TCP_OPT_END) { // end of option field in ParseTCPTimestamp()
73 } else if (opt == TCP_OPT_NOP) { // no option in ParseTCPTimestamp()
81 if (opt == TCP_OPT_TIMESTAMP) { in ParseTCPTimestamp()
100 unsigned int opt, optlen; in ParseSACKOption() local
104 opt = *(tcpopt + i++); in ParseSACKOption()
106 if (opt == TCP_OPT_END) { // end of option field in ParseSACKOption()
108 } else if (opt == TCP_OPT_NOP) { // no option in ParseSACKOption()
116 if (opt == TCP_OPT_SACK) { in ParseSACKOption()
196 unsigned int opt, optlen; in PrintTCPOptions() local
204 opt = *(tcpopt + i++); in PrintTCPOptions()
206 if (opt == TCP_OPT_END) { // end of option field in PrintTCPOptions()
208 } else if (opt == TCP_OPT_NOP) { // no option in PrintTCPOptions()
214 printf("Option: %d", opt); in PrintTCPOptions()
217 if (opt == TCP_OPT_MSS) { in PrintTCPOptions()
222 } else if (opt == TCP_OPT_SACK_PERMIT) { in PrintTCPOptions()
224 } else if (opt == TCP_OPT_TIMESTAMP) { in PrintTCPOptions()
231 } else if (opt == TCP_OPT_WSCALE) { in PrintTCPOptions()