diff options
author | pilot <pilot> | 2007-11-12 14:55:01 +0000 |
---|---|---|
committer | pilot <pilot> | 2007-11-12 14:55:01 +0000 |
commit | 440b3f3512e77b78224f2309b2d1013b0dddfa11 (patch) | |
tree | c9c33d3abc06936e45f5fda50690c7e9cc7f49bd /lib/workqueue.h | |
parent | 504199a5ea02907c0fa5e9519d8816fcdddc28e9 (diff) | |
download | quagga-440b3f3512e77b78224f2309b2d1013b0dddfa11.tar.bz2 quagga-440b3f3512e77b78224f2309b2d1013b0dddfa11.tar.xz |
+ fixed bug #418 (changing address on an existing interface doesn't cause existing static routes to be revalidated)
Diffstat (limited to 'lib/workqueue.h')
-rw-r--r-- | lib/workqueue.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/workqueue.h b/lib/workqueue.h index 7e0e78ab..3150c32e 100644 --- a/lib/workqueue.h +++ b/lib/workqueue.h @@ -47,11 +47,8 @@ struct work_queue_item unsigned short ran; /* # of times item has been run */ }; -enum work_queue_flags -{ - WQ_UNPLUGGED = 0, - WQ_PLUGGED = 1, -}; +#define WQ_UNPLUGGED (1 << 0) /* available for draining */ +#define WQ_AIM_HEAD (1 << 1) /* add new items before list head, not after tail */ struct work_queue { @@ -101,7 +98,7 @@ struct work_queue } cycles; /* cycle counts */ /* private state */ - enum work_queue_flags flags; /* user set flag */ + u_int16_t flags; /* user set flag */ }; /* User API */ @@ -122,6 +119,8 @@ extern void work_queue_add (struct work_queue *, void *); extern void work_queue_plug (struct work_queue *wq); /* unplug the queue, allow it to be drained again */ extern void work_queue_unplug (struct work_queue *wq); +/* control the value for WQ_AIM_HEAD flag */ +extern void work_queue_aim_head (struct work_queue *wq, const unsigned); /* Helpers, exported for thread.c and command.c */ extern int work_queue_run (struct thread *); |