Operating System - HP-UX
1752584 Members
4183 Online
108788 Solutions
New Discussion

how to get if_msghdr(net/if.h) info by system call

 
agnewee
New Member

how to get if_msghdr(net/if.h) info by system call

I want to get the traffic information of the specified network card. After consulting the relevant files, I found that the if_msghdr structure has the information I want. But I can't find a  method or system call that can return information about this structure. Can someone help me?

1 REPLY 1
Saajan_d
HPE Pro

Re: how to get if_msghdr(net/if.h) info by system call

What kind of traffic information you require. Kindly inform me. kindly provide what you are looking for in the file and what you are expecting.

the traffic flow and other informations can be see with the below command.

# netstat -s 
# netstat -inv
and the details of the interfaces can be found with below command.
# /usr/sbin/nwmgr -g --st extmib -c <lan[n]>

Apart from this what specifically you require. Kindly inform.

 

 

 

 


I am a HPE Employee

Accept or Kudo