From: Alejandro Colomar Date: Sun, 23 Nov 2025 21:30:19 +0000 (+0100) Subject: man/man2const/{IPPROTO_IP,IP_HDRINCL}.2const: Split IP_HDRINCL from IPPROTO_IP(2const) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc09a0b515708b8dbca2e93bf68a18a831b4bc61;p=thirdparty%2Fman-pages.git man/man2const/{IPPROTO_IP,IP_HDRINCL}.2const: Split IP_HDRINCL from IPPROTO_IP(2const) Signed-off-by: Alejandro Colomar --- diff --git a/man/man2const/IPPROTO_IP.2const b/man/man2const/IPPROTO_IP.2const index 15517771a..06bf04f34 100644 --- a/man/man2const/IPPROTO_IP.2const +++ b/man/man2const/IPPROTO_IP.2const @@ -81,22 +81,8 @@ fail with the error .BR IP_DROP_SOURCE_MEMBERSHIP (2const) .TQ .BR IP_FREEBIND (2const) -.TP -.BR IP_HDRINCL " (since Linux 2.0)" -If enabled, -the user supplies an IP header in front of the user data. -Valid only for -.B SOCK_RAW -sockets; -see -.BR raw (7) -for more information. -When this flag is enabled, the values set by -.BR IP_OPTIONS , -.BR IP_TTL , -and -.B IP_TOS -are ignored. +.TQ +.BR IP_HDRINCL (2const) .TP .BR IP_LOCAL_PORT_RANGE " (since Linux 6.3)" Set or get the per-socket default local port range. @@ -380,7 +366,7 @@ socket option value as the message type. There is no conflict currently since the IP option with the same value as .B SCM_SECURITY is -.B IP_HDRINCL +.BR IP_HDRINCL (2const) and this is never used for a control message type. .TP .BR IP_PKTINFO " (since Linux 2.2)" diff --git a/man/man2const/IP_HDRINCL.2const b/man/man2const/IP_HDRINCL.2const new file mode 100644 index 000000000..008cc98f0 --- /dev/null +++ b/man/man2const/IP_HDRINCL.2const @@ -0,0 +1,48 @@ +.\" Copyright, the authors of the Linux man-pages project +.\" +.\" SPDX-License-Identifier: Linux-man-pages-copyleft +.\" +.TH IPPROTO_IP 2const (date) "Linux man-pages (unreleased)" +.SH NAME +IPPROTO_IP +\- +include a user-supplied IP header +.SH LIBRARY +Standard C library +.RI ( libc ,\~ \-lc ) +.SH SYNOPSIS +.nf +.BR "#include " " /* Definition of " IP* " constants */" +.B #include +.P +.BI int\~setsockopt(int\~ sockfd ,\~IPPROTO_IP,\~IP_HDRINCL, +.BI " const\~int\~*" enable ,\~sizeof(int)); +.fi +.SH DESCRIPTION +.TP +.BR IP_HDRINCL " (since Linux 2.0)" +If enabled, +the user supplies an IP header in front of the user data. +Valid only for +.B SOCK_RAW +sockets; +see +.BR raw (7) +for more information. +When this flag is enabled, the values set by +.BR IP_OPTIONS , +.BR IP_TTL , +and +.B IP_TOS +are ignored. +.SH ERRORS +See +.BR IPPROTO_IP (2const). +See +.BR setsockopt (2). +See +.BR ip (7). +.SH SEE ALSO +.BR IPPROTO_IP (2const), +.BR setsockopt (2), +.BR ip (7)