- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Accessing to /dev/lan0 with a Gb card
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
Forums
Discussions
Discussions
Discussions
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
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
02-16-2004 04:34 AM
02-16-2004 04:34 AM
Accessing to /dev/lan0 with a Gb card
we run an application that needs to access the device file of a Gigabit Ethernet card; the program has to perform an "open" and a "ioctl"; it returns an error (errno=6 no such device).
Do you know any kind of tips to simulate the device file of such a card? Ioscan, also, does not show any device files associated to it.
Thanks,
Alessio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2004 04:57 AM
02-16-2004 04:57 AM
Re: Accessing to /dev/lan0 with a Gb card
Regards,
Dave.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2004 05:30 AM
02-16-2004 05:30 AM
Re: Accessing to /dev/lan0 with a Gb card
The security implications of doing so concerns me though.
I suupose if anything bad happened insf -e would fix it.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2004 05:46 AM
02-16-2004 05:46 AM
Re: Accessing to /dev/lan0 with a Gb card
There are device files for GigE devices - they aren't displayed in an ioscan output because GigE cards are now all lumped under the btlan umbrella even though the ioscan shows the driver as igelan.
You can confirm this with a
lsdev -C lan
and you'll see *no* igelan driver, but you will see btlan.
But there *should* be device files for the GigE cards. What's under the I column for the device - that should be the PPA or lanX number.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2004 02:48 PM
02-16-2004 02:48 PM
Re: Accessing to /dev/lan0 with a Gb card
Starting HP-UX 11.0 (10.30 actually), there are no device specific files for Ethernet cards. Access to Ethernet cards are through /dev/lan which is the same as /dev/dlpi. The interface through /dev/dlpi conforms to the DLPI specification. The application will have to open /dev/dlpi, attach to the interface, and then issue the ioctl.
What ioctl does your application issue? There aren't that many ioctls available to applications to use.
Thanks.
Ajit Natarajan
HP-UX Gigabit Ethernet
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2004 12:14 AM
02-17-2004 12:14 AM
Re: Accessing to /dev/lan0 with a Gb card
Ajit,
this is the code:
main ()
{
int fd, i;
struct fis arg;
fd = open("/dev/dlpi", O_RDONLY);
printf("%d errno=%d", fd,errno);
arg.reqtype = LOCAL_ADDRESS;
i = ioctl(fd, NETSTAT, &arg);
printf("%d errno=%d", i,errno);
}
If I open /dev/dlpi, I got an error in the ioctl; opening /dev/lan0, I got an error just in the open.
Thanks,
Alessio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2004 12:15 AM
02-17-2004 12:15 AM
Re: Accessing to /dev/lan0 with a Gb card
OS is HPUX 11.11
Alessio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2004 05:48 AM
02-17-2004 05:48 AM
Re: Accessing to /dev/lan0 with a Gb card
Your code snippet is using what was called "LLA" for Link-Level Access.
Back when HP-UX 10.20 was shipped - IIRC back in 1995 or the better part of ten years ago - HP announced that LLA was "going away" and being replaced with the DLPI mentioned by Ajit.
Starting from 1995, support for LLA was fading, and "new" cards were not including LLA support. There were a _very_ few exceptions to deal with lethargic licensing software on workstations. I think even that is gone now.
So, the time has come (8 years ago :) to migrate your LLA application to DLPI. There are I believe some migration documents on docs.hp.com that should help you.
And if you or anyone else knows anyone or any vendor that is _still_ using LLA, please apply an HP P/N 19511-80014 to their craniums (gently please :) and get them migrating _yeasterday_
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2004 02:01 PM
02-17-2004 02:01 PM
Re: Accessing to /dev/lan0 with a Gb card
You can find the DLPI programmer's guide at the following location:
http://docs.hp.com/hpux/11i/index.html
(search for DLPI)
You may also find the LLA to DLPI migration guide useful. You can find it at the following location:
http://docs.hp.com/hpux/10.x/index.html
(search for LLA).
Hope this helps.
Thanks.
Ajit
HP-UX Gigabit Ethernet