System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

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

 
agnewee
Occasional Visitor

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
Visitor

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