DragonFly BSD
DragonFly commits List (threaded) for 2005-04
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

cvs commit: src/sys/net if.c ifq_var.h src/sys/net/altq altq_subr.c


From: Joerg Sonnenberger <joerg@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 4 Apr 2005 10:08:16 -0700 (PDT)

joerg       2005/04/04 10:08:16 PDT

DragonFly src repository

  Modified files:
    sys/net              if.c ifq_var.h 
    sys/net/altq         altq_subr.c 
  Log:
  When ALTQ was detached from an interface queue, the function pointers
  for enqueue, dequeue and request ops where reset to NULL. That was fine
  in the old days when ifq_* checked wether ALTQ is enabled and fell back
  to the classic implementation, but now it just deferences a NULL pointer.
  Introduce a new function ifq_set_classic, which resets the pointers to
  the same values if_attach initially uses and which implements the
  classic BSD queueing. Use this in altq_detach and if_attach.
  
  Reported-by: Stefan Krüger <skrueger@xxxxxxxxxxxxxxxx>
  
  Revision  Changes    Path
  1.31      +9 -3      src/sys/net/if.c
  1.3       +2 -0      src/sys/net/ifq_var.h
  1.2       +1 -3      src/sys/net/altq/altq_subr.c


http://www.dragonflybsd.org/cvsweb/src/sys/net/if.c.diff?r1=1.30&r2=1.31&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/net/ifq_var.h.diff?r1=1.2&r2=1.3&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/net/altq/altq_subr.c.diff?r1=1.1&r2=1.2&f=u



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]