mirror of
https://github.com/reactos/reactos.git
synced 2024-07-31 00:28:56 +00:00
29fa274d6d
- TSVN choked repeatedly when attempting to merge ~9000 revs into the branch (tried 3 times on 2 different computers) - If someone wants to delete aicom-network-fixes, they are welcome to - Lesson learned: Letting a branch get thousands of revs out of date is a horrible idea svn path=/branches/aicom-network-branch/; revision=44353
32 lines
883 B
C
32 lines
883 B
C
#ifndef _TCPIP_PORTS_H
|
|
#define _TCPIP_PORTS_H
|
|
|
|
/*
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
* PROJECT: ReactOS TCP/IP protocol driver
|
|
* FILE: include/ports.h
|
|
* PURPOSE: Port allocation
|
|
* PROGRAMMERS: arty (ayerkes@speakeasy.net)
|
|
* REVISIONS:
|
|
* arty 20041114 Created
|
|
*/
|
|
|
|
typedef struct _PORT_SET {
|
|
RTL_BITMAP ProtoBitmap;
|
|
PVOID ProtoBitBuffer;
|
|
UINT StartingPort;
|
|
UINT PortsToOversee;
|
|
FAST_MUTEX Mutex;
|
|
} PORT_SET, *PPORT_SET;
|
|
|
|
NTSTATUS PortsStartup( PPORT_SET PortSet,
|
|
UINT StartingPort,
|
|
UINT PortsToManage );
|
|
VOID PortsShutdown( PPORT_SET PortSet );
|
|
VOID DeallocatePort( PPORT_SET PortSet, ULONG Port );
|
|
BOOLEAN AllocatePort( PPORT_SET PortSet, ULONG Port );
|
|
ULONG AllocateAnyPort( PPORT_SET PortSet );
|
|
ULONG AllocatePortFromRange( PPORT_SET PortSet, ULONG Lowest, ULONG Highest );
|
|
|
|
#endif/*_TCPIP_PORTS_H*/
|