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
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.");