Deleted Added
full compact
ieee80211_ageq.c (195527) ieee80211_ageq.c (218965)
1/*-
2 * Copyright (c) 2009 Sam Leffler, Errno Consulting
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 10 unchanged lines hidden (view full) ---

19 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
20 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
21 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */
25
26#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2009 Sam Leffler, Errno Consulting
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 10 unchanged lines hidden (view full) ---

19 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
20 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
21 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */
25
26#include <sys/cdefs.h>
27__FBSDID("$FreeBSD: head/sys/net80211/ieee80211_ageq.c 195527 2009-07-10 02:19:57Z sam $");
27__FBSDID("$FreeBSD: head/sys/net80211/ieee80211_ageq.c 218965 2011-02-23 09:22:33Z brucec $");
28
29/*
30 * IEEE 802.11 age queue support.
31 */
32#include "opt_wlan.h"
33
34#include <sys/param.h>
35#include <sys/systm.h>

--- 113 unchanged lines hidden (view full) ---

149 ieee80211_ageq_mfree(ieee80211_ageq_remove(aq, ni));
150}
151
152/*
153 * Age frames on the age queue. Ages are stored as time
154 * deltas (in seconds) relative to the head so we can check
155 * and/or adjust only the head of the list. If a frame's age
156 * exceeds the time quanta then remove it. The list of removed
28
29/*
30 * IEEE 802.11 age queue support.
31 */
32#include "opt_wlan.h"
33
34#include <sys/param.h>
35#include <sys/systm.h>

--- 113 unchanged lines hidden (view full) ---

149 ieee80211_ageq_mfree(ieee80211_ageq_remove(aq, ni));
150}
151
152/*
153 * Age frames on the age queue. Ages are stored as time
154 * deltas (in seconds) relative to the head so we can check
155 * and/or adjust only the head of the list. If a frame's age
156 * exceeds the time quanta then remove it. The list of removed
157 * frames is is returned to the caller joined by m_nextpkt.
157 * frames is returned to the caller joined by m_nextpkt.
158 */
159struct mbuf *
160ieee80211_ageq_age(struct ieee80211_ageq *aq, int quanta)
161{
162 struct mbuf *head, **phead;
163 struct mbuf *m;
164
165 phead = &head;

--- 72 unchanged lines hidden ---
158 */
159struct mbuf *
160ieee80211_ageq_age(struct ieee80211_ageq *aq, int quanta)
161{
162 struct mbuf *head, **phead;
163 struct mbuf *m;
164
165 phead = &head;

--- 72 unchanged lines hidden ---