1*085ff963SMatthew Dillon /*- 2*085ff963SMatthew Dillon * Copyright (c) 2011 Adrian Chadd, Xenion Lty Ltd 3*085ff963SMatthew Dillon * All rights reserved. 4*085ff963SMatthew Dillon * 5*085ff963SMatthew Dillon * Redistribution and use in source and binary forms, with or without 6*085ff963SMatthew Dillon * modification, are permitted provided that the following conditions 7*085ff963SMatthew Dillon * are met: 8*085ff963SMatthew Dillon * 1. Redistributions of source code must retain the above copyright 9*085ff963SMatthew Dillon * notice, this list of conditions and the following disclaimer. 10*085ff963SMatthew Dillon * 2. Redistributions in binary form must reproduce the above copyright 11*085ff963SMatthew Dillon * notice, this list of conditions and the following disclaimer in the 12*085ff963SMatthew Dillon * documentation and/or other materials provided with the distribution. 13*085ff963SMatthew Dillon * 14*085ff963SMatthew Dillon * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 15*085ff963SMatthew Dillon * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 16*085ff963SMatthew Dillon * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 17*085ff963SMatthew Dillon * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 18*085ff963SMatthew Dillon * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 19*085ff963SMatthew Dillon * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 20*085ff963SMatthew Dillon * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 21*085ff963SMatthew Dillon * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22*085ff963SMatthew Dillon * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 23*085ff963SMatthew Dillon * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24*085ff963SMatthew Dillon * 25*085ff963SMatthew Dillon * $FreeBSD$ 26*085ff963SMatthew Dillon */ 27*085ff963SMatthew Dillon #ifndef __IEEE80211_ALQ_H__ 28*085ff963SMatthew Dillon #define __IEEE80211_ALQ_H__ 29*085ff963SMatthew Dillon 30*085ff963SMatthew Dillon #define IEEE80211_ALQ_PAYLOAD_SIZE 24 31*085ff963SMatthew Dillon 32*085ff963SMatthew Dillon /* 33*085ff963SMatthew Dillon * timestamp 34*085ff963SMatthew Dillon * wlan interface 35*085ff963SMatthew Dillon * operation 36*085ff963SMatthew Dillon * sub-operation 37*085ff963SMatthew Dillon * rest of structure - operation specific 38*085ff963SMatthew Dillon */ 39*085ff963SMatthew Dillon struct ieee80211_alq_rec { 40*085ff963SMatthew Dillon uint32_t r_timestamp; /* XXX may wrap! */ 41*085ff963SMatthew Dillon uint32_t r_threadid; /* current thread id */ 42*085ff963SMatthew Dillon uint16_t r_wlan; /* wlan interface number */ 43*085ff963SMatthew Dillon uint8_t r_version; /* version */ 44*085ff963SMatthew Dillon uint8_t r_op; /* top-level operation id */ 45*085ff963SMatthew Dillon u_char r_payload[IEEE80211_ALQ_PAYLOAD_SIZE]; 46*085ff963SMatthew Dillon /* operation-specific payload */ 47*085ff963SMatthew Dillon }; 48*085ff963SMatthew Dillon 49*085ff963SMatthew Dillon /* General logging function */ 50*085ff963SMatthew Dillon extern void ieee80211_alq_log(struct ieee80211vap *vap, uint8_t op, 51*085ff963SMatthew Dillon u_char *p, int l); 52*085ff963SMatthew Dillon 53*085ff963SMatthew Dillon #endif /* __IEEE80211_ALQ_H__ */ 54