diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2011-07-07 20:42:57 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2011-07-07 20:42:57 +0000 |
commit | 6dcc67f5a65c901e09cc8c82acd1da6ed4a6ac3a (patch) | |
tree | 707e484e41f3f079840cca13c3499583af1858ce /sys/net/if_pppx.c | |
parent | c2c49577053bdab156761ac49dc3b55fc92381ba (diff) |
use IF_LEN/IFQ_LEN to access and ifqueue's length field. ryan ok
with this nothing in the tree fiddles if ifqueue internals any more, of
course except if.c and if.h (and some altq)
Diffstat (limited to 'sys/net/if_pppx.c')
-rw-r--r-- | sys/net/if_pppx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_pppx.c b/sys/net/if_pppx.c index a624eedfbef..79686d2597d 100644 --- a/sys/net/if_pppx.c +++ b/sys/net/if_pppx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_pppx.c,v 1.8 2011/07/02 22:20:08 nicm Exp $ */ +/* $OpenBSD: if_pppx.c,v 1.9 2011/07/07 20:42:56 henning Exp $ */ /* * Copyright (c) 2010 Claudio Jeker <claudio@openbsd.org> @@ -553,7 +553,7 @@ filt_pppx_read(struct knote *kn, long hint) s = splnet(); if (!IF_IS_EMPTY(&pxd->pxd_svcq)) { event = 1; - kn->kn_data = pxd->pxd_svcq.ifq_len; + kn->kn_data = IF_LEN(&pxd->pxd_svcq); } splx(s); |