- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Getting network card MTU using ioctl
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
01-28-2002 04:56 AM
01-28-2002 04:56 AM
How do i get the MTU of my network interface card using ioctl ?
I tried a lot but I could get it right.
This is the first time I am using ioctl.
Thanks in advance,
Prakash
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2002 05:04 AM
01-28-2002 05:04 AM
Re: Getting network card MTU using ioctl
If you want to interrogage the MTU networking size:
# lanadmin -m [ppid|nmid]
If you want to set it (by lan):
# lanadmin -M 1500 [ppid|nmid]
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2002 05:12 AM
01-28-2002 05:12 AM
Re: Getting network card MTU using ioctl
I want to do it from within my C++ code using ioctl sys call.
Thanks,
Prakash
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2002 07:16 AM
01-28-2002 07:16 AM
Re: Getting network card MTU using ioctl
The Document
http://www.docs.hp.com/hpux/pdf/B2355-90669.pdf
has a structure called hw_ift_t which contains mtu size.
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2002 07:23 AM
01-28-2002 07:23 AM
SolutionI suggest using DLPI
http://docs.hp.com/hpux/onlinedocs/B2355-90139/B2355-90139.html
The DL_HP_PPA_ACK primitive is used to query the networking information of the card.
I suggest to aviod using ioctl system call,because
DLPI is an industry standard
and use only one devices file,
But if you want to use it
try this:
LLA to DLPI migration guide
ioctl requests
http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90138/B2355-90138_top.html&con=/hpux/onlinedocs/B2355-90138/00/00/7-con.html&toc=/hpux/onlinedocs/B2355-90138/00/00/7-toc.html&searchterms=DLPI&queryid=20020128-071716
Sample program:
http://docs.hp.com/cgi-bin/onlinedocs.py?mpn=B2355-90138&service=hpux&path=../B2355-90138/00/00/12&title=LLA%20to%20DLPI%20Migration%20Guide
Regards:
Paul