#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.
97{
99
102
105
108
110
112
114
115 return 0;
116}
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
u8_t hwaddr[NETIF_MAX_HWADDR_LEN]
#define RtlCopyMemory(Destination, Source, Length)
Referenced by TCPRegisterInterface().
◆ TCPRegisterInterface()
Definition at line 119 of file if.c.
120{
124
126 ipaddr.addr = 0;
127 netmask.addr = 0;
128
130 &ipaddr,
131 &netmask,
132 &gw,
133 IF,
136}
err_t TCPInterfaceInit(struct netif *netif)
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)
Referenced by IPCreateInterface().
◆ TCPSendDataCallback()
Definition at line 11 of file if.c.
12{
20
21
22
23 if (((*(
u8_t*)
p->payload) & 0xF0) == 0x40)
24 {
26
29
32 }
33 else
34 {
36 }
37
39
41 {
43 }
44
47 {
49 }
50
53
55
59 {
65 }
67
72
76
77 return 0;
78}
#define NT_SUCCESS(StatCode)
PIP_PACKET IPInitializePacket(PIP_PACKET IPPacket, ULONG Type)
PNEIGHBOR_CACHE_ENTRY RouteGetRouteToDestination(PIP_ADDRESS Destination)
void GetDataPtr(PNDIS_PACKET Packet, UINT Offset, PCHAR *DataOut, PUINT Size)
#define AllocatePacketWithBuffer(x, y, z)
_In_ NDIS_HANDLE _In_ PNDIS_PACKET Packet
#define NDIS_STATUS_SUCCESS
_In_ ULONG _In_ ULONG _In_ ULONG Length
NTSTATUS IPSendDatagram(PIP_PACKET IPPacket, PNEIGHBOR_CACHE_ENTRY NCE)
_Must_inspect_result_ _In_ ULONG _In_ PSOCKADDR LocalAddress
_Must_inspect_result_ _In_ ULONG _In_ PSOCKADDR _In_ PSOCKADDR RemoteAddress
Referenced by TCPInterfaceInit().
◆ TCPUnregisterInterface()
◆ TCPUpdateInterfaceIPInformation()
Definition at line 145 of file if.c.
146{
150
152
156
160
162
163 if (ipaddr.addr != 0)
164 {
167 }
168 else
169 {
171 }
172}
void netif_set_addr(struct netif *netif, ip_addr_t *ipaddr, ip_addr_t *netmask, ip_addr_t *gw)
void netif_set_down(struct netif *netif)
void netif_set_default(struct netif *netif)
void netif_set_up(struct netif *netif)
NTSTATUS GetInterfaceIPv4Address(PIP_INTERFACE Interface, ULONG Type, PULONG Address)
Referenced by IPAddInterfaceRoute(), ReconfigureAdapter(), and TCPInterfaceInit().
◆ TCPUpdateInterfaceLinkStatus()
Definition at line 81 of file if.c.
82{
83#if 0
84 ULONG OperationalStatus;
85
87
90 else
92#endif
93}
#define MIB_IF_OPER_STATUS_OPERATIONAL
void netif_set_link_down(struct netif *netif)
void netif_set_link_up(struct netif *netif)
VOID GetInterfaceConnectionStatus(PIP_INTERFACE Interface, PULONG OperStatus)
Referenced by ReconfigureAdapter(), and TCPInterfaceInit().