windows-nt/Source/XPSP1/NT/net/dhcp/server/server/endpoint.h
2020-09-26 16:20:57 +08:00

68 lines
1.3 KiB
C
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*++
Copyright (C) 1998 Microsoft Corporation
Module Name:
endpoint.h
Abstract:
endpoint structure.
Environment:
NT5 DHCP Server.
--*/
#ifndef ENDPOINT_H_INCLUDED
#define ENDPOINT_H_INCLUDED
typedef struct _ENDPOINT {
ENDPOINT_ENTRY IpTblEndPoint;
SOCKET Socket;
SOCKET RogueDetectSocket;
SOCKET MadcapSocket;
ULONG Flags;
} ENDPOINT, *PENDPOINT;
#define ENDPOINT_FLAG_BOUND 0x1
#define ENDPOINT_FLAG_MADCAP 0x2
#define SET_ENDPOINT_BOUND( _endpoint ) ( (_endpoint)->Flags |= ENDPOINT_FLAG_BOUND )
#define SET_ENDPOINT_UNBOUND( _endpoint ) ( (_endpoint)->Flags &= ~ENDPOINT_FLAG_BOUND )
#define IS_ENDPOINT_BOUND( _endpoint ) ( (_endpoint)->Flags & ENDPOINT_FLAG_BOUND )
#define SET_ENDPOINT_MADCAP( _endpoint ) ( (_endpoint)->Flags |= ENDPOINT_FLAG_MADCAP )
#define SET_ENDPOINT_DHCP( _endpoint ) ( (_endpoint)->Flags &= ~ENDPOINT_FLAG_MADCAP )
#define IS_ENDPOINT_MADCAP( _endpoint ) ( (_endpoint)->Flags & ENDPOINT_FLAG_MADCAP )
DWORD
InitializeEndPoints(
VOID
);
VOID
CleanupEndPoints(
VOID
);
VOID
DhcpUpdateEndpointBindings(
VOID
);
ULONG
DhcpSetBindingInfo(
IN LPDHCP_BIND_ELEMENT_ARRAY BindInfo
);
ULONG
DhcpGetBindingInfo(
OUT LPDHCP_BIND_ELEMENT_ARRAY *BindInfo
);
#endif ENDPOINT_H_INCLUDED
//
// end of file.
//