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

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel

Reply via email to