/** @file\r
Routines to process TCP option.\r
\r
- Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
\r
return 0;\r
}\r
-\r
-/**\r
- Check the segment against PAWS.\r
-\r
- @param[in] Tcb Pointer to the TCP_CB of this TCP instance.\r
- @param[in] TSVal The timestamp value.\r
-\r
- @retval 1 The segment passed the PAWS check.\r
- @retval 0 The segment failed to pass the PAWS check.\r
-\r
-**/\r
-UINT32\r
-TcpPawsOK (\r
- IN TCP_CB *Tcb,\r
- IN UINT32 TSVal\r
- )\r
-{\r
- //\r
- // PAWS as defined in RFC1323, buggy...\r
- //\r
- if (TCP_TIME_LT (TSVal, Tcb->TsRecent) &&\r
- TCP_TIME_LT (Tcb->TsRecentAge + TCP_PAWS_24DAY, mTcpTick)\r
- ) {\r
-\r
- return 0;\r
-\r
- }\r
-\r
- return 1;\r
-}\r
/** @file\r
Tcp option's routine header file.\r
\r
- Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
IN OUT TCP_OPTION *Option\r
);\r
\r
-/**\r
- Check the segment against PAWS.\r
-\r
- @param[in] Tcb Pointer to the TCP_CB of this TCP instance.\r
- @param[in] TSVal The timestamp value.\r
-\r
- @retval 1 The segment passed the PAWS check.\r
- @retval 0 The segment failed to pass the PAWS check.\r
-\r
-**/\r
-UINT32\r
-TcpPawsOK (\r
- IN TCP_CB *Tcb,\r
- IN UINT32 TSVal\r
- );\r
-\r
#endif\r