+++ /dev/null
-/** @file\r
- Windows version of the raw IP4 receive application\r
-\r
- Copyright (c) 2011-2012, Intel Corporation. All rights reserved.\r
- SPDX-License-Identifier: BSD-2-Clause-Patent\r
-\r
-**/\r
-\r
-#include <RawIp4Rx.h>\r
-\r
-\r
-/**\r
- Receive raw IP4 packets from a remote system.\r
-\r
- Please note that this program must be run with administrator privileges!\r
-\r
- @param [in] argc The number of arguments\r
- @param [in] argv The argument value array\r
-\r
- @retval 0 The application exited normally.\r
- @retval Other An error occurred.\r
-**/\r
-int\r
-main(\r
- int argc,\r
- char ** argv\r
- )\r
-{\r
- int RetVal;\r
- WSADATA WsaData;\r
-\r
- //\r
- // Initialize the WinSock layer\r
- //\r
- RetVal = WSAStartup ( MAKEWORD ( 2, 2 ), &WsaData );\r
- if ( 0 == RetVal ) {\r
- //\r
- // Start the application\r
- //\r
- RetVal = RawIp4Rx ( argc, argv );\r
- if ( WSAEACCES == RetVal ) {\r
- printf ( "Requires administrator privileges to run!\r\n" );\r
- }\r
-\r
- //\r
- // Done with the WinSock layer\r
- //\r
- WSACleanup ( );\r
- }\r
-\r
- //\r
- // Return the final result\r
- //\r
- return RetVal; \r
-}\r