> > I want to perform following operations in C/C++ - > > - given a set of interfaces, configure IPMP group containing those > interfaces > > That definitely will need to be done through ifconfig/ipadm. > > > - monitor IPMP group for failure - take some action on failure > > This can be done through routing sockets by monitoring the IFF_FAILED flag > on IFF_IPMP interfaces.
One note: due to limitations in the routing socket message format, the IFF_FAILED and IFF_IPMP flags will not be visible in rtm_flags. As such, you'll need to use the RTM_IFINFO message as hint that you should call SIOCGLIFFLAGS and check to see if the flags have changed. > > - if possible, move one virtual IP address from one active interface to > > another one the same IPMP group > > The kernel has control over which IP addresses are bound to which active > interfaces. Thus, if you have more than one active interface, you cannot > explicitly control this. Further, note that in the future the kernel may > elect to rebind at any time -- e.g., based on monitoring the load across > the active interfaces. > > > Thanks and Regards, > > Paresh Bafna > > > > > > -----Original Message----- > > From: Peter Memishian [mailto:peter.memish...@oracle.com] > > Sent: Tuesday, July 24, 2012 10:58 PM > > To: Paresh Bafna > > Cc: peter.memish...@oracle.com; networking-discuss@opensolaris.org > > Subject: RE: [networking-discuss] IPMP - Programmatic interface > > > > > > > I am looking for stable/supported interface for configuring and > > > monitoring IPMP groups from C/C++ program. > > > > If you could be more specific I may be able to suggest a stable/supported > > way to do what you want in C/C++. > > > > > Looks like I will have to move towards CLI interface. > > > > > > Thanks all for help. > > > > > > Thanks and Regards, > > > Paresh Bafna > > > > > > > > > -----Original Message----- > > > From: Peter Memishian [mailto:peter.memish...@oracle.com] > > > Sent: Friday, July 20, 2012 10:06 PM > > > To: Paresh Bafna > > > Cc: networking-discuss@opensolaris.org > > > Subject: re: [networking-discuss] IPMP - Programmatic interface > > > > > > > > > > I read about libipmp library which provides programmatic > (ioctl/system > > > > calls) interface to configure and monitor IPMP groups. > > > > > > > > However I am not able to find any documentation or library itself > for use. > > > > > > > > Please provide more info on libipmp. > > > > > > As Jim said, this is a private/unstable library. If you write code > that > > > uses it, the only guarantee is that your code will break in the future > :-) > > > > > > As an aside: libipmp does not configure IPMP. For S11 FCS, that > > > functionality lives mostly in another private/unstable library > (libipadm). > > > Further, the programmatic mechanism used to configure IPMP is also > subject > > > to change at any time. The only stable configuration mechanisms are > the > > > command-line utilities. For monitoring, tracking the IFF_* flags is > > > stable and will cover the basics; beyond that you'd need to use > ipmpstat's > > > parsable mode. > > > > > > Hope this helps, > > > -- > > > meem > > > > -- > > meem > > -- > meem -- meem _______________________________________________ networking-discuss mailing list networking-discuss@opensolaris.org