mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Christopher Friesen" <cfriesen@nortelnetworks.com>
To: linux-kernel@vger.kernel.org
Subject: question about netlink/rtnetlink sockets
Date: Thu, 30 Aug 2001 11:29:29 -0400	[thread overview]
Message-ID: <3B8E5BD9.7CC0D854@nortelnetworks.com> (raw)


I'm working on writing some code that talks to the kernel over a netlink socket
and manipulates IP addresses, rules, and routes.

I've gotten it working, except for the case of adding an address that is already
present.  I would like to either ignore or replace it if it is already there
(haven't decided which yet) but currently I get an EEXIST error. (Which is
understandable, but I'd like to get rid of it.)  I tried setting the
NLM_F_REPLACE flag (which works when trying to add a route that already exists)
but this didn't seem to do anything.  Neither did NLM_F_EXCL.

Is this the expected behaviour?  Is there some reason why we don't replace it
with the newly specified address?  If there is no serious reason, could you
point me towards the code controlling this?  I'm on 2.2.

Thanks,

Chris


-- 
Chris Friesen                    | MailStop: 043/33/F10  
Nortel Networks                  | work: (613) 765-0557
3500 Carling Avenue              | fax:  (613) 765-2986
Nepean, ON K2H 8E9 Canada        | email: cfriesen@nortelnetworks.com

                 reply	other threads:[~2001-08-30 15:29 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=3B8E5BD9.7CC0D854@nortelnetworks.com \
    --to=cfriesen@nortelnetworks.com \
    --cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®