Skip to contentSkip to conversation

Add a FIXME about alternative ipv6 alternative ABI

DISCUSSION Stéphane Aulery 2 participants 3 messages Mar 3, 2015 – Mar 5, 2015 2 messages not in the archive Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

Hello,

In writing the previous patch I noted the following feature:

Pv6 header /usr/include/linux/in.h has an alternative at /usr/include/bits/in.h in specific condition (cf. /usr/include/bits/in.h).

Is it good to mention it in ipv6.7 and how?

Regards,

Signature · 5 lines
Stéphane Aulery
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#2 lore raw
In reply to a message not in the archive

Hi Stéphane,

Quoted 9 lines · Stéphane Aulery

Hello,

In writing the previous patch I noted the following feature:

Pv6 header /usr/include/linux/in.h has an alternative at /usr/include/bits/in.h in specific condition (cf. /usr/include/bits/in.h).

Is it good to mention it in ipv6.7 and how?

Sorry -- I don't really understand what you mean. Could you say more?

Thanks,

Michael
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#4 lore raw
In reply to a message not in the archive

Hi Michael,

Quoted 10 lines · Michael Kerrisk (man-pages)
Quoted 6 lines · Stéphane Aulery

Pv6 header /usr/include/linux/in.h has an alternative at /usr/include/bits/in.h in specific condition (cf. /usr/include/bits/in.h).

Is it good to mention it in ipv6.7 and how?

Sorry -- I don't really understand what you mean. Could you say more?

The constant SOL_IPV6 is defined in a file libc6:
https://sourceware.org/git/?p=glibc.git;a=blob;f=bits/in.h;hb=HEAD

The Debian version of this file contains the following warning:

#ifndef _NETINET_IN_H

# error "Never use <bits/in.h> directly; include <netinet/in.h>
# instead."
#endif

/* If the application has already included linux/in6.h from a linux-based
kernel then we will not define the IPv6 IPPROTO_* defines, in6_addr (nor the defines), sockaddr_in6, or ipv6_mreq. The ABI used by the linux-kernel and glibc match exactly. Neither the linux kernel nor glibc should break this ABI without coordination. */
#ifdef _UAPI_LINUX_IN6_H
/* This is not quite the same API since the kernel always defines s6_addr16 and
s6_addr32. This is not a violation of POSIX since POSIX says "at least the following member" and that holds true. */

# define __USE_KERNEL_IPV6_DEFS
#endif

It is like asking whether to add a note to ipv6.7, what you want to do.

Regards,

Signature · 5 lines
Stéphane Aulery
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html