1*9289f547SJohn Baldwin.\" 2*9289f547SJohn Baldwin.\" Copyright (c) 2016 John Baldwin <jhb@FreeBSD.org> 3*9289f547SJohn Baldwin.\" 4*9289f547SJohn Baldwin.\" Redistribution and use in source and binary forms, with or without 5*9289f547SJohn Baldwin.\" modification, are permitted provided that the following conditions 6*9289f547SJohn Baldwin.\" are met: 7*9289f547SJohn Baldwin.\" 1. Redistributions of source code must retain the above copyright 8*9289f547SJohn Baldwin.\" notice, this list of conditions and the following disclaimer. 9*9289f547SJohn Baldwin.\" 2. Redistributions in binary form must reproduce the above copyright 10*9289f547SJohn Baldwin.\" notice, this list of conditions and the following disclaimer in the 11*9289f547SJohn Baldwin.\" documentation and/or other materials provided with the distribution. 12*9289f547SJohn Baldwin.\" 13*9289f547SJohn Baldwin.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 14*9289f547SJohn Baldwin.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 15*9289f547SJohn Baldwin.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 16*9289f547SJohn Baldwin.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 17*9289f547SJohn Baldwin.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18*9289f547SJohn Baldwin.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19*9289f547SJohn Baldwin.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20*9289f547SJohn Baldwin.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21*9289f547SJohn Baldwin.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22*9289f547SJohn Baldwin.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23*9289f547SJohn Baldwin.\" SUCH DAMAGE. 24*9289f547SJohn Baldwin.\" 25*9289f547SJohn Baldwin.Dd October 17, 2016 26*9289f547SJohn Baldwin.Dt sysdecode_sockopt_name 3 27*9289f547SJohn Baldwin.Os 28*9289f547SJohn Baldwin.Sh NAME 29*9289f547SJohn Baldwin.Nm sysdecode_sockopt_name 30*9289f547SJohn Baldwin.Nd lookup name of socket option 31*9289f547SJohn Baldwin.Sh LIBRARY 32*9289f547SJohn Baldwin.Lb libsysdecode 33*9289f547SJohn Baldwin.Sh SYNOPSIS 34*9289f547SJohn Baldwin.In sysdecode.h 35*9289f547SJohn Baldwin.Ft const char * 36*9289f547SJohn Baldwin.Fn sysdecode_sockopt_name "int level" "int optname" 37*9289f547SJohn Baldwin.Sh DESCRIPTION 38*9289f547SJohn BaldwinThe 39*9289f547SJohn Baldwin.Fn sysdecode_sockopt_name 40*9289f547SJohn Baldwinfunction returns a text description of the socket option name passed in the 41*9289f547SJohn Baldwin.Fa optname 42*9289f547SJohn Baldwinargument to 43*9289f547SJohn Baldwin.Xr getsockopt 2 . 44*9289f547SJohn Baldwin.Fn sysdecode_sockopt_name 45*9289f547SJohn Baldwintakes the socket option 46*9289f547SJohn Baldwin.Fa level 47*9289f547SJohn Baldwinas well as the option name to uniquely identify the option. 48*9289f547SJohn Baldwin.Sh SEE ALSO 49*9289f547SJohn Baldwin.Xr sysdecode_sockopt_level 3 50*9289f547SJohn Baldwin.Sh BUGS 51*9289f547SJohn BaldwinSocket option levels and names are protocol-specific. 52*9289f547SJohn BaldwinBoth 53*9289f547SJohn Baldwin.Fn sysdecode_sockopt_level 54*9289f547SJohn Baldwinand 55*9289f547SJohn Baldwin.Fn sysdecode_sockopt_name 56*9289f547SJohn Baldwinshould possibly accept the protocol family as an additional argument. 57