Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
1.6 KiB

  1. // -*- mode: C++; tab-width: 4; indent-tabs-mode: nil -*- (for GNU Emacs)
  2. //
  3. // Copyright (c) 1998-2000 Microsoft Corporation
  4. //
  5. // This file is part of the Microsoft Research IPv6 Network Protocol Stack.
  6. // You should have received a copy of the Microsoft End-User License Agreement
  7. // for this software along with this release; see the file "license.txt".
  8. // If not, please see http://www.research.microsoft.com/msripv6/license.htm,
  9. // or write to Microsoft Research, One Microsoft Way, Redmond, WA 98052-6399.
  10. //
  11. // Abstract:
  12. //
  13. // Mobile IPv6.
  14. // See Mobility Support in IPv6 draft (Mobile IP working group) for details.
  15. //
  16. #ifndef MOBILE_INCLUDED
  17. #define MOBILE_INCLUDED 1
  18. //
  19. // Mobile IPv6 Mode definitions.
  20. // ntddip6.h also defines these values.
  21. //
  22. extern uint MobileIPv6Mode;
  23. #define MOBILE_CORRESPONDENT 0x01
  24. #define MOBILE_MOBILE_NODE 0x02
  25. #define MOBILE_HOME_AGENT 0x04
  26. //
  27. // For security reasons, we disable correspondent mode by default.
  28. //
  29. #define MIPV6_DEFAULT_MODE 0
  30. //
  31. // Combined structure used for inserting Binding Acknowledgements
  32. // into mobile IPv6 messages.
  33. //
  34. #pragma pack(1)
  35. typedef struct MobileAcknowledgementOption {
  36. IPv6OptionsHeader Header;
  37. uchar Pad1;
  38. IPv6BindingAcknowledgementOption Option;
  39. } MobileAcknowledgementOption;
  40. #pragma pack()
  41. //
  42. // Mobile external functions.
  43. //
  44. extern int
  45. IPv6RecvBindingUpdate(
  46. IPv6Packet *Packet,
  47. IPv6BindingUpdateOption UNALIGNED *BindingUpdate);
  48. extern int
  49. IPv6RecvHomeAddress(
  50. IPv6Packet *Packet,
  51. IPv6HomeAddressOption UNALIGNED *HomeAddress);
  52. #endif // MOBILE_INCLUDED