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