ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: Afanasov Dmitry <ender@altlinux.org>
To: sysadmins@lists.altlinux.org
Subject: Re: [Sysadmins] IfDown and RtNetLink
Date: Sat, 26 Dec 2009 13:31:04 +0300
Message-ID: <20091226103058.GB4180@utvuk.ender.rk> (raw)
In-Reply-To: <938558270.20091226131411@Bk.Ru>

[-- Attachment #1: Type: text/plain, Size: 849 bytes --]

On Sat, Dec 26, 2009 at 01:14:11PM +0300, MisHel64 wrote:
> >> И что именно имеет в виду RTNETLINK, и какой это процесс он не no such?
> > ядро не возвращает сообщений, ядро возвращает коды ошибок (errno). в
> > данном случае код ESRCH, которая в strerror расшифровывается как No such
> > process. по-русски - "извиняйте, ничего подобного в маршрутах не нашел"
> 
> Получается при выполнении ifdown маршрут удаляется дважды?
хмм, а не связано ли такое поведение случайно с тем, что ядро при опускании
интерфейса автоматом удаляется все связанные с ним маршруты?

то есть при конфигурации
1.2.3.4/24 via 5.6.7.8 dev eth0
5.6.7.0/24 dev eth0

после ip link set eth0 down все маршруты связанные с eth0 удалятся. и ip
route del 1.2.3.4/24 via 5.6.7.8 dev eth0 гарантировано выдаст no such
process.
-- 
 С уважением
 Афанасов Дмитрий

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

  reply	other threads:[~2009-12-26 10:31 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-26  5:12 MisHel64
2009-12-26  7:46 ` Anton Farygin
2009-12-26  9:16   ` MisHel64
2009-12-26  9:48 ` Afanasov Dmitry
2009-12-26 10:14   ` MisHel64
2009-12-26 10:31     ` Afanasov Dmitry [this message]
2009-12-26 23:46       ` MisHel64
2009-12-28  7:23         ` Afanasov Dmitry
2009-12-28  8:07           ` Afanasov Dmitry
2010-01-01 11:43             ` MisHel64
2009-12-26  9:57 ` Stanislav Vlasov
2009-12-26 10:10   ` MisHel64

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=20091226103058.GB4180@utvuk.ender.rk \
    --to=ender@altlinux.org \
    --cc=sysadmins@lists.altlinux.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

ALT Linux sysadmins discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
		sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
	public-inbox-index sysadmins

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sysadmins


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git