ReactOS  0.4.14-dev-368-gfa26425
net_lan.h File Reference
#include "net_wh.h"
Include dependency graph for net_lan.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _LAN_PACKET_HEADER_T
 
struct  _LAN_PACKET_HEADER
 
struct  _LAN_ADDRESS
 
struct  _LAN_ADAPTER_INFO_S
 

Macros

#define FSCTL_LAN_BASE   FILE_DEVICE_NETWORK
 
#define _LAN_CONTROL_CODE(Function, Method)   CTL_CODE(FSCTL_LAN_BASE, Function, Method, FILE_WRITE_ACCESS)
 
#define LAN_ENUM_ADAPTERS   0
 
#define LAN_BUFFERED_MODE   1
 
#define LAN_ADAPTER_INFO   2
 
#define IOCTL_IF_ENUM_ADAPTERS   _LAN_CONTROL_CODE(LAN_ENUM_ADAPTERS,METHOD_BUFFERED)
 
#define IOCTL_IF_BUFFERED_MODE   _LAN_CONTROL_CODE(LAN_BUFFERED_MODE,METHOD_BUFFERED)
 
#define IOCTL_IF_ADAPTER_INFO   _LAN_CONTROL_CODE(LAN_ADAPTER_INFO,METHOD_BUFFERED)
 
#define LAN_DATA_PTR(PH)   ((PH)->Address + (PH)->Fixed.AddressLen)
 
#define LAN_ALLOC_SIZE(AddrLen, PayloadLen)   (sizeof(LAN_PACKET_HEADER_T) + (AddrLen) + (PayloadLen))
 
#define LAN_PAYLOAD_SIZE(PH, Size)   (Size - (PH)->Fixed.AddressLen - sizeof(LAN_PACKET_HEADER_T))
 
#define LAN_ADDR_SIZE(AddrLen, HWAddrLen)   (sizeof(LAN_ADDRESS) - 1 + (AddrLen) + (HWAddrLen))
 
#define LAN_ADDR_PTR(LA)   ((LA)->Address)
 
#define LAN_HWADDR_PTR(LA)   ((LA)->Address + (LA)->AddressLen)
 
#define LAN_EA_INFO_SIZE(NumTypes)   sizeof(FILE_FULL_EA_INFORMATION) + (6 + sizeof(USHORT) * NumTypes)
 
#define LAN_FILL_EA_INFO(Ea, NumTypes, Types)
 

Typedefs

typedef struct _LAN_PACKET_HEADER_T LAN_PACKET_HEADER_T
 
typedef struct _LAN_PACKET_HEADER_TPLAN_PACKET_HEADER_T
 
typedef struct _LAN_PACKET_HEADER LAN_PACKET_HEADER
 
typedef struct _LAN_PACKET_HEADERPLAN_PACKET_HEADER
 
typedef struct _LAN_ADDRESS LAN_ADDRESS
 
typedef struct _LAN_ADDRESSPLAN_ADDRESS
 
typedef struct _LAN_ADAPTER_INFO_S LAN_ADAPTER_INFO_S
 
typedef struct _LAN_ADAPTER_INFO_SPLAN_ADAPTER_INFO_S
 

Macro Definition Documentation

◆ _LAN_CONTROL_CODE

#define _LAN_CONTROL_CODE (   Function,
  Method 
)    CTL_CODE(FSCTL_LAN_BASE, Function, Method, FILE_WRITE_ACCESS)

Definition at line 6 of file net_lan.h.

◆ FSCTL_LAN_BASE

#define FSCTL_LAN_BASE   FILE_DEVICE_NETWORK

Definition at line 5 of file net_lan.h.

◆ IOCTL_IF_ADAPTER_INFO

Definition at line 17 of file net_lan.h.

◆ IOCTL_IF_BUFFERED_MODE

Definition at line 15 of file net_lan.h.

◆ IOCTL_IF_ENUM_ADAPTERS

Definition at line 13 of file net_lan.h.

◆ LAN_ADAPTER_INFO

#define LAN_ADAPTER_INFO   2

Definition at line 11 of file net_lan.h.

◆ LAN_ADDR_PTR

#define LAN_ADDR_PTR (   LA)    ((LA)->Address)

Definition at line 62 of file net_lan.h.

◆ LAN_ADDR_SIZE

#define LAN_ADDR_SIZE (   AddrLen,
  HWAddrLen 
)    (sizeof(LAN_ADDRESS) - 1 + (AddrLen) + (HWAddrLen))

Definition at line 60 of file net_lan.h.

◆ LAN_ALLOC_SIZE

#define LAN_ALLOC_SIZE (   AddrLen,
  PayloadLen 
)    (sizeof(LAN_PACKET_HEADER_T) + (AddrLen) + (PayloadLen))

Definition at line 55 of file net_lan.h.

◆ LAN_BUFFERED_MODE

#define LAN_BUFFERED_MODE   1

Definition at line 10 of file net_lan.h.

◆ LAN_DATA_PTR

#define LAN_DATA_PTR (   PH)    ((PH)->Address + (PH)->Fixed.AddressLen)

Definition at line 53 of file net_lan.h.

◆ LAN_EA_INFO_SIZE

#define LAN_EA_INFO_SIZE (   NumTypes)    sizeof(FILE_FULL_EA_INFORMATION) + (6 + sizeof(USHORT) * NumTypes)

Definition at line 67 of file net_lan.h.

◆ LAN_ENUM_ADAPTERS

#define LAN_ENUM_ADAPTERS   0

Definition at line 9 of file net_lan.h.

◆ LAN_FILL_EA_INFO

#define LAN_FILL_EA_INFO (   Ea,
  NumTypes,
  Types 
)
Value:
{ \
RtlCopyMemory( (Ea)->EaName, "TYPES", 6 ); \
(Ea)->EaNameLength = 6; \
(Ea)->EaValueLength = sizeof(USHORT) * (NumTypes); \
RtlCopyMemory( (Ea)->EaName + (Ea)->EaNameLength, \
(Types), \
sizeof(USHORT) * (NumTypes) ); \
}
unsigned short USHORT
Definition: pedump.c:61
char ACPI_OBJECT_TYPE * Types
Definition: acdebug.h:347

Definition at line 69 of file net_lan.h.

◆ LAN_HWADDR_PTR

#define LAN_HWADDR_PTR (   LA)    ((LA)->Address + (LA)->AddressLen)

Definition at line 64 of file net_lan.h.

◆ LAN_PAYLOAD_SIZE

#define LAN_PAYLOAD_SIZE (   PH,
  Size 
)    (Size - (PH)->Fixed.AddressLen - sizeof(LAN_PACKET_HEADER_T))

Definition at line 57 of file net_lan.h.

Typedef Documentation

◆ LAN_ADAPTER_INFO_S

◆ LAN_ADDRESS

◆ LAN_PACKET_HEADER

◆ LAN_PACKET_HEADER_T

◆ PLAN_ADAPTER_INFO_S

◆ PLAN_ADDRESS

◆ PLAN_PACKET_HEADER

◆ PLAN_PACKET_HEADER_T