: Fix address/interface handling in UDP and DCCP, according to the scoping architecture.
Subsystems (3)
PATCH 1/1 : Fix address/interface handling in UDP and DCCP, according to the scoping architecture.
[IPV6]: Fix address/interface handling in UDP and DCCP, according to the scoping architecture.
TCP and RAW do not have this issue. Closes Bug #7432.
net/dccp/ipv6.c +1 -1
@@ -277,7 +277,7 @@ static void dccp_v6_err(struct sk_buff *__u64 seq; sk =inet6_lookup (&dccp_hashinfo, &hdr->daddr, dh->dccph_dport, - &hdr->saddr, dh->dccph_sport, skb->dev->ifindex); + &hdr->saddr, dh->dccph_sport,inet6_iif (skb));if (sk ==NULL ) {ICMP6_INC_STATS_BH (__in6_dev_get (skb->dev),ICMP6_MIB_INERRORS );
net/ipv6/udp.c +3 -4
@@ -242,14 +242,13 @@ static void udpv6_err(struct sk_buff *sk {struct ipv6_pinfo *np;struct ipv6hdr *hdr = (struct ipv6hdr *)skb->data; -struct net_device *dev = skb->dev;struct in6_addr *saddr = &hdr->saddr;struct in6_addr *daddr = &hdr->daddr;struct udphdr *uh = (struct udphdr *)(skb->data+offset);struct sock *sk;int err; - sk =udp_v6_lookup (daddr, uh->dest, saddr, uh->source, dev->ifindex); + sk =udp_v6_lookup (daddr, uh->dest, saddr, uh->source,inet6_iif (skb));if (sk ==NULL )return ;
@@ -348,7 +347,7 @@ static void udpv6_mcast_deliver(struct uread_lock (&udp_hash_lock); sk =sk_head (&udp_hash[ntohs (uh->dest) & (UDP_HTABLE_SIZE -1 )]); - dif = skb->dev->ifindex; + dif =inet6_iif (skb); sk =udp_v6_mcast_next (sk, uh->dest, daddr, uh->source, saddr, dif);if (!sk) {kfree_skb (skb);
@@ -429,7 +428,7 @@ static int udpv6_rcv(struct sk_buff **ps* check socket cache ... must talk to Alan about his plans * for sock caches... i'll skip this for now. */ - sk =udp_v6_lookup (saddr, uh->source, daddr, uh->dest, dev->ifindex); + sk =udp_v6_lookup (saddr, uh->source, daddr, uh->dest,inet6_iif (skb));if (sk ==NULL ) {if (!xfrm6_policy_check (NULL ,XFRM_POLICY_IN , skb))
Signature · 2 lines
YOSHIFUJI Hideaki @ USAGI Project <[email protected]> GPG-FP : 9022 65EB 1ECF 3AD1 0BDF 80D8 4807 F894 E062 0EEA
David Miller
maintainerFrom: YOSHIFUJI Hideaki <[email protected]>
Date: Tue, 21 Nov 2006 01:43:06 +0900 (JST)
Quoted 5 lines
[IPV6]: Fix address/interface handling in UDP and DCCP, according to the scoping architecture.
TCP and RAW do not have this issue. Closes Bug #7432.
Signed-off-by YOSHIFUJI Hideaki <[email protected]>
Thank you, I will look at this and apply it.
I tried yesterday to pull your other fixes from branch "2.6.19-rc6-20061117-to-davem-20061117" atgit://git.linux-ipv6.org/gitroot/yoshfuji/linux-2.6-dev/
but it doesn't work:
error: no such remote ref refs/heads/2.6.19-rc6-20061117-to-davem-20061117 Fetch failure: git://git.linux-ipv6.org/gitroot/yoshfuji/linux-2.6-dev/
Can you fix this up so I can pull in those bug fixes, or tell me what I am doing wrong? :-)
Thanks!
In article <[email protected]> (at Mon, 20 Nov 2006 09:32:22 -0800 (PST)), David Miller <[email protected]> says:
Quoted 10 lines
I tried yesterday to pull your other fixes from branch "2.6.19-rc6-20061117-to-davem-20061117" at
git://git.linux-ipv6.org/gitroot/yoshfuji/linux-2.6-dev/
but it doesn't work:error: no such remote ref refs/heads/2.6.19-rc6-20061117-to-davem-20061117 Fetch failure:
git://git.linux-ipv6.org/gitroot/yoshfuji/linux-2.6-dev/Can you fix this up so I can pull in those bug fixes, or tell me what I am doing wrong? :-)
Oops, sorry. Please try fetching from:
<git://git.linux-ipv6.org/gitroot/yoshfuji/linux-2.6-dev.git>,
replacing trailing "/" with ".git".
Regards,
P.S. Git seems to handle both cases. StGit does not, maybe?
--yoshfuji
From: YOSHIFUJI Hideaki <[email protected]>
Date: Tue, 21 Nov 2006 01:43:06 +0900 (JST)
Quoted 5 lines
[IPV6]: Fix address/interface handling in UDP and DCCP, according to the scoping architecture.
TCP and RAW do not have this issue. Closes Bug #7432.
Signed-off-by YOSHIFUJI Hideaki <[email protected]>
Applied, thanks a lot!