Networking Forums

Networking Forums > Computer Networking > Linux Networking > ip address and the device

Reply
Thread Tools Display Modes

ip address and the device

 
 
Zheng Da
Guest
Posts: n/a

 
      12-27-2006, 05:53 PM
Hello,

I want to capture packets from the specified ip address.
Given the ip address, how do I get the device I need to listen on. Is it
possible to get the device by programming?

Best regards,
Zheng Da

--
Posted via a free Usenet account from http://www.teranews.com

 
Reply With Quote
 
 
 
 
David Schwartz
Guest
Posts: n/a

 
      12-27-2006, 06:54 PM

Zheng Da wrote:

> I want to capture packets from the specified ip address.
> Given the ip address, how do I get the device I need to listen on. Is it
> possible to get the device by programming?


Your question gives us no idea what you're actually asking.

As just a single example of how ambiguous it is, what is the "I"? Do
you mean an actual human being? Or a program on a computer?

One more: you ask about "the device", but what does that mean? Are we
talking about a single computer that has more than one network
interface?

DS

 
Reply With Quote
 
Ridwan Nurhayat
Guest
Posts: n/a

 
      12-28-2006, 09:23 AM

Zheng Da wrote:
> Hello,
>
> I want to capture packets from the specified ip address.
> Given the ip address, how do I get the device I need to listen on.


If you just want to capture packets then you don't need to know the
device.

> Is it possible to get the device by programming?
>


Yes

 
Reply With Quote
 
Zheng Da
Guest
Posts: n/a

 
      12-28-2006, 10:56 AM
David Schwartz wrote:
> Zheng Da wrote:
>
>> I want to capture packets from the specified ip address.
>> Given the ip address, how do I get the device I need to listen on. Is it
>> possible to get the device by programming?

>
> Your question gives us no idea what you're actually asking.
>
> As just a single example of how ambiguous it is, what is the "I"? Do
> you mean an actual human being? Or a program on a computer?
>
> One more: you ask about "the device", but what does that mean? Are we
> talking about a single computer that has more than one network
> interface?
>
> DS
>

Sorry, I mean I want to use libpcap to capture packets from the
specified ip address. But using pcap_open_live(), I should specify the
device name. But I have the ip address, how can I get the device name in
my program? I hope my program can find the device itself.

Zheng Da

--
Posted via a free Usenet account from http://www.teranews.com

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
BT Fusion Device Address Geoff Lane Home Networking 2 06-01-2007 10:03 PM
A device with only IP address? SaranJothy Linux Networking 7 11-16-2006 03:32 PM
Tracking down a device with the wrong IP address? Boe Windows Networking 1 05-19-2006 09:18 PM
Device Not Being Served an IP Address jack2480@hotmail.com Linux Networking 1 05-08-2006 08:58 PM
device (ip/mac) address discovery matt Linux Networking 3 04-14-2005 12:49 AM



1 2 3 4 5 6 7 8 9 10 11