diff options
author | Adam <you@example.com> | 2020-05-17 05:51:50 +0200 |
---|---|---|
committer | Adam <you@example.com> | 2020-05-17 05:51:50 +0200 |
commit | e611b132f9b8abe35b362e5870b74bce94a1e58e (patch) | |
tree | a5781d2ec0e085eeca33cf350cf878f2efea6fe5 /public/sdk/inc/dhcpcext.h | |
download | NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.gz NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.bz2 NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.lz NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.xz NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.zst NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.zip |
Diffstat (limited to 'public/sdk/inc/dhcpcext.h')
-rw-r--r-- | public/sdk/inc/dhcpcext.h | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/public/sdk/inc/dhcpcext.h b/public/sdk/inc/dhcpcext.h new file mode 100644 index 000000000..69c9e02b0 --- /dev/null +++ b/public/sdk/inc/dhcpcext.h @@ -0,0 +1,77 @@ +/*++ + +Copyright (c) 1993-1995 Microsoft Corporation All rights reserved + +Module Name: + + dhcpcext.h + +Abstract: + + defines, typedefs, prototypes to enable clients to interface with + dhcp client + +Author: + + Pradeepb 12/3/95 + +Revision History: + +Notes: + + Currently used by SHIVA for their RAS client. Currently, contains + stuff relevant only to poking DHCP client so that it notifies nbt (on WFW). + +--*/ + +#ifndef _DHCPEXT_ +#define _DHCPEXT_ +// +// Pass in the following for Type when you want to poke vdhcp with the +// ip address and any options that you get from the RAS server. The function +// to use is DhcpSetInfo or DhcpSetInfoR (used by SHIVA's RAS client). +// +#define DHCP_PPP_PARAMETER_SET 2 +#define MAX_HARDWARE_ADDRESS_LENGTH 16 + +// +// Note: IpAddr should be in network order (like what the IP driver returns) +// + +TDI_STATUS DhcpSetInfoR( UINT Type, + ULONG IpAddr, //new ip address + PNIC_INFO pNicInfo, + PVOID pBuff, + UINT Size ) ; + + +typedef struct _NIC_INFO { + ULONG IfIndex; //interface index + ULONG SubnetMask; //subnet mask in network order + ULONG OldIpAddress; //old ip address in network order + } NIC_INFO, *PNIC_INFO; + + + + +typedef struct _HARDWARE_ADDRESS { + DWORD Length; //length of hardware address in array below + CHAR Address[MAX_HARDWARE_ADDRESS_LENGTH]; +} HARDWARE_ADDRESS, *PHARDWARE_ADDRESS; + +// +// define PPP parameter set info buffer structure. Specify one option, its +// length and value. +// + +typedef struct _PPP_SET_INFO { + HARDWARE_ADDRESS HardwareAddress; //specify your hardware address + DWORD ParameterOpCode; //ex. 44 for NBNS, 6 for DNS (#s are + // in dhcp rfc + DWORD ParameterLength; //length of Parameter Value in + //RawParmeter below + BYTE RawParameter[1]; +} PPP_SET_INFO, *LP_PPP_SET_INFO; + +#endif // _DHCPEXT_ + |