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