Re: [PATCH] rtnetlink.7: ifa_index is an unsigned int

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12/29/19 7:25 PM, Antonin Décimo wrote:
> See include/linux/if_addr.h.

Thanks, Antonin. Patch applied.

Cheers,

Michael

> struct ifaddrmsg {
>     __u8        ifa_family;
>     __u8        ifa_prefixlen;    /* The prefix length        */
>     __u8        ifa_flags;    /* Flags            */
>     __u8        ifa_scope;    /* Address scope        */
>     __u32        ifa_index;    /* Link index            */
> };
> 
> ---
>  man7/rtnetlink.7 | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/man7/rtnetlink.7 b/man7/rtnetlink.7
> index 0be59a7..6260545 100644
> --- a/man7/rtnetlink.7
> +++ b/man7/rtnetlink.7
> @@ -134,7 +134,7 @@ struct ifaddrmsg {
>      unsigned char ifa_prefixlen; /* Prefixlength of address */
>      unsigned char ifa_flags;     /* Address flags */
>      unsigned char ifa_scope;     /* Address scope */
> -    int           ifa_index;     /* Interface index */
> +    unsigned int  ifa_index;     /* Interface index */
>  };
>  .EE
>  .IP
> 


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/



[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux