View | Details | Raw Unified | Return to bug 22198 | Differences between
and this patch

Collapse All | Expand All

(-)inet.3 (-3 / +18 lines)
Lines 114-123 Link Here
114
.Pp
114
.Pp
115
The function
115
The function
116
.Fn inet_ntop
116
.Fn inet_ntop
117
converts an address from network format (usually a
117
converts an address from network format specified by
118
.Fa *src
119
(usually a
118
.Ft struct in_addr
120
.Ft struct in_addr
119
or some other binary form, in network byte order) to presentation format
121
or some other binary form, in network byte order) to presentation format in
120
(suitable for external display purposes).
122
.Fa *dst
123
(suitable for external display purposes). The max size of 
124
.Fa *dst
125
is specified by 
126
.Fa size
121
It returns NULL if a system error occurs (in which case,
127
It returns NULL if a system error occurs (in which case,
122
.Va errno
128
.Va errno
123
will have been set), or it returns a pointer to the destination string.
129
will have been set), or it returns a pointer to the destination string.
Lines 221-226 Link Here
221
and
227
and
222
.Fn inet_network
228
.Fn inet_network
223
for malformed requests.
229
for malformed requests.
230
.Sh ERRORS
231
The
232
.Fn inet_pton
233
call fails if:
234
.Bl -tag -width Er
235
.It Bq Er EINVAL
236
.Fa size
237
was not large enough to store the presentation form of the address.
238
.El
224
.Sh SEE ALSO
239
.Sh SEE ALSO
225
.Xr addr2ascii 3 ,
240
.Xr addr2ascii 3 ,
226
.Xr gethostbyname 3 ,
241
.Xr gethostbyname 3 ,

Return to bug 22198