Re: [Linuxptp-devel] [PATCHv2 3/9] rtnl: update rtgenmsg to ifinfomsg when request link info
PTP IEEE 1588 stack for Linux
Brought to you by:
rcochran
From: Richard C. <ric...@gm...> - 2017-08-05 07:40:56
|
On Sat, Jul 15, 2017 at 09:33:05PM +0800, Hangbin Liu wrote: > diff --git a/rtnl.h b/rtnl.h > index f1871f2..b4db40e 100644 > --- a/rtnl.h > +++ b/rtnl.h > @@ -31,10 +31,11 @@ int rtnl_close(int fd); > > /** > * Request the link status from the kernel. > - * @param fd A socket obtained via rtnl_open(). > - * @return Zero on success, non-zero otherwise. > + * @param fd A socket obtained via rtnl_open(). > + * @param index An interface index. Please document the effect of passing index=0. > + * @return Zero on success, non-zero otherwise. > */ > -int rtnl_link_query(int fd); > +int rtnl_link_query(int fd, unsigned int index); > > /** > * Read kernel messages looking for a link up/down events. > -- > 2.5.5 Thanks, Richard |