public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
From: Eric Dumazet <eric.dumazet@gmail.com>
To: Joakim Tjernlund <joakim.tjernlund@transmode.se>
Cc: netdev@vger.kernel.org
Subject: Re: ping -I eth1 ....
Date: Fri, 05 Nov 2010 14:36:46 +0100	[thread overview]
Message-ID: <1288964206.2882.402.camel@edumazet-laptop> (raw)
In-Reply-To: <OF339BCA8A.B674D6AE-ONC12577D2.00481B5E-C12577D2.0048B214@transmode.se>

Le vendredi 05 novembre 2010 à 14:14 +0100, Joakim Tjernlund a écrit :
> If I do busybox ping -I eth1 x.x.y.y i see
> socket(PF_INET, SOCK_RAW, IPPROTO_ICMP) = 3
> getuid()                                = 0
> setuid(0)                               = 0
> setsockopt(3, SOL_SOCKET, SO_BINDTODEVICE, "eth1\0\0\0\0\0\0\0\0\0\0\0\0\20\0[l\0\0\0\2\20\7\354(\0"..., 32) = 0
> setsockopt(3, SOL_SOCKET, SO_BROADCAST, [1], 4) = 0
> setsockopt(3, SOL_SOCKET, SO_RCVBUF, [7280], 4) = 0
> 
> ......
> then this in a loop:
> --- SIGALRM (Alarm clock) @ 0 (0) ---
> clock_gettime(CLOCK_MONOTONIC, {1238, 116470107}) = 0
> sendto(3, "\10\0\203\345\1\326\0\2I\314(v\0\0\0\0\0\0\0\0\0\0\0\0"..., 64, 0, {sa_family=AF_INET, sin_port=htons(0), sin_addr=inet_addr("1.1.1.1")}, 16) = 64
> rt_sigaction(SIGALRM, {0x10017034, [ALRM], SA_RESTART}, {0x10017034, [ALRM], SA_RESTART}, 8) = 0
> alarm(1)                                = 0
> sigreturn()                             = ? (mask now [ILL ABRT FPE KILL ALRM STKFLT CONT STOP TTOU URG XCPU XFSZ VTALRM PROF WINCH IO PWR RTMIN])
> recvfrom(3, 0xbfe6a620, 192, 0, 0xbfe6a6f0, 0xbfe6a70c) = ? ERESTARTSYS (To be restarted)
> 
> Then I do ifconfig eth1 down
> and I still see the same. Should not
> sendto and/or revcfrom return some error as
> the interface is down?

Hmm, this reminds me one patch, yes...

Search for " ipv4: remove all rt cache entries on UNREGISTER event"

http://permalink.gmane.org/gmane.linux.network/173391

I guess I should respin it for net-next-2.6




  reply	other threads:[~2010-11-05 13:36 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-05 13:14 ping -I eth1 Joakim Tjernlund
2010-11-05 13:36 ` Eric Dumazet [this message]
2010-11-05 14:01   ` Joakim Tjernlund
2010-11-05 14:25     ` Thomas Graf
2010-11-05 14:34       ` Eric Dumazet
2010-11-05 14:53         ` Thomas Graf
2010-11-05 15:04           ` Joakim Tjernlund
2010-11-05 15:45           ` Joakim Tjernlund
2010-11-05 14:57         ` Joakim Tjernlund
2010-11-05 15:06           ` Eric Dumazet
2010-11-05 15:54             ` Joakim Tjernlund
2010-11-05 20:31               ` Thomas Graf
2010-11-06  9:42                 ` Joakim Tjernlund
     [not found]                 ` <OF921B3329.67FE598A-ONC12577D3.0033387A-C12577D3.00355AC4@LocalDomain>
2010-11-09 19:33                   ` Joakim Tjernlund
     [not found]                   ` <OFC0986D69.B0E22D17-ONC12577D6.006B4A38-C12577D6.006B72F9@LocalDomain>
2010-11-17  9:29                     ` Joakim Tjernlund
2010-11-17  9:51                       ` Eric Dumazet
2010-11-17 10:09                         ` Joakim Tjernlund
2010-11-17 10:23                           ` Eric Dumazet
2010-11-17 14:03                             ` Joakim Tjernlund

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=1288964206.2882.402.camel@edumazet-laptop \
    --to=eric.dumazet@gmail.com \
    --cc=joakim.tjernlund@transmode.se \
    --cc=netdev@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