How to get structs described in <inet/mib2.h> ?

How to get structs described in <inet/mib2.h> ?

Post by Vic Abe » Sun, 23 Oct 1994 00:04:57




>|> I want to build a C module which gets some of the informations stored
>|> in structures mib2_ip* described in <inet/mib2.h> on Solaris 2.3
>|> Does anyone how to do that ?

>If you get any replies, would you send to me too?  Im interested as well.

You do this with streams messages to /dev/ip.  After opening a
stream to /dev/ip, you may also have to push arp, tcp, and udp
modules on the stack in the proper order.  You then send a
T_OPTMGMT_REQ stream message and get back a reply that has a control
section for one <inet/mib2.h> structure.