21eb754401901745eb5a6df2f1473cb29bc601ee
[reactos.git] / reactos / drivers / net / tcpip / include / prefix.h
1 /*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS TCP/IP protocol driver
4 * FILE: include/info.h
5 * PURPOSE: TdiQueryInformation definitions
6 */
7 #ifndef __PREFIX_H
8 #define __PREFIX_H
9
10 /* Prefix List Entry */
11 typedef struct _PREFIX_LIST_ENTRY {
12 DEFINE_TAG
13 LIST_ENTRY ListEntry; /* Entry on list */
14 ULONG RefCount; /* Reference count */
15 PIP_INTERFACE Interface; /* Pointer to interface */
16 PIP_ADDRESS Prefix; /* Pointer to prefix */
17 UINT PrefixLength; /* Length of prefix */
18 } PREFIX_LIST_ENTRY, *PPREFIX_LIST_ENTRY;
19
20 extern LIST_ENTRY PrefixListHead;
21 extern KSPIN_LOCK PrefixListLock;
22
23 VOID InitPLE();
24 PPREFIX_LIST_ENTRY CreatePLE(PIP_INTERFACE IF, PIP_ADDRESS Prefix, UINT Len);
25 VOID DestroyPLE(PPREFIX_LIST_ENTRY PLE);
26 VOID DestroyPLEs();
27
28 #endif/*__PREFIX_H*/