diff options
author | Thomas Schwinge <tschwinge@gnu.org> | 2006-04-27 00:56:34 +0000 |
---|---|---|
committer | Thomas Schwinge <tschwinge@gnu.org> | 2009-06-18 00:26:37 +0200 |
commit | 1ca2a1632d7325ee26b2c701b38c1d2e2fcb6f80 (patch) | |
tree | 630990386066401f4ce5b9fc530078c8a128a822 /device/subrs.c | |
parent | a9192e8b618990551fcb230941e87728d86864eb (diff) | |
download | gnumach-1ca2a1632d7325ee26b2c701b38c1d2e2fcb6f80.tar.gz gnumach-1ca2a1632d7325ee26b2c701b38c1d2e2fcb6f80.tar.bz2 gnumach-1ca2a1632d7325ee26b2c701b38c1d2e2fcb6f80.zip |
2006-04-27 Richard Braun <syn@hurdfr.org>
Manuel Menal <mmenal@hurdfr.org>
* device/if_hdr.h (struct ifnet): Added new members `if_snd_port_list'
and `if_snd_port_list_lock'.
* device/net_io.c: Reworked to improve BPF support. Filters can be
applied to ingress packets, egress packets, or both.
* device/subrs.c: Initialize the `if_snd_port_list' and
`if_snd_port_list_lock'.
* include/device/bpf.h [0]: Enable unconditionally.
Include <sys/types.h>.
(BPF_IN, BPF_OUT): New macros.
* include/device/net_status.h (NETF_TYPE_MASK, NETF_IN, NETF_OUT): New
macros.
(struct net_rcv_msg): New member `sent'.
* linux/dev/glue/net.c: Mark ingress packets as received and inject
egress packets into the packet filters.
Diffstat (limited to 'device/subrs.c')
-rw-r--r-- | device/subrs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/device/subrs.c b/device/subrs.c index a65d228e..e6e8b6b5 100644 --- a/device/subrs.c +++ b/device/subrs.c @@ -82,7 +82,9 @@ void if_init_queues(ifp) { IFQ_INIT(&ifp->if_snd); queue_init(&ifp->if_rcv_port_list); + queue_init(&ifp->if_snd_port_list); simple_lock_init(&ifp->if_rcv_port_list_lock); + simple_lock_init(&ifp->if_snd_port_list_lock); } |