cvs commit: src/sys/netgraph ng_pptpgre.c

Gleb Smirnoff glebius at
Tue Aug 30 09:51:55 GMT 2005

glebius     2005-08-30 09:51:54 UTC

  FreeBSD src repository

  Modified files:
    sys/netgraph         ng_pptpgre.c 
  Lock down PPTP node, since it has many data structures, that won't survive
  parallel ng_pptp_rcvdata():
  - Add a per-node mutex.
  - Acquire mutex during all ng_pptp_rcvdata() method.
  - Make callouts protected by mutex. Now callouts count as
    netgraph writers, but there are plans to allow reader callouts
    for nodes, that have internal locking.
  - Acquire mutex in ng_pptp_reset(), which can be triggered
    by a message or node shutdown.
  PR:             kern/80035
  Tested by:      Deomid Ryabkov <myself>
  Reviewed by:    Deomid Ryabkov <myself>
  Revision  Changes    Path
  1.38      +25 -7     src/sys/netgraph/ng_pptpgre.c

More information about the cvs-src mailing list