Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 382286 Details for
Bug 518496
net-firewall/ipsec-tools-0.8.2 - racoon will not listen on an IPv6 address
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
ipsec-tools-0.8.2-racoon-listen-on-ipv6.patch
ipsec-tools-0.8.2-racoon-listen-on-ipv6.patch (text/plain), 1.57 KB, created by
Chris Frederick
on 2014-08-04 22:49:28 UTC
(
hide
)
Description:
ipsec-tools-0.8.2-racoon-listen-on-ipv6.patch
Filename:
MIME Type:
Creator:
Chris Frederick
Created:
2014-08-04 22:49:28 UTC
Size:
1.57 KB
patch
obsolete
>diff -Naur ipsec-tools-0.8.2/src/racoon/grabmyaddr.c ipsec-tools-0.8.2.new/src/racoon/grabmyaddr.c >--- ipsec-tools-0.8.2/src/racoon/grabmyaddr.c 2013-04-12 04:53:52.000000000 -0500 >+++ ipsec-tools-0.8.2.new/src/racoon/grabmyaddr.c 2014-07-30 14:40:50.986130838 -0500 >@@ -432,8 +432,9 @@ > sin6 = (struct sockaddr_in6 *) &addr; > memcpy(&sin6->sin6_addr, RTA_DATA(rta[IFA_LOCAL]), > sizeof(sin6->sin6_addr)); >- if (!IN6_IS_ADDR_LINKLOCAL(&sin6->sin6_addr)) >- return 0; >+ //Why is this restricting to link local only? >+ //if (!IN6_IS_ADDR_LINKLOCAL(&sin6->sin6_addr)) >+ // return 0; > sin6->sin6_scope_id = ifa->ifa_index; > > netlink_add_del_address(h->nlmsg_type == RTM_NEWADDR, >diff -Naur ipsec-tools-0.8.2/src/racoon/sockmisc.c ipsec-tools-0.8.2.new/src/racoon/sockmisc.c >--- ipsec-tools-0.8.2/src/racoon/sockmisc.c 2011-03-14 12:18:13.000000000 -0500 >+++ ipsec-tools-0.8.2.new/src/racoon/sockmisc.c 2014-07-30 15:09:27.809500681 -0500 >@@ -123,9 +123,12 @@ > port2 = ((struct sockaddr_in6 *)addr2)->sin6_port; > if (memcmp(sa1, sa2, sizeof(struct in6_addr)) != 0) > return CMPSADDR_MISMATCH; >- if (((struct sockaddr_in6 *)addr1)->sin6_scope_id != >- ((struct sockaddr_in6 *)addr2)->sin6_scope_id) >- return CMPSADDR_MISMATCH; >+ //Addresses match at this point, so check one for link local scope >+ if (IN6_IS_ADDR_LINKLOCAL(&(((struct sockaddr_in6 *)addr1)->sin6_addr))) >+ //Verify matching scope_id on link local addrs >+ if (((struct sockaddr_in6 *)addr1)->sin6_scope_id != >+ ((struct sockaddr_in6 *)addr2)->sin6_scope_id) >+ return CMPSADDR_MISMATCH; > break; > #endif > default:
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 518496
: 382286