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.

71 lines
2.0 KiB

  1. /*++
  2. Copyright (c) 1992 Microsoft Corporation
  3. Module Name:
  4. asyncall.h
  5. Abstract:
  6. This code include most of the 'h' files for rashub.c
  7. Author:
  8. Thomas J. Dimitri (TommyD) 29-May-1992
  9. Environment:
  10. Kernel Mode - Or whatever is the equivalent on OS/2 and DOS.
  11. Revision History:
  12. --*/
  13. /* This flag enables the retrofitted support for old RAS compression and
  14. ** coherency, i.e. the scheme available on WFW311 and NT31 clients. This
  15. ** support was added post-NT35 for inclusion in the NT-PPC release. It looks
  16. ** to NDISWAN like a hardware specific compression. (SteveC)
  17. **
  18. ** Note: The 'CompressBCast' feature that allows user to control whether
  19. ** broadcast frames are compressed is not supported here because the
  20. ** ethernet header (from which NT31 determined a frame was a broadcast)
  21. ** is not available in the new NDISWAN interface. This was a tuning
  22. ** feature, where data not likely to repeat (broadcasts) were eliminated
  23. ** from the pattern buffer. There should not be any functional problems
  24. ** simply compressing broadcast frames since the receiver determines
  25. ** whether decompression is required regardless of this setting. Given
  26. ** this, it's a mystery why TommyD bothered negotiating this with the
  27. ** peer. To avoid hitting non-default code paths on the clients we will
  28. ** simply negotiate the old default (no compression), but will still
  29. ** compress everything on the outgoing path.
  30. */
  31. #include <ndis.h>
  32. #include <ndiswan.h>
  33. #include <asyncpub.h>
  34. #include <xfilter.h>
  35. #include <ntddser.h>
  36. #include "asynchrd.h"
  37. #include "frame.h"
  38. #include "asyncsft.h"
  39. #include "globals.h"
  40. #include "asyframe.h"
  41. //
  42. // Global constants.
  43. //
  44. #define PPP_ALL (PPP_FRAMING | \
  45. PPP_COMPRESS_ADDRESS_CONTROL | \
  46. PPP_COMPRESS_PROTOCOL_FIELD | \
  47. PPP_ACCM_SUPPORTED)
  48. #define SLIP_ALL (SLIP_FRAMING | \
  49. SLIP_VJ_COMPRESSION | \
  50. SLIP_VJ_AUTODETECT)