2 Windows version of the raw IP4 transmit application
4 Copyright (c) 2011, Intel Corporation
5 All rights reserved. This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
19 Transmit raw IP4 packets to the remote system.
21 Please note that this program must be run with administrator privileges!
23 @param [in] argc The number of arguments
24 @param [in] argv The argument value array
26 @retval 0 The application exited normally.
27 @retval Other An error occurred.
39 // Initialize the WinSock layer
41 RetVal
= WSAStartup ( MAKEWORD ( 2, 2 ), &WsaData
);
44 // Start the application
45 // See http://msdn.microsoft.com/en-us/library/ms740548(v=vs.85).aspx
47 RetVal
= RawIp4Tx ( argc
, argv
);
48 if ( WSAEACCES
== RetVal
) {
49 printf ( "Requires administrator privileges to run!\r\n" );
53 // Done with the WinSock layer
59 // Return the final result