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.

53 lines
1.6 KiB

  1. /*
  2. File: ipxanet.h
  3. Defines functions that assign a random internal network number
  4. after verifying that the number in question is not present on
  5. the network.
  6. Paul Mayfield, 1/29/97
  7. */
  8. #ifndef __ipx_autonet_h
  9. #define __ipx_autonet_h
  10. //
  11. // Function: AutoValidateInternalNetNum
  12. //
  13. // Queries the stack to learn the internal network number and then
  14. // returns whether this number is valid. (i.e. non zero and non all ff's)
  15. //
  16. // Params:
  17. // pbIsValid set to TRUE if internal net num is valid -- false, otherwise
  18. // dwTraceId If non-zero, sends trace through this id
  19. //
  20. DWORD AutoValidateInternalNetNum(OUT PBOOL pbIsValid, IN DWORD dwTraceId);
  21. //
  22. // Function: AutoWaitForValidNetNum
  23. //
  24. // Puts the calling thread to sleep until a valid internal network number
  25. // has been plumbed into the system.
  26. //
  27. // Params:
  28. // dwTimeout timeout in seconds
  29. // pbIsValid if provided, returns whether number is valid
  30. //
  31. DWORD AutoWaitForValidIntNetNum (IN DWORD dwTimeout,
  32. IN OUT OPTIONAL PBOOL pbIsValid);
  33. //
  34. // Function: PnpAutoSelectInternalNetNumber
  35. //
  36. // Selects a new internal network number for this router and plumbs that network
  37. // number into the stack and the router.
  38. //
  39. // Depending on whether the forwarder and ipxrip are enabled, it will validate the
  40. // newly selected net number against the stack or rtm.
  41. //
  42. // Params:
  43. // dwTraceId If non-zero, sends trace to this id
  44. //
  45. DWORD PnpAutoSelectInternalNetNumber(IN DWORD dwTraceId);
  46. #endif