#include "precomp.h"
#include "lwip/pbuf.h"
#include "lwip/netifapi.h"
#include "lwip/ip.h"
#include "lwip/api.h"
#include "lwip/tcpip.h"
Go to the source code of this file.
◆ TCPInterfaceInit()
Definition at line 96 of file if.c.
u8_t hwaddr[NETIF_MAX_HWADDR_LEN]
VOID TCPUpdateInterfaceIPInformation(PIP_INTERFACE IF)
VOID TCPUpdateInterfaceLinkStatus(PIP_INTERFACE IF)
err_t TCPSendDataCallback(struct netif *netif, struct pbuf *p, struct ip_addr *dest)
#define NETIF_FLAG_BROADCAST
#define RtlCopyMemory(Destination, Source, Length)
Referenced by TCPRegisterInterface().
◆ TCPRegisterInterface()
Definition at line 119 of file if.c.
struct netif * netif_add(struct netif *netif, ip_addr_t *ipaddr, ip_addr_t *netmask, ip_addr_t *gw, void *state, netif_init_fn init, netif_input_fn input)
err_t tcpip_input(struct pbuf *p, struct netif *inp)
err_t TCPInterfaceInit(struct netif *netif)
Referenced by IPCreateInterface().
◆ TCPSendDataCallback()
Definition at line 11 of file if.c.
23 if (((*(
u8_t*)
p->payload) & 0xF0) == 0x40)
_In_ ULONG _In_ ULONG _In_ ULONG Length
_In_ NDIS_HANDLE _In_ PNDIS_PACKET Packet
void GetDataPtr(PNDIS_PACKET Packet, UINT Offset, PCHAR *DataOut, PUINT Size)
PNEIGHBOR_CACHE_ENTRY RouteGetRouteToDestination(PIP_ADDRESS Destination)
PIP_PACKET IPInitializePacket(PIP_PACKET IPPacket, ULONG Type)
NTSTATUS IPSendDatagram(PIP_PACKET IPPacket, PNEIGHBOR_CACHE_ENTRY NCE)
struct IPv4_HEADER IPv4_HEADER
#define AllocatePacketWithBuffer(x, y, z)
#define NT_SUCCESS(StatCode)
#define NDIS_STATUS_SUCCESS
#define RtlCopyMemory(Destination, Source, Length)
_Must_inspect_result_ _In_ ULONG _In_ PSOCKADDR _In_ PSOCKADDR RemoteAddress
_Must_inspect_result_ _In_ ULONG _In_ PSOCKADDR LocalAddress
Referenced by TCPInterfaceInit().
◆ TCPUnregisterInterface()
◆ TCPUpdateInterfaceIPInformation()
Definition at line 145 of file if.c.
163 if (ipaddr.addr != 0)
void netif_set_default(struct netif *netif)
void netif_set_up(struct netif *netif)
void netif_set_down(struct netif *netif)
NTSTATUS GetInterfaceIPv4Address(PIP_INTERFACE Interface, ULONG Type, PULONG Address)
void netif_set_addr(struct netif *netif, ip_addr_t *ipaddr, ip_addr_t *netmask, ip_addr_t *gw)
Referenced by IPAddInterfaceRoute(), ReconfigureAdapter(), and TCPInterfaceInit().
◆ TCPUpdateInterfaceLinkStatus()
Definition at line 81 of file if.c.
84 ULONG OperationalStatus;
void netif_set_link_down(struct netif *netif)
VOID GetInterfaceConnectionStatus(PIP_INTERFACE Interface, PULONG OperStatus)
void netif_set_link_up(struct netif *netif)
#define MIB_IF_OPER_STATUS_OPERATIONAL
Referenced by ReconfigureAdapter(), and TCPInterfaceInit().