cvs commit: src/sys/netgraph ng_ppp.c ng_ppp.h

Gleb Smirnoff glebius at FreeBSD.org
Thu Dec 28 05:21:54 PST 2006


glebius     2006-12-28 13:21:54 UTC

  FreeBSD src repository

  Modified files:
    sys/netgraph         ng_ppp.c ng_ppp.h 
  Log:
  Before this commit, if the compression is enabled the, ng_ppp(4)
  node would send every outgoing frame to the "compress" hook.
  Packets received on the "compress" hook were expected to be
  compressed and PROT_COMPD tag was put on them unconditionally.
  
  After this commit an alternative compression mode can be set.
  In this mode the node doesn't put the PROT_COMPD, the compressor
  should put it itself. This is important for such kind of
  compressors, that can submit uncompressed frames.
  
  Before this commit, if the decompression is enabled, the ng_ppp(4)
  node would send and incoming frame to the "decompress" hook
  only if it has the PROT_COMPD proto tag on it.
  
  After this commit an alternative decompression mode can be set.
  In this mode the node sends all the incoming packets to the
  decompression hook. This is important for such kind of compressors
  that need uncompressed packets too, to keep their library in sync.
  
  These new features will be used in new version of mpd4, and in new
  compressor nodes.
  
  Submitted by:   Alexander Motin <mav alkar.net>
  
  Revision  Changes    Path
  1.58      +113 -48   src/sys/netgraph/ng_ppp.c
  1.13      +14 -0     src/sys/netgraph/ng_ppp.h


More information about the cvs-src mailing list