diff options
| author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-15 19:50:46 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-15 19:50:46 -0400 |
| commit | d3502d7f25b22cfc9762bf1781faa9db1bb3be2e (patch) | |
| tree | e1d0195704efaafa14caf6965c8f2b6b00cbcb83 | |
| parent | d2a9a8ded48bec153f08ee87a40626c8d0737f79 (diff) | |
| parent | 0a9f2a467d8dacaf7e97469dba99ed2d07287d80 (diff) | |
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
* 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6: (53 commits)
[TCP]: Verify the presence of RETRANS bit when leaving FRTO
[IPV6]: Call inet6addr_chain notifiers on link down
[NET_SCHED]: Kill CONFIG_NET_CLS_POLICE
[NET_SCHED]: act_api: qdisc internal reclassify support
[NET_SCHED]: sch_dsmark: act_api support
[NET_SCHED]: sch_atm: act_api support
[NET_SCHED]: sch_atm: Lindent
[IPV6]: MSG_ERRQUEUE messages do not pass to connected raw sockets
[IPV4]: Cleanup call to __neigh_lookup()
[NET_SCHED]: Revert "avoid transmit softirq on watchdog wakeup" optimization
[NETFILTER]: nf_conntrack: UDPLITE support
[NETFILTER]: nf_conntrack: mark protocols __read_mostly
[NETFILTER]: x_tables: add connlimit match
[NETFILTER]: Lower *tables printk severity
[NETFILTER]: nf_conntrack: Don't track locally generated special ICMP error
[NETFILTER]: nf_conntrack: Introduces nf_ct_get_tuplepr and uses it
[NETFILTER]: nf_conntrack: make l3proto->prepare() generic and renames it
[NETFILTER]: nf_conntrack: Increment error count on parsing IPv4 header
[NET]: Add ethtool support for NETIF_F_IPV6_CSUM devices.
[AF_IUCV]: Add lock when updating accept_q
...
92 files changed, 2955 insertions, 1328 deletions
diff --git a/Documentation/networking/mac80211-injection.txt b/Documentation/networking/mac80211-injection.txt new file mode 100644 index 000000000000..53ef7a06f49c --- /dev/null +++ b/Documentation/networking/mac80211-injection.txt | |||
| @@ -0,0 +1,59 @@ | |||
| 1 | How to use packet injection with mac80211 | ||
| 2 | ========================================= | ||
| 3 | |||
| 4 | mac80211 now allows arbitrary packets to be injected down any Monitor Mode | ||
| 5 | interface from userland. The packet you inject needs to be composed in the | ||
| 6 | following format: | ||
| 7 | |||
| 8 | [ radiotap header ] | ||
| 9 | [ ieee80211 header ] | ||
| 10 | [ payload ] | ||
| 11 | |||
| 12 | The radiotap format is discussed in | ||
| 13 | ./Documentation/networking/radiotap-headers.txt. | ||
| 14 | |||
| 15 | Despite 13 radiotap argument types are currently defined, most only make sense | ||
| 16 | to appear on received packets. Currently three kinds of argument are used by | ||
| 17 | the injection code, although it knows to skip any other arguments that are | ||
| 18 | present (facilitating replay of captured radiotap headers directly): | ||
| 19 | |||
| 20 | - IEEE80211_RADIOTAP_RATE - u8 arg in 500kbps units (0x02 --> 1Mbps) | ||
| 21 | |||
| 22 | - IEEE80211_RADIOTAP_ANTENNA - u8 arg, 0x00 = ant1, 0x01 = ant2 | ||
| 23 | |||
| 24 | - IEEE80211_RADIOTAP_DBM_TX_POWER - u8 arg, dBm | ||
| 25 | |||
| 26 | Here is an example valid radiotap header defining these three parameters | ||
| 27 | |||
| 28 | 0x00, 0x00, // <-- radiotap version | ||
| 29 | 0x0b, 0x00, // <- radiotap header length | ||
| 30 | 0x04, 0x0c, 0x00, 0x00, // <-- bitmap | ||
| 31 | 0x6c, // <-- rate | ||
| 32 | 0x0c, //<-- tx power | ||
| 33 | 0x01 //<-- antenna | ||
| 34 | |||
| 35 | The ieee80211 header follows immediately afterwards, looking fo | ||
