From 6dcc67f5a65c901e09cc8c82acd1da6ed4a6ac3a Mon Sep 17 00:00:00 2001 From: Henning Brauer Date: Thu, 7 Jul 2011 20:42:57 +0000 Subject: 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) --- sys/net/if_pppx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/net/if_pppx.c') 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 @@ -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); -- cgit v1.2.3