diff options
author | David S. Miller <davem@davemloft.net> | 2008-04-14 05:30:23 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-04-14 05:30:23 -0400 |
commit | df39e8ba56a788733d369068c7319e04b1da3cd5 (patch) | |
tree | 1e9be853bdb455e341cdbf957656f342cfa2eb9e /net/dccp | |
parent | f5572855ec492334d8c3ec0e0e86c31865d5cf07 (diff) | |
parent | 159d83363b629c91d020734207c1bc788b96af5a (diff) |
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Conflicts:
drivers/net/ehea/ehea_main.c
drivers/net/wireless/iwlwifi/Kconfig
drivers/net/wireless/rt2x00/rt61pci.c
net/ipv4/inet_timewait_sock.c
net/ipv6/raw.c
net/mac80211/ieee80211_sta.c
Diffstat (limited to 'net/dccp')
-rw-r--r-- | net/dccp/dccp.h | 6 | ||||
-rw-r--r-- | net/dccp/ipv4.c | 1 | ||||
-rw-r--r-- | net/dccp/output.c | 1 | ||||
-rw-r--r-- | net/dccp/proto.c | 3 |
4 files changed, 9 insertions, 2 deletions
diff --git a/net/dccp/dccp.h b/net/dccp/dccp.h index fe7726b0018f..f44d492d3b74 100644 --- a/net/dccp/dccp.h +++ b/net/dccp/dccp.h | |||
@@ -325,6 +325,12 @@ static inline int dccp_bad_service_code(const struct sock *sk, | |||
325 | * This is used for transmission as well as for reception. | 325 | * This is used for transmission as well as for reception. |
326 | */ | 326 | */ |
327 | struct dccp_skb_cb { | 327 | struct dccp_skb_cb { |
328 | union { | ||
329 | struct inet_skb_parm h4; | ||
330 | #if defined(CONFIG_IPV6) || defined (CONFIG_IPV6_MODULE) | ||
331 | struct inet6_skb_parm h6; | ||
332 | #endif | ||
333 | } header; | ||
328 | __u8 dccpd_type:4; | 334 | __u8 dccpd_type:4; |
329 | __u8 dccpd_ccval:4; | 335 | __u8 dccpd_ccval:4; |
330 | __u8 dccpd_reset_code, | 336 | __u8 dccpd_reset_code, |
diff --git a/net/dccp/ipv4.c b/net/dccp/ipv4.c index b9974669edb4..baa268d02e24 100644 --- a/net/dccp/ipv4.c +++ b/net/dccp/ipv4.c | |||
@@ -488,7 +488,6 @@ static int dccp_v4_send_response(struct sock *sk, struct request_sock *req) | |||
488 | 488 | ||
489 | dh->dccph_checksum = dccp_v4_csum_finish(skb, ireq->loc_addr, | 489 | dh->dccph_checksum = dccp_v4_csum_finish(skb, ireq->loc_addr, |
490 | ireq->rmt_addr); | 490 | ireq->rmt_addr); |
491 | memset(&(IPCB(skb)->opt), 0, sizeof(IPCB(skb)->opt)); | ||
492 | err = ip_build_and_send_pkt(skb, sk, ireq->loc_addr, | 491 | err = ip_build_and_send_pkt(skb, sk, ireq->loc_addr, |
493 | ireq->rmt_addr, | 492 | ireq->rmt_addr, |
494 | ireq->opt); | 493 | ireq->opt); |
diff --git a/net/dccp/output.c b/net/dccp/output.c index f32a84ef757b..1f8a9b64c083 100644 --- a/net/dccp/output.c +++ b/net/dccp/output.c | |||
@@ -126,7 +126,6 @@ static int dccp_transmit_skb(struct sock *sk, struct sk_buff *skb) | |||
126 | 126 | ||
127 | DCCP_INC_STATS(DCCP_MIB_OUTSEGS); | 127 | DCCP_INC_STATS(DCCP_MIB_OUTSEGS); |
128 | 128 | ||
129 | memset(&(IPCB(skb)->opt), 0, sizeof(IPCB(skb)->opt)); | ||
130 | err = icsk->icsk_af_ops->queue_xmit(skb, 0); | 129 | err = icsk->icsk_af_ops->queue_xmit(skb, 0); |
131 | return net_xmit_eval(err); | 130 | return net_xmit_eval(err); |
132 | } | 131 | } |
diff --git a/net/dccp/proto.c b/net/dccp/proto.c index d534cdf9603b..a4c1b36f4bc7 100644 --- a/net/dccp/proto.c +++ b/net/dccp/proto.c | |||
@@ -1038,6 +1038,9 @@ static int __init dccp_init(void) | |||
1038 | int ehash_order, bhash_order, i; | 1038 | int ehash_order, bhash_order, i; |
1039 | int rc = -ENOBUFS; | 1039 | int rc = -ENOBUFS; |
1040 | 1040 | ||
1041 | BUILD_BUG_ON(sizeof(struct dccp_skb_cb) > | ||
1042 | FIELD_SIZEOF(struct sk_buff, cb)); | ||
1043 | |||
1041 | dccp_hashinfo.bind_bucket_cachep = | 1044 | dccp_hashinfo.bind_bucket_cachep = |
1042 | kmem_cache_create("dccp_bind_bucket", | 1045 | kmem_cache_create("dccp_bind_bucket", |
1043 | sizeof(struct inet_bind_bucket), 0, | 1046 | sizeof(struct inet_bind_bucket), 0, |