o IFNAMSIZ does include the trailing \0.

Approved by:	andre

o Document net.inet.icmp.reply_src.
This commit is contained in:
Maxim Konovalov 2004-05-07 01:24:53 +00:00
parent af7cd0c521
commit d0946241ac
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=129019
2 changed files with 6 additions and 1 deletions

View file

@ -132,6 +132,11 @@ Defaults to false.
.Pq Vt boolean
Enable/disable ICMP replies received via broadcast or multicast.
Defaults to false.
.It Va reply_src
.Pq Vt str
An interface name used for the ICMP reply source in reponse to packets
which are not directly addressed to us.
By default continue with normal source selection.
.El
.Sh ERRORS
A socket operation may fail with one of the following errors returned:

View file

@ -106,7 +106,7 @@ static int icmplim_output = 1;
SYSCTL_INT(_net_inet_icmp, OID_AUTO, icmplim_output, CTLFLAG_RW,
&icmplim_output, 0, "");
static char reply_src[IFNAMSIZ+1];
static char reply_src[IFNAMSIZ];
SYSCTL_STRING(_net_inet_icmp, OID_AUTO, reply_src, CTLFLAG_RW,
&reply_src, IFNAMSIZ, "icmp reply source for non-local packets.");