ReactOS 0.4.15-dev-7931-gfd331f1
ports.h
Go to the documentation of this file.
1/*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS TCP/IP protocol driver
4 * FILE: include/ports.h
5 * PURPOSE: Port allocation
6 * PROGRAMMERS: arty (ayerkes@speakeasy.net)
7 * REVISIONS:
8 * arty 20041114 Created
9 */
10
11#pragma once
12
13typedef struct _PORT_SET {
20
22 UINT StartingPort,
23 UINT PortsToManage );
28ULONG AllocatePortFromRange( PPORT_SET PortSet, ULONG Lowest, ULONG Highest );
unsigned char BOOLEAN
LONG NTSTATUS
Definition: precomp.h:26
VOID DeallocatePort(PPORT_SET PortSet, ULONG Port)
Definition: ports.c:35
BOOLEAN AllocatePort(PPORT_SET PortSet, ULONG Port)
Definition: ports.c:47
VOID PortsShutdown(PPORT_SET PortSet)
Definition: ports.c:31
struct _PORT_SET * PPORT_SET
NTSTATUS PortsStartup(PPORT_SET PortSet, UINT StartingPort, UINT PortsToManage)
Definition: ports.c:13
ULONG AllocateAnyPort(PPORT_SET PortSet)
Definition: ports.c:69
ULONG AllocatePortFromRange(PPORT_SET PortSet, ULONG Lowest, ULONG Highest)
Definition: ports.c:86
struct _PORT_SET PORT_SET
ULONG KSPIN_LOCK
Definition: env_spec_w32.h:72
CPPORT Port[4]
Definition: headless.c:35
unsigned int UINT
Definition: ndis.h:50
UINT StartingPort
Definition: ports.h:16
RTL_BITMAP ProtoBitmap
Definition: ports.h:14
UINT PortsToOversee
Definition: ports.h:17
PVOID ProtoBitBuffer
Definition: ports.h:15
KSPIN_LOCK Lock
Definition: ports.h:18
uint32_t ULONG
Definition: typedefs.h:59