lkml.org 
[lkml]   [1999]   [Aug]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: linux-ipsec: possibly bogus value passed to skb->dst->output
Date
-----BEGIN PGP SIGNED MESSAGE-----

> On Sun, 22 Aug 1999, Richard Guy Briggs wrote:
> > I wrote:
> > > James Morris wrote:
> > > > I'll start looking at the other tunnels (ipip, gre, sit) in the 2.2 kernel
> > > > to see if there's anything simple we can try, as they use standard ip
> > > > output functions without any of these problems.
> > >
> > > I will look at them carefully again, IPIP has changed considerably
> > > in 2.2, merging drivers/net/new_tunnel.c in with net/ipv4/ipip.c.
>
> I think we have some progress here.
>
> Below is a patch which makes use of ip_send() and route/dst semantics
> for newer kernels.
>
> It's pretty rough at this stage, although it does allow the large MTU
> trick to be used, and sending fragments in transport mode now works.

I don't understand how it is able to do another route/dst lookup
without getting the same device in transport mode?

In tunnel mode, sure, but in transport mode, nothing has changed in
the IP header with the exception of the next_protocol field and the
length?

> - James
> --
> James Morris
> <jmorris@intercode.com.au>

> + /* new route/dst cache stuff */
> + if (ip_route_output(&rt, skb->nh.iph->daddr, skb->nh.iph->saddr,
> + RT_TOS(skb->nh.iph->tos), physdev->iflink)) {
> + stats->tx_errors++;
> + goto cleanup;
> + }
> + dst_release(skb->dst);
> + skb->dst = &rt->u.dst;
> + stats->tx_bytes += skb->len;
> + ip_send(skb);

slainte mhath, RGB
- --
The first Ottawa Linux Symposium was a huge success! <ottawalinuxsymposium.org>
This SunRayce was a wet one! DroughtRelief_99? -- <www.sunrayce.com/sunrayce/>
Richard Guy Briggs -- PGP key available Auto-Free Ottawa! Canada
<http://www.conscoop.ottawa.on.ca/rgb/> </www.flora.org/afo/>
Prevent Internet Wiretapping! -- FreeS/WAN:<www.xs4all.nl/~freeswan>
Thanks for voting Green! -- <green.ca> Marillion:<www.marillion.co.uk>

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i
Charset: noconv

iQCVAwUBN8Q5JN+sBuIhFagtAQEKUwP/Ru7yaJdrL4MLnq6ZxCr/U/0NHb437LzX
ZUXoUEHH2OTPHzWcL9g2eMJj4q/nuRyhJ2arv/6I0mcAaq7nNzSaaOzaiigbACwq
uVCqJWyww5qjlt62ez4NkPv0DWCvKONyK4XRpQNC86TVMwoM31AEJI3n1hq7Annr
nIzu0nWkC/M=
=FXmB
-----END PGP SIGNATURE-----

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:53    [W:0.330 / U:0.148 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site