Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 148346 Details for
Bug 225328
LSPP: ipsec drops first packet when using IKE daemon
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
LSPP.65 kernel patch for this issue.
5.225328.patch (text/plain), 5.58 KB, created by
Eric Paris
on 2007-02-19 17:19:29 UTC
(
hide
)
Description:
LSPP.65 kernel patch for this issue.
Filename:
MIME Type:
Creator:
Eric Paris
Created:
2007-02-19 17:19:29 UTC
Size:
5.58 KB
patch
obsolete
>--- linux-2.6.18.i686/net/ipv6/datagram.c.pre.225328 2007-02-15 17:30:38.000000000 -0500 >+++ linux-2.6.18.i686/net/ipv6/datagram.c 2007-02-16 13:39:47.000000000 -0500 >@@ -178,7 +178,7 @@ ipv4_connected: > if (final_p) > ipv6_addr_copy(&fl.fl6_dst, final_p); > >- if ((err = xfrm_lookup(&dst, &fl, sk, 0)) < 0) >+ if ((err = xfrm_lookup(&dst, &fl, sk, 1)) < 0) > goto out; > > /* source address lookup done in ip6_dst_lookup */ >--- linux-2.6.18.i686/net/ipv6/tcp_ipv6.c.pre.225328 2007-02-15 17:30:38.000000000 -0500 >+++ linux-2.6.18.i686/net/ipv6/tcp_ipv6.c 2007-02-16 13:39:47.000000000 -0500 >@@ -259,7 +259,7 @@ static int tcp_v6_connect(struct sock *s > if (final_p) > ipv6_addr_copy(&fl.fl6_dst, final_p); > >- if ((err = xfrm_lookup(&dst, &fl, sk, 0)) < 0) >+ if ((err = xfrm_lookup(&dst, &fl, sk, 1)) < 0) > goto failure; > > if (saddr == NULL) { >--- linux-2.6.18.i686/net/ipv6/raw.c.pre.225328 2007-02-15 17:30:34.000000000 -0500 >+++ linux-2.6.18.i686/net/ipv6/raw.c 2007-02-16 13:39:47.000000000 -0500 >@@ -767,7 +767,7 @@ static int rawv6_sendmsg(struct kiocb *i > if (final_p) > ipv6_addr_copy(&fl.fl6_dst, final_p); > >- if ((err = xfrm_lookup(&dst, &fl, sk, 0)) < 0) >+ if ((err = xfrm_lookup(&dst, &fl, sk, 1)) < 0) > goto out; > > if (hlimit < 0) { >--- linux-2.6.18.i686/net/ipv6/udp.c.pre.225328 2007-02-15 17:30:42.000000000 -0500 >+++ linux-2.6.18.i686/net/ipv6/udp.c 2007-02-16 13:43:51.000000000 -0500 >@@ -790,7 +790,7 @@ do_udp_sendmsg: > if (final_p) > ipv6_addr_copy(&fl.fl6_dst, final_p); > >- if ((err = xfrm_lookup(&dst, &fl, sk, 0)) < 0) >+ if ((err = xfrm_lookup(&dst, &fl, sk, 1)) < 0) > goto out; > > if (hlimit < 0) { >--- linux-2.6.18.i686/net/ipv4/tcp_ipv4.c.pre.225328 2007-02-15 17:30:34.000000000 -0500 >+++ linux-2.6.18.i686/net/ipv4/tcp_ipv4.c 2007-02-16 13:39:47.000000000 -0500 >@@ -179,7 +179,7 @@ int tcp_v4_connect(struct sock *sk, stru > tmp = ip_route_connect(&rt, nexthop, inet->saddr, > RT_CONN_FLAGS(sk), sk->sk_bound_dev_if, > IPPROTO_TCP, >- inet->sport, usin->sin_port, sk); >+ inet->sport, usin->sin_port, sk, 1); > if (tmp < 0) > return tmp; > >--- linux-2.6.18.i686/net/ipv4/datagram.c.pre.225328 2006-09-19 23:42:06.000000000 -0400 >+++ linux-2.6.18.i686/net/ipv4/datagram.c 2007-02-16 13:39:47.000000000 -0500 >@@ -49,7 +49,7 @@ int ip4_datagram_connect(struct sock *sk > err = ip_route_connect(&rt, usin->sin_addr.s_addr, saddr, > RT_CONN_FLAGS(sk), oif, > sk->sk_protocol, >- inet->sport, usin->sin_port, sk); >+ inet->sport, usin->sin_port, sk, 1); > if (err) > return err; > if ((rt->rt_flags & RTCF_BROADCAST) && !sock_flag(sk, SOCK_BROADCAST)) { >--- linux-2.6.18.i686/net/ipv4/af_inet.c.pre.225328 2007-02-15 17:30:46.000000000 -0500 >+++ linux-2.6.18.i686/net/ipv4/af_inet.c 2007-02-16 13:39:47.000000000 -0500 >@@ -1006,7 +1006,7 @@ static int inet_sk_reselect_saddr(struct > RT_CONN_FLAGS(sk), > sk->sk_bound_dev_if, > sk->sk_protocol, >- inet->sport, inet->dport, sk); >+ inet->sport, inet->dport, sk, 0); > if (err) > return err; > >--- linux-2.6.18.i686/net/ipv4/raw.c.pre.225328 2007-02-15 17:30:34.000000000 -0500 >+++ linux-2.6.18.i686/net/ipv4/raw.c 2007-02-16 13:39:47.000000000 -0500 >@@ -484,7 +484,7 @@ static int raw_sendmsg(struct kiocb *ioc > raw_probe_proto_opt(&fl, msg); > > security_sk_classify_flow(sk, &fl); >- err = ip_route_output_flow(&rt, &fl, sk, !(msg->msg_flags&MSG_DONTWAIT)); >+ err = ip_route_output_flow(&rt, &fl, sk, 1); > } > if (err) > goto done; >--- linux-2.6.18.i686/net/ipv4/udp.c.pre.225328 2007-02-15 17:30:34.000000000 -0500 >+++ linux-2.6.18.i686/net/ipv4/udp.c 2007-02-16 13:39:47.000000000 -0500 >@@ -604,7 +604,7 @@ int udp_sendmsg(struct kiocb *iocb, stru > { .sport = inet->sport, > .dport = dport } } }; > security_sk_classify_flow(sk, &fl); >- err = ip_route_output_flow(&rt, &fl, sk, !(msg->msg_flags&MSG_DONTWAIT)); >+ err = ip_route_output_flow(&rt, &fl, sk, 1); > if (err) > goto out; > >--- linux-2.6.18.i686/net/dccp/ipv4.c.pre.225328 2007-02-15 17:30:34.000000000 -0500 >+++ linux-2.6.18.i686/net/dccp/ipv4.c 2007-02-16 13:39:47.000000000 -0500 >@@ -75,7 +75,7 @@ int dccp_v4_connect(struct sock *sk, str > tmp = ip_route_connect(&rt, nexthop, inet->saddr, > RT_CONN_FLAGS(sk), sk->sk_bound_dev_if, > IPPROTO_DCCP, >- inet->sport, usin->sin_port, sk); >+ inet->sport, usin->sin_port, sk, 1); > if (tmp < 0) > return tmp; > >--- linux-2.6.18.i686/net/dccp/ipv6.c.pre.225328 2007-02-15 17:30:38.000000000 -0500 >+++ linux-2.6.18.i686/net/dccp/ipv6.c 2007-02-16 13:39:47.000000000 -0500 >@@ -218,7 +218,7 @@ static int dccp_v6_connect(struct sock * > if (final_p) > ipv6_addr_copy(&fl.fl6_dst, final_p); > >- err = xfrm_lookup(&dst, &fl, sk, 0); >+ err = xfrm_lookup(&dst, &fl, sk, 1); > if (err < 0) > goto failure; > >--- linux-2.6.18.i686/include/net/route.h.pre.225328 2007-02-15 17:30:33.000000000 -0500 >+++ linux-2.6.18.i686/include/net/route.h 2007-02-16 13:41:37.000000000 -0500 >@@ -146,7 +146,8 @@ static inline char rt_tos2priority(u8 to > > static inline int ip_route_connect(struct rtable **rp, u32 dst, > u32 src, u32 tos, int oif, u8 protocol, >- u16 sport, u16 dport, struct sock *sk) >+ u16 sport, u16 dport, struct sock *sk, >+ int flags) > { > struct flowi fl = { .oif = oif, > .nl_u = { .ip4_u = { .daddr = dst, >@@ -168,7 +169,7 @@ static inline int ip_route_connect(struc > *rp = NULL; > } > security_sk_classify_flow(sk, &fl); >- return ip_route_output_flow(rp, &fl, sk, 0); >+ return ip_route_output_flow(rp, &fl, sk, flags); > } > > static inline int ip_route_newports(struct rtable **rp, u8 protocol,
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 225328
: 148346