Need your help, pinging through multiple interface

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




> 
> I am sorry if i am disturbing you But I have a
> problem
> and it seems that you can help me !
> 
> I read your discussion about how to use
> pf_packet and how to write sendto() etc...
> 
> I am trying to send a "ping" packet (icmp echo
> request) over a specific interface to a certain
> host.
> My routing table doesn't have any entry for this
> host.
> 
> (Actually I am trying to build my own ping program,
> The option i am talking about is found in the
> original
>  ping program  " ping -I eth0 192.168.3.1")
>  
> So i Need to force the packets to the wire directly;
> I know I need to use the struct sockaddr_ll ,
> but the problem is that this structure does not have
> an "IP address" member like the old one sockaddr_in
> can you help me please ??
> 
> Thanks a lot.
> 


__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux