Source code of Windows XP (NT5)
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.

54 lines
2.3 KiB

  1. /*
  2. File PnP.h
  3. Declarations required to make the interface between the IPX stack and the IPX
  4. user-mode router components software PnP enabled.
  5. This file will plug into the NT 4.0 version adptif and provide the
  6. following PnP capabilities:
  7. 1. Notify IPX router when new net cards are added (via PCMIA, bindings, etc.)
  8. 2. Notify IPX router when the internal network number changes.
  9. 3. Notify IPX router when changes to existing net cards occur:
  10. - Changes to network number associated with a given adapter
  11. - Changes to the frame type of a given adapter
  12. Strategy for notifying IPX router components of adapter changes
  13. ===============================================================
  14. 1. In NT 4.0, the stack would complete the MIPX_GETNEWNICINFO IOCTL whenever
  15. a wan link went up or down, whenever certain lan configuration changed,
  16. and in some other instances. For PnP, we will modify the IPX stack to
  17. complete this IOCTL whenever the internal net number changes and
  18. whenever an adapter-related PnP event occurs.
  19. 2. As part of processing the adapter configuration changes returned from the
  20. completion of the MIPX_GETNEWNICINFO IOCTL, adptif should also send the
  21. MIPX_CONFIG ioctl to get the internal network number and verify
  22. that it hasn't changed. If it has changed, all ipx router components
  23. should be notified.
  24. 3. Each router component (rtrmgr, rip, sap) is a client to adptif.dll and will
  25. will therefore be notified about each adapter configuration change. These
  26. components will have to be modified to deal with these changes individually.
  27. For example, sap will have to update its service table to reflect new network
  28. numbers and broadcast these changes to the network. The router manager will
  29. have to instruct the fowarder to update its route table, etc.
  30. Paul Mayfield, 11/5/97.
  31. */
  32. #ifndef __adptif_pnp_h
  33. #define __adptif_pnp_h
  34. // Queries the ipx stack for the current ipx internal net number
  35. DWORD PnpGetCurrentInternalNetNum(LPDWORD lpdwNetNum);
  36. // Notifies all clients to adptif (rtrmgr, sap, rip) that the internal
  37. // network number has changed.
  38. DWORD PnpHandleInternalNetNumChange(DWORD dwNewNetNum);
  39. #endif