root/trunk/rt61inject.h

Revision 160, 1.6 kB (checked in by dragorn, 10 months ago)

Multiple cleanups of headers for linux kernels (linux/types.h, linux/if.h before wireless.h)

Line 
1/*
2    This file is part of lorcon
3
4    lorcon is free software; you can redistribute it and/or modify
5    it under the terms of the GNU General Public License as published by
6    the Free Software Foundation; either version 2 of the License, or
7    (at your option) any later version.
8
9    lorcon is distributed in the hope that it will be useful,
10    but WITHOUT ANY WARRANTY; without even the implied warranty of
11    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12    GNU General Public License for more details.
13
14    You should have received a copy of the GNU General Public License
15    along with lorcon; if not, write to the Free Software
16    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17
18    Copyright (c) 2005 dragorn and Joshua Wright
19*/
20
21#ifndef __RT61INJECT_H__
22#define __RT61INJECT_H__
23
24#ifdef HAVE_CONFIG_H
25#include "config.h"
26#endif
27
28#ifdef SYS_LINUX
29
30#include <stdlib.h>
31#include <errno.h>
32#include <string.h>
33#include <stdio.h>
34#include <unistd.h>
35
36#include <net/if_arp.h>
37#include <sys/socket.h>
38#include <sys/ioctl.h>
39#include <netinet/in.h>
40#include <netinet/if_ether.h>
41#include <arpa/inet.h>
42#include <sys/poll.h>
43#include <sys/types.h>
44
45#ifdef HAVE_LINUX_WIRELESS
46#include <linux/types.h>
47#include <linux/if.h>
48#include <linux/wireless.h>
49#else
50#include <net/if.h>
51#endif
52
53#include <net/ethernet.h>
54#include <netpacket/packet.h>
55
56#include "wtinject.h"
57
58int tx80211_rt61_init(struct tx80211 *in_tx);
59int tx80211_rt61_capabilities();
60
61int rt61_open(struct tx80211 *in_tx);
62int rt61_send(struct tx80211 *in_tx, struct tx80211_packet *in_pkt);
63
64#endif /* linux */
65
66#endif
Note: See TracBrowser for help on using the browser.