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.

46 lines
846 B

  1. /*++
  2. Copyright (c) 2000 Microsoft Corporation
  3. Abstract:
  4. Ipv6 subcontexts.
  5. --*/
  6. #include "precomp.h"
  7. NS_HELPER_ATTRIBUTES g_pSubContexts[] =
  8. {
  9. // 6to4 subcontext
  10. //
  11. {
  12. { IP6TO4_VERSION, 0 },
  13. IP6TO4_GUID, Ip6to4StartHelper, NULL
  14. },
  15. };
  16. #define g_dwSubContextCount \
  17. (sizeof(g_pSubContexts) / sizeof(*g_pSubContexts))
  18. //
  19. // Installs all of the sub contexts provided
  20. // in this .dll (for example, "ipv6 6to4", and any new ones.)
  21. //
  22. DWORD
  23. Ipv6InstallSubContexts(
  24. )
  25. {
  26. DWORD dwErr = NO_ERROR, i;
  27. PNS_HELPER_ATTRIBUTES pCtx = NULL;
  28. for (i = 0, pCtx = g_pSubContexts; i < g_dwSubContextCount; i++, pCtx++)
  29. {
  30. // Initialize helper attributes
  31. //
  32. RegisterHelper( &g_Ipv6Guid, pCtx );
  33. }
  34. return dwErr;
  35. }