Re: Wrong protocol in IPV6_V6ONLY.2const

Alejandro Colomar <[email protected]> Sun, 21 Jun 2026 19:17:19 +0200
Newsgroups org.kernel.vger.linux-man
Message-ID <ajgcZCDV116tauEn@devuan>
Hi!

On 2026-06-21T18:00:20+0200, Phosit wrote:
> In the synopsis of "IPV6_V6ONLY.2const" the function signature uses
> `IPPROTO_IP`.  When using that the function seems to have no effect.  I
> think it should state `IPPROTO_IPV6`.

Thanks!  It seems a mistake introduced recently.  I've fixed it with
this commit:

	commit 3b2ac90b3518635966754ff83d703c5f6029ae74
	Author: Alejandro Colomar <[email protected]>
	Date:   2026-06-21 19:15:20 +0200

	    man/man2const/IPV6_V6ONLY.2const: $2 is IPPROTO_IPV6, not IPPROTO_IP
	    
	    Fixes: 07d5d5b62a8f (2025-12-02; "man/man2const/{IPPROTO_IPV6,IPV6_V6ONLY}.2const: Split IPV6_V6ONLY from IPPROTO_IPV6(2const)")
	    Reported-by: Phosit <[email protected]>
	    Signed-off-by: Alejandro Colomar <[email protected]>

	diff --git a/man/man2const/IPV6_V6ONLY.2const b/man/man2const/IPV6_V6ONLY.2const
	index bf8c9aeed560..4ade0db33371 100644
	--- a/man/man2const/IPV6_V6ONLY.2const
	+++ b/man/man2const/IPV6_V6ONLY.2const
	@@ -15,7 +15,7 @@ .SH SYNOPSIS
	 .BR "#include <netinet/in.h>" "  /* Definition of " IP* " constants */"
	 .B #include <sys/socket.h>
	 .P
	-.BI int\~setsockopt(int\~ sockfd ,\~IPPROTO_IP,\~IPV6_V6ONLY,
	+.BI int\~setsockopt(int\~ sockfd ,\~IPPROTO_IPV6,\~IPV6_V6ONLY,
	 .BI "               const\~int\~*" enable ,\~sizeof(int));
	 .fi
	 .SH DESCRIPTION


Have a lovely day!
Alex

-- 
<https://www.alejandro-colomar.es>
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEES7Jt9u9GbmlWADAi64mZXMKQwqkFAmo4HJ8ACgkQ64mZXMKQ
wqlZ4g/+IQ6ctkBTojjBS74ZSNsxqjiHCPEJwckU09bbyjrPwvAjV7MU1GhqH9AG
ycY64CVGAmKa2s/wPBGKFdc/O//XwBlUtOXp8uwi06psswBUcxRfW/Gq4g4Wp/U+
CuORfvyA3UFUFuimoCmvK/zG6Y3J3Vx46ecjyMC8QqFNj05FsJcMbYQLHPf3LASd
essltIFik0s637Vyetq4+9yXTIWa6Sz5cwDa20BMmK+57lEAKpumNyAd4o59tSee
hNQRgSZaeeF+4jHmYxfeHpZVrJRhKZi/uaJbc0XMMV2qUs1IpnWxyJjc4AfyRMin
Da1b9FtEH634PNG0pC2CCoXv40ZSuTrplLtO34VfIgx5BR/rQv9U5Ht1tdY7LSct
fWls2T3MEOkUxBRPiDadSmJSYxrSTlw/uaHfuX/IRlSHAv9Uz25OYL7ZoyRyyqsU
YPkBtm6W7cz8c3hkDHZJYMtDNFxKE/Ng1AWVqOnAy5mregT8wpE+iwqOkTpRC+gv
FRrtdoFzNyWO+/GdiI1LdonHtbQ4Z39K7zQiWAqhqun73i1Iw/fovwtBgJX5/PVE
wRxIU+3X/loj+qSatRT7E0gIslYSpNhP6KD60DkBA9KrleusUswPAyt3t8SNi19o
4yg5cFIDTSaNw9ydVRzODOO4E6/aLqoMtcgFfVnZoztjsHAK7dk=
=dD6x
-----END PGP SIGNATURE-----