diff options
| author | Stephen Hemminger <shemminger@osdl.org> | 2003-04-29 10:58:15 -0700 |
|---|---|---|
| committer | David S. Miller <davem@nuts.ninka.net> | 2003-04-29 10:58:15 -0700 |
| commit | a8c505ffbe4b0820787119a0d7e9d539e8d6e393 (patch) | |
| tree | 28d2fe9be4f693694867bc49907bad75c675bfcb /include/linux | |
| parent | 07211edd92071318cabb7f606cca4febe2167f65 (diff) | |
[BRIDGE}: Change bridge forwarding table to use hlist.
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/list.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/list.h b/include/linux/list.h index a724f9bcbe4d..11b8674c14ff 100644 --- a/include/linux/list.h +++ b/include/linux/list.h @@ -437,6 +437,10 @@ static __inline__ void hlist_add_before(struct hlist_node *n, struct hlist_node for (pos = (head)->first; pos; \ pos = pos->next) +#define hlist_for_each_safe(pos, n, head) \ + for (pos = (head)->first; n = pos ? pos->next : 0, pos; \ + pos = n) + #else #warning "don't include kernel headers in userspace" #endif /* __KERNEL__ */ |
