summaryrefslogtreecommitdiffstats
path: root/sys/dev/hatm/if_hatm_rx.c
diff options
context:
space:
mode:
authorharti <harti@FreeBSD.org>2003-08-06 13:16:51 +0000
committerharti <harti@FreeBSD.org>2003-08-06 13:16:51 +0000
commita74328e4ef7573138465d87cc353a5e7a0aaba8d (patch)
tree589bfc3d934e24df496c8be7e7d87923ebbf050e /sys/dev/hatm/if_hatm_rx.c
parent8f1a543ee8b7fd55a3574a31ebe124a3203fdb23 (diff)
downloadFreeBSD-src-a74328e4ef7573138465d87cc353a5e7a0aaba8d.zip
FreeBSD-src-a74328e4ef7573138465d87cc353a5e7a0aaba8d.tar.gz
Make the driver honor the ATMIO_FLAG_ASYNC that requests
asynchronuous open/close operations.
Diffstat (limited to 'sys/dev/hatm/if_hatm_rx.c')
-rw-r--r--sys/dev/hatm/if_hatm_rx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/hatm/if_hatm_rx.c b/sys/dev/hatm/if_hatm_rx.c
index 841ab64..7dbda1c 100644
--- a/sys/dev/hatm/if_hatm_rx.c
+++ b/sys/dev/hatm/if_hatm_rx.c
@@ -96,7 +96,7 @@ hatm_rx(struct hatm_softc *sc, u_int cid, u_int flags, struct mbuf *m0,
if (flags & HE_REGM_RBRQ_CON_CLOSED) {
if (vcc->vflags & HE_VCC_RX_CLOSING) {
vcc->vflags &= ~HE_VCC_RX_CLOSING;
- if (vcc->vflags & HE_VCC_ASYNC) {
+ if (vcc->param.flags & ATMIO_FLAG_ASYNC) {
if (!(vcc->vflags & HE_VCC_OPEN))
hatm_vcc_closed(sc, cid);
} else
@@ -223,7 +223,7 @@ hatm_rx(struct hatm_softc *sc, u_int cid, u_int flags, struct mbuf *m0,
#ifdef ENABLE_BPF
if (!(vcc->param.flags & ATMIO_FLAG_NG) &&
- (vcc->param.flags & ATM_PH_AAL5) &&
+ (vcc->param.aal == ATMIO_AAL_5) &&
(vcc->param.flags & ATM_PH_LLCSNAP))
BPF_MTAP(&sc->ifatm.ifnet, m);
#endif
OpenPOWER on IntegriCloud