Linux-man Archive on lore.kernel.org
 help / color / Atom feed
* [PATCH] rtnetlink.7: ifa_index is an unsigned int
@ 2019-12-29 18:25 Antonin Décimo
  2019-12-30 18:47 ` Michael Kerrisk (man-pages)
  0 siblings, 1 reply; 2+ messages in thread
From: Antonin Décimo @ 2019-12-29 18:25 UTC (permalink / raw)
  To: mtk.manpages; +Cc: linux-man

See include/linux/if_addr.h.

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
-- 
2.24.1

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] rtnetlink.7: ifa_index is an unsigned int
  2019-12-29 18:25 [PATCH] rtnetlink.7: ifa_index is an unsigned int Antonin Décimo
@ 2019-12-30 18:47 ` Michael Kerrisk (man-pages)
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Kerrisk (man-pages) @ 2019-12-30 18:47 UTC (permalink / raw)
  To: Antonin Décimo; +Cc: mtk.manpages, linux-man

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/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-29 18:25 [PATCH] rtnetlink.7: ifa_index is an unsigned int Antonin Décimo
2019-12-30 18:47 ` Michael Kerrisk (man-pages)

Linux-man Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-man/0 linux-man/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-man linux-man/ https://lore.kernel.org/linux-man \
		linux-man@vger.kernel.org
	public-inbox-index linux-man

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-man


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git