- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- IP address of NIC (ethernet) interface queue
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-21-2005 11:30 AM
тАО10-21-2005 11:30 AM
IP address of NIC (ethernet) interface queue
along with the dlpi module, onto
the stream queue for the ethernet driver and
then examines incoming and outgoing packets.
The module essentially sits below the IP layer
and above the NIC layer.
Is there a way to get the IP address of the
interface associated with the ethernet driver
using the stream queue and the stream mechanism? We have code that gets the MAC
address of the NIC using the DLPI protocol. Is there
something similar for getting the IP address
of the corresponding interface?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2005 12:50 AM
тАО10-22-2005 12:50 AM
Re: IP address of NIC (ethernet) interface queue
Not sure if this helps you out or you are aware of this already.
But i think if you are able to get MAC address and looking for IP address asscoiated with it then ARP/RARP protocol may help. These are address resolution protocol (mac to ip and ip to mac). Don't know how your module will interact with ARP.
Anyways, if you think this may helpful, u can get ample info about ARP/RARP protocols on web.
Also see if "man arp" help.
Regards,
Ashish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-23-2005 06:09 PM
тАО10-23-2005 06:09 PM
Re: IP address of NIC (ethernet) interface queue
to push your module over dlpi.
When exactly do you need the IP address (i.e
during interface plumbing or during when
interface is up and you are seeing packets?)
As you know, the dlpi does not care about IP
address. The IP address is an abstraction
stored in private datastructures in IP layer.
So if you need the IP address, you need to
ask the IP module about it.
Can you elaborate what exactly you want to
do?
- Biswajit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-24-2005 05:32 AM
тАО10-24-2005 05:32 AM
Re: IP address of NIC (ethernet) interface queue
over the dlpi. We need the IP address
when our streams module is pushed, not when the interface is brought up. We want the
IP address of the stream Q we are associated
with. We will use it for processing
packets on the queue.
Is there a way to query the IP layer
for the IP address? Is there good documentation on how to program the query?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-09-2005 03:25 PM
тАО11-09-2005 03:25 PM
Re: IP address of NIC (ethernet) interface queue
Sorry for late reply (vacation season in
India did not let me connect to this forum
for couple of weeks).
While, AFAIK, there is no direct way of doing
this, you could use the following trick. Take
a look at public domain ipfilter source code
(more precisely, download
ftp://coombs.anu.edu.au/pub/net/ip-filter/pfil-2.1.6.tar.gz
and see file pfil/HP-UX/qif.c). This file
does exactly what you are doing. See how
if_lookup_on_name() routine is used. You
might have to do some manipulation to use
this routine, but should not be too
difficult.
- Biswajit