public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* ping -I eth1 ....
@ 2010-11-05 13:14 Joakim Tjernlund
  2010-11-05 13:36 ` Eric Dumazet
  0 siblings, 1 reply; 19+ messages in thread
From: Joakim Tjernlund @ 2010-11-05 13:14 UTC (permalink / raw)
  To: netdev


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?

kernel 2.6.35

    Jocke


^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2010-11-17 14:04 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-05 13:14 ping -I eth1 Joakim Tjernlund
2010-11-05 13:36 ` Eric Dumazet
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox