X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=AppPkg%2FApplications%2FSockets%2FRawIp4Tx%2FRawIp4Tx.h;fp=AppPkg%2FApplications%2FSockets%2FRawIp4Tx%2FRawIp4Tx.h;h=0000000000000000000000000000000000000000;hp=2d38b70b174862ad5f38484b69c5a65080994325;hb=964f432b9b0afe103c41c7613fade3e699118afe;hpb=e2d3a25f1a3135221a9c8061e1b8f90245d727eb diff --git a/AppPkg/Applications/Sockets/RawIp4Tx/RawIp4Tx.h b/AppPkg/Applications/Sockets/RawIp4Tx/RawIp4Tx.h deleted file mode 100644 index 2d38b70b17..0000000000 --- a/AppPkg/Applications/Sockets/RawIp4Tx/RawIp4Tx.h +++ /dev/null @@ -1,93 +0,0 @@ -/** @file - Definitions for the raw IP4 transmit application - - Copyright (c) 2011-2012, Intel Corporation. All rights reserved. - SPDX-License-Identifier: BSD-2-Clause-Patent - -**/ - -#ifndef _RAW_IP4_TX_H_ -#define _RAW_IP4_TX_H_ - -//------------------------------------------------------------------------------ -// Include Files -//------------------------------------------------------------------------------ - -#ifdef BUILD_FOR_WINDOWS -// -// Build for Windows environment -// - -#include - -#define CHAR8 char -#define CLOSE_SOCKET closesocket -#define EINVAL 22 // Invalid argument -#define GET_ERRNO WSAGetLastError ( ) -#define SIN_ADDR(port) port.sin_addr.S_un.S_addr -#define SIN_FAMILY(port) port.sin_family -#define SIN_LEN(port) port.sin_family -#define SIN_PORT(port) port.sin_port -#define socklen_t int -#define ssize_t int - -#else // BUILD_FOR_WINDOWS -// -// Build for EFI environment -// - -#include -#include -#include -#include - -#include - -#include -#include -#include - -#define CLOSE_SOCKET close -#define GET_ERRNO errno -#define SIN_ADDR(port) port.sin_addr.s_addr -#define SIN_FAMILY(port) port.sin_family -#define SIN_LEN(port) port.sin_len -#define SIN_PORT(port) port.sin_port -#define SOCKET int - -#endif // BUILD_FOR_WINDOWS - -#include - -//------------------------------------------------------------------------------ -// Constants -//------------------------------------------------------------------------------ - -// -// See http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xml -// and http://tools.ietf.org/html/rfc3692 -// -#define RAW_PROTOCOL 253 - -//------------------------------------------------------------------------------ -// API -//------------------------------------------------------------------------------ - -/** - Transmit raw IP4 packets to the remote system. - - @param [in] ArgC Argument count - @param [in] ArgV Argument value array - - @retval 0 Successfully operation - **/ - -int -RawIp4Tx ( - IN int ArgC, - IN char **ArgV - ); - -//------------------------------------------------------------------------------ - -#endif // _RAW_IP4_TX_H_ \ No newline at end of file