All of lore.kernel.org
 help / color / mirror / Atom feed
From: kuznet@ms2.inr.ac.ru
To: davem@redhat.com (David S. Miller)
Cc: kazunori@miyazawa.org, netdev@oss.sgi.com, usagi@linux-ipv6.org,
	latten@austin.ibm.com
Subject: Re: [PATCH][IPV6] fixed authentication error with TCP
Date: Mon, 18 Aug 2003 03:29:50 +0400 (MSD)	[thread overview]
Message-ID: <200308172329.DAA14889@dub.inr.ac.ru> (raw)
In-Reply-To: <20030807220539.4555db2d.davem@redhat.com> from "David S. Miller" at Aug 07, 2003 10:05:39 PM

Hello!

> But I see a small area for improvement.  Look at the place inside
> of ip6_dst_lookup() where we do source address selection.  If this
> fails, we mark error to dst->error.
.....
> It seems to me that it is only OK for dst->error to be set on routes
> that may not be used validly for anything.
> 
> Alexey, do I understand this stuff correctly?

I think you do. And this is rather severe bug than area for improvement.
It definitely corrupts routing table.

Well, I think switching from function returning error code to a function
returning dst is not a very good idea. This never was convenient.
In the case of error, IPv6 used to return to caller a dummy reject route,
which is always -ENETRUNREACH. So, to do this we have to hold a route
for each errno. Returning int was just better.

Alexey

  reply	other threads:[~2003-08-17 23:29 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-06  7:44 [PATCH][IPV6] fixed authentication error with TCP Kazunori Miyazawa
2003-08-08  5:05 ` David S. Miller
2003-08-17 23:29   ` kuznet [this message]
2003-08-18  7:45     ` Ville Nuorvala
2003-08-18  7:45       ` David S. Miller
2003-08-18  9:32       ` Kazunori Miyazawa
2003-08-18  9:48       ` David S. Miller
2003-08-18 10:36         ` David S. Miller
2003-08-18 10:11       ` David S. Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200308172329.DAA14889@dub.inr.ac.ru \
    --to=kuznet@ms2.inr.ac.ru \
    --cc=davem@redhat.com \
    --cc=kazunori@miyazawa.org \
    --cc=latten@austin.ibm.com \
    --cc=netdev@oss.sgi.com \
    --cc=usagi@linux-ipv6.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.