Skip to content

Commit c68cb23

Browse files
author
Linus Torvalds
committed
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: [IPV4]: Fix ip command line processing. [VETH]: move veth.h to include/linux [NET] tc_nat: header install [TUNTAP]: Fix wrong debug message. [NETFILTER]: nf_conntrack_ipv4: fix module parameter compatibility mac80211: warn when receiving frames with unaligned data mac80211: round station cleanup timer
2 parents b50fd73 + a6c05c3 commit c68cb23

12 files changed

Lines changed: 34 additions & 16 deletions

File tree

‎Documentation/nfsroot.txt‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,6 @@ ip=<client-ip>:<server-ip>:<gw-ip>:<netmask>:<hostname>:<device>:<autoconf>
9797
autoconfiguration will take place. The most common way to use this
9898
is "ip=dhcp".
9999

100-
Note that "ip=off" is not the same thing as "ip=::::::off", because in
101-
the latter autoconfiguration will take place if any of DHCP, BOOTP or RARP
102-
are compiled in the kernel.
103-
104100
<client-ip> IP address of the client.
105101

106102
Default: Determined using autoconfiguration.
@@ -150,6 +146,7 @@ ip=<client-ip>:<server-ip>:<gw-ip>:<netmask>:<hostname>:<device>:<autoconf>
150146

151147
off or none: don't use autoconfiguration
152148
on or any: use any protocol available in the kernel
149+
(default)
153150
dhcp: use DHCP
154151
bootp: use BOOTP
155152
rarp: use RARP

‎drivers/net/tun.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ static int tun_chr_ioctl(struct inode *inode, struct file *file,
610610
tun->flags &= ~TUN_PERSIST;
611611

612612
DBG(KERN_INFO "%s: persist %s\n",
613-
tun->dev->name, arg ? "disabled" : "enabled");
613+
tun->dev->name, arg ? "enabled" : "disabled");
614614
break;
615615

616616
case TUNSETOWNER:

‎drivers/net/veth.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
#include <net/dst.h>
1717
#include <net/xfrm.h>
18-
#include <net/veth.h>
18+
#include <linux/veth.h>
1919

2020
#define DRV_NAME "veth"
2121
#define DRV_VERSION "1.0"

‎include/linux/Kbuild‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ header-y += toshiba.h
153153
header-y += ultrasound.h
154154
header-y += un.h
155155
header-y += utime.h
156+
header-y += veth.h
156157
header-y += video_decoder.h
157158
header-y += video_encoder.h
158159
header-y += videotext.h

‎include/linux/tc_act/Kbuild‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ header-y += tc_gact.h
22
header-y += tc_ipt.h
33
header-y += tc_mirred.h
44
header-y += tc_pedit.h
5+
header-y += tc_nat.h
File renamed without changes.

‎include/net/netfilter/nf_conntrack.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ static inline int nf_ct_is_untracked(const struct sk_buff *skb)
249249
return (skb->nfct == &nf_conntrack_untracked.ct_general);
250250
}
251251

252+
extern int nf_conntrack_set_hashsize(const char *val, struct kernel_param *kp);
252253
extern unsigned int nf_conntrack_htable_size;
253254
extern int nf_conntrack_checksum;
254255
extern atomic_t nf_conntrack_count;

‎net/ipv4/ipconfig.c‎

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1403,6 +1403,10 @@ static int __init ic_proto_name(char *name)
14031403
if (!strcmp(name, "on") || !strcmp(name, "any")) {
14041404
return 1;
14051405
}
1406+
if (!strcmp(name, "off") || !strcmp(name, "none")) {
1407+
ic_enable = 0;
1408+
return 1;
1409+
}
14061410
#ifdef CONFIG_IP_PNP_DHCP
14071411
else if (!strcmp(name, "dhcp")) {
14081412
ic_proto_enabled &= ~IC_RARP;
@@ -1437,12 +1441,6 @@ static int __init ip_auto_config_setup(char *addrs)
14371441

14381442
ic_set_manually = 1;
14391443

1440-
ic_enable = (*addrs &&
1441-
(strcmp(addrs, "off") != 0) &&
1442-
(strcmp(addrs, "none") != 0));
1443-
if (!ic_enable)
1444-
return 1;
1445-
14461444
if (ic_proto_name(addrs))
14471445
return 1;
14481446

‎net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,9 @@ struct nf_conntrack_l3proto nf_conntrack_l3proto_ipv4 __read_mostly = {
419419
.me = THIS_MODULE,
420420
};
421421

422+
module_param_call(hashsize, nf_conntrack_set_hashsize, param_get_uint,
423+
&nf_conntrack_htable_size, 0600);
424+
422425
MODULE_ALIAS("nf_conntrack-" __stringify(AF_INET));
423426
MODULE_ALIAS("ip_conntrack");
424427
MODULE_LICENSE("GPL");

‎net/mac80211/rx.c‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1443,6 +1443,7 @@ void __ieee80211_rx(struct ieee80211_hw *hw, struct sk_buff *skb,
14431443
struct ieee80211_sub_if_data *prev = NULL;
14441444
struct sk_buff *skb_new;
14451445
u8 *bssid;
1446+
int hdrlen;
14461447

14471448
/*
14481449
* key references and virtual interfaces are protected using RCU
@@ -1472,6 +1473,18 @@ void __ieee80211_rx(struct ieee80211_hw *hw, struct sk_buff *skb,
14721473
rx.fc = le16_to_cpu(hdr->frame_control);
14731474
type = rx.fc & IEEE80211_FCTL_FTYPE;
14741475

1476+
/*
1477+
* Drivers are required to align the payload data to a four-byte
1478+
* boundary, so the last two bits of the address where it starts
1479+
* may not be set. The header is required to be directly before
1480+
* the payload data, padding like atheros hardware adds which is
1481+
* inbetween the 802.11 header and the payload is not supported,
1482+
* the driver is required to move the 802.11 header further back
1483+
* in that case.
1484+
*/
1485+
hdrlen = ieee80211_get_hdrlen(rx.fc);
1486+
WARN_ON_ONCE(((unsigned long)(skb->data + hdrlen)) & 3);
1487+
14751488
if (type == IEEE80211_FTYPE_DATA || type == IEEE80211_FTYPE_MGMT)
14761489
local->dot11ReceivedFragmentCount++;
14771490

0 commit comments

Comments
 (0)