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 /include/net | |
| 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
...
Diffstat (limited to 'include/net')
| -rw-r--r-- | include/net/act_api.h | 30 | ||||
| -rw-r--r-- | include/net/cfg80211.h | 38 | ||||
| -rw-r--r-- | include/net/inet_timewait_sock.h | 3 | ||||
| -rw-r--r-- | include/net/iucv/af_iucv.h | 1 | ||||
| -rw-r--r-- | include/net/mac80211.h | 22 | ||||
| -rw-r--r-- | include/net/netfilter/ipv4/nf_conntrack_ipv4.h | 2 | ||||
| -rw-r--r-- | include/net/netfilter/ipv6/nf_conntrack_ipv6.h | 2 | ||||
| -rw-r--r-- | include/net/netfilter/nf_conntrack.h | 4 | ||||
| -rw-r--r-- | include/net/netfilter/nf_conntrack_l3proto.h | 8 | ||||
| -rw-r--r-- | include/net/pkt_cls.h | 8 | ||||
| -rw-r--r-- | include/net/pkt_sched.h | 4 | ||||
| -rw-r--r-- | include/net/sch_generic.h | 2 |
12 files changed, 65 insertions, 59 deletions
diff --git a/include/net/act_api.h b/include/net/act_api.h index 2f0273feabd3..68b4eaf7719d 100644 --- a/include/net/act_api.h +++ b/include/net/act_api.h | |||
| @@ -121,34 +121,4 @@ extern int tcf_action_dump_old(struct sk_buff *skb, struct tc_action *a, int, in | |||
| 121 | extern int tcf_action_dump_1(struct sk_buff *skb, struct tc_action *a, int, int); | 121 | extern int tcf_action_dump_1(struct sk_buff *skb, struct tc_action *a, int, int); |
| 122 | extern int tcf_action_copy_stats (struct sk_buff *,struct tc_action *, int); | 122 | extern int tcf_action_copy_stats (struct sk_buff *,struct tc_action *, int); |
| 123 | #endif /* CONFIG_NET_CLS_ACT */ | 123 | #endif /* CONFIG_NET_CLS_ACT */ |
| 124 | |||
| 125 | extern int tcf_police(struct sk_buff *skb, struct tcf_police *p); | ||
| 126 | extern void tcf_police_destroy(struct tcf_police *p); | ||
| 127 | extern struct tcf_police * tcf_police_locate(struct rtattr *rta, struct rtattr *est); | ||
| 128 | extern int tcf_police_dump(struct sk_buff *skb, struct tcf_police *p); | ||
| 129 | extern int tcf_police_dump_stats(struct sk_buff *skb, struct tcf_police *p); | ||
| 130 | |||
| 131 | static inline int | ||
| 132 | tcf_police_release(struct tcf_police *p, int bind) | ||
| 133 | { | ||
| 134 | int ret = 0; | ||
| 135 | #ifdef CONFIG_NET_CLS_ACT | ||
| 136 | if (p) { | ||
| 137 | if (bind) | ||
| 138 | p->tcf_bindcnt--; | ||
| 139 | |||
| 140 | p->tcf_refcnt--; | ||
| 141 | if (p->tcf_refcnt <= 0 && !p->tcf_bindcnt) { | ||
| 142 | tcf_police_destroy(p); | ||
| 143 | ret = 1; | ||
| 144 | } | ||
| 145 | } | ||
| 146 | #else | ||
| 147 | if (p && --p->tcf_refcnt == 0) | ||
| 148 | tcf_police_destroy(p); | ||
| 149 | |||
| 150 | #endif /* CONFIG_NET_CLS_ACT */ | ||
| 151 | return ret; | ||
| 152 | } | ||
| 153 | |||
| 154 | #endif | 124 | #endif |
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index 88171f8ce58a..7edaef6b29d6 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h | |||
| @@ -11,6 +11,44 @@ | |||
| 11 | * Copyright 2006 Johannes Berg <johannes@sipsolutions.net> | 11 | * Copyright 2006 Johannes Berg <johannes@sipsolutions.net> |
| 12 | */ | 12 | */ |
| 13 | 13 | ||
| 14 | |||
| 15 | /* Radiotap header iteration | ||
| 16 | * implemented in net/wireless/radiotap.c | ||
| 17 | * docs in Documentation/networking/radiotap-headers.txt | ||
| 18 | */ | ||
| 19 | /** | ||
| 20 | * struct ieee80211_radiotap_iterator - tracks walk thru present radiotap args | ||
| 21 | * @rtheader: pointer to the radiotap header we are walking through | ||
| 22 | * @max_length: length of radiotap header in cpu byte ordering | ||
| 23 | * @this_arg_index: IEEE80211_RADIOTAP_... index of current arg | ||
| 24 | * @this_arg: pointer to current radiotap arg | ||
| 25 | * @arg_index: internal next argument index | ||
| 26 | * @arg: internal next argument pointer | ||
| 27 | * @next_bitmap: internal pointer to next present u32 | ||
| 28 | * @bitmap_shifter: internal shifter for curr u32 bitmap, b0 set == arg present | ||
| 29 | */ | ||
| 30 | |||
| 31 | struct ieee80211_radiotap_iterator { | ||
| 32 | struct ieee80211_radiotap_header *rtheader; | ||
| 33 | int max_length; | ||
| 34 | int this_arg_index; | ||
| 35 | u8 *this_arg; | ||
| 36 | |||
| 37 | int arg_index; | ||
| 38 | u8 *arg; | ||
| 39 | __le32 *next_bitmap; | ||
| 40 | u32 bitmap_shifter; | ||
| 41 | }; | ||
| 42 | |||
| 43 | extern int ieee80211_radiotap_iterator_init( | ||
| 44 | struct ieee80211_radiotap_iterator *iterator, | ||
| 45 | struct ieee80211_radiotap_header *radiotap_header, | ||
| 46 | int max_length); | ||
| 47 | |||
| 48 | extern int ieee80211_radiotap_iterator_next( | ||
| 49 | struct ieee80211_radiotap_iterator *iterator); | ||
| 50 | |||
| 51 | |||
| 14 | /* from net/wireless.h */ | 52 | /* from net/wireless.h */ |
| 15 | struct wiphy; | 53 | struct wiphy; |
| 16 | 54 | ||
diff --git a/include/net/inet_timewait_sock.h b/include/net/inet_timewait_sock.h index 09a2532699b2..47d52b2414db 100644 --- a/include/net/inet_timewait_sock.h +++ b/include/net/inet_timewait_sock.h | |||
| @@ -209,9 +209,6 @@ static inline void inet_twsk_put(struct inet_timewait_sock *tw) | |||
| 209 | extern struct inet_timewait_sock *inet_twsk_alloc(const struct sock *sk, | 209 | extern struct inet_timewait_sock *inet_twsk_alloc(const struct sock *sk, |
| 210 | const int state); | 210 | const int state); |
| 211 | 211 | ||
| 212 | extern void __inet_twsk_kill(struct inet_timewait_sock *tw, | ||
| 213 | struct inet_hashinfo *hashinfo); | ||
| 214 | |||
| 215 | extern void __inet_twsk_hashdance(struct inet_timewait_sock *tw, | 212 | extern void __inet_twsk_hashdance(struct inet_timewait_sock *tw, |
| 216 | struct sock *sk, | 213 | struct sock *sk, |
| 217 | struct inet_hashinfo *hashinfo); | 214 | struct inet_hashinfo *hashinfo); |
diff --git a/include/net/iucv/af_iucv.h b/include/net/iucv/af_iucv.h index f9bd11be1891..b6c468cd7f5b 100644 --- a/include/net/iucv/af_iucv.h +++ b/include/net/iucv/af_iucv.h | |||
| @@ -60,6 +60,7 @@ struct iucv_sock { | |||
| 60 | char dst_user_id[8]; | 60 | char dst_user_id[8]; |
| 61 | char dst_name[8]; | 61 | char dst_name[8]; |
| 62 | struct list_head accept_q; | 62 | struct list_head accept_q; |
| 63 | spinlock_t accept_q_lock; | ||
| 63 | struct sock *parent; | 64 | struct sock *parent; |
| 64 | struct iucv_path *path; | 65 | struct iucv_path *path; |
| 65 | struct sk_buff_head send_skb_q; | 66 | struct sk_buff_head send_skb_q; |
diff --git a/include/net/mac80211.h b/include/net/mac80211.h index a7f122b79948..c34fd9a6160a 100644 --- a/include/net/mac80211.h +++ b/include/net/mac80211.h | |||
| @@ -347,9 +347,16 @@ enum ieee80211_if_types { | |||
| 347 | * @mac_addr: pointer to MAC address of the interface. This pointer is valid | 347 | * @mac_addr: pointer to MAC address of the interface. This pointer is valid |
| 348 | * until the interface is removed (i.e. it cannot be used after | 348 | * until the interface is removed (i.e. it cannot be used after |
| 349 | * remove_interface() callback was called for this interface). | 349 | * remove_interface() callback was called for this interface). |
| 350 | * This pointer will be %NULL for monitor interfaces, be careful. | ||
| 350 | * | 351 | * |
| 351 | * This structure is used in add_interface() and remove_interface() | 352 | * This structure is used in add_interface() and remove_interface() |
| 352 | * callbacks of &struct ieee80211_hw. | 353 | * callbacks of &struct ieee80211_hw. |
| 354 | * | ||
| 355 | * When you allow multiple interfaces to be added to your PHY, take care | ||
| 356 | * that the hardware can actually handle multiple MAC addresses. However, | ||
| 357 | * also take care that when there's no interface left with mac_addr != %NULL | ||
| 358 | * you remove the MAC address from the device to avoid acknowledging packets | ||
| 359 | * in pure monitor mode. | ||
| 353 | */ | 360 | */ |
| 354 | struct ieee80211_if_init_conf { | 361 | struct ieee80211_if_init_conf { |
| 355 | int if_id; | 362 | int if_id; |
| @@ -574,10 +581,11 @@ struct ieee80211_ops { | |||
| 574 | * to returning zero. By returning non-zero addition of the interface | 581 | * to returning zero. By returning non-zero addition of the interface |
| 575 | * is inhibited. Unless monitor_during_oper is set, it is guaranteed | 582 | * is inhibited. Unless monitor_during_oper is set, it is guaranteed |
| 576 | * that monitor interfaces and normal interfaces are mutually | 583 | * that monitor interfaces and normal interfaces are mutually |
| 577 | * exclusive. The open() handler is called after add_interface() | 584 | * exclusive. If assigned, the open() handler is called after |
| 578 | * if this is the first device added. At least one of the open() | 585 | * add_interface() if this is the first device added. The |
| 579 | * open() and add_interface() callbacks has to be assigned. If | 586 | * add_interface() callback has to be assigned because it is the only |
| 580 | * add_interface() is NULL, one STA interface is permitted only. */ | 587 | * way to obtain the requested MAC address for any interface. |
| 588 | */ | ||
| 581 | int (*add_interface)(struct ieee80211_hw *hw, | 589 | int (*add_interface)(struct ieee80211_hw *hw, |
| 582 | struct ieee80211_if_init_conf *conf); | 590 | struct ieee80211_if_init_conf *conf); |
| 583 | 591 | ||
| @@ -921,12 +929,6 @@ struct sk_buff * | |||
| 921 | ieee80211_get_buffered_bc(struct ieee80211_hw *hw, int if_id, | 929 | ieee80211_get_buffered_bc(struct ieee80211_hw *hw, int if_id, |
| 922 | struct ieee80211_tx_control *control); | 930 | struct ieee80211_tx_control *control); |
| 923 | 931 | ||
| 924 | /* Low level drivers that have their own MLME and MAC indicate | ||
| 925 | * the aid for an associating station with this call */ | ||
| 926 | int ieee80211_set_aid_for_sta(struct ieee80211_hw *hw, | ||
| 927 | u8 *peer_address, u16 aid); | ||
| 928 | |||
| 929 | |||
