From: gsoares Date: Tue, 7 Jan 2014 14:58:40 +0000 (+0000) Subject: use IF_NAMESIZE as size of buffer for interface name X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=330a54f4ec7f6da604dbc1acec1d8b5d3f34851d;p=openbsd use IF_NAMESIZE as size of buffer for interface name OK mpi@ deraadt@ --- diff --git a/usr.sbin/rtadvd/rtadvd.h b/usr.sbin/rtadvd/rtadvd.h index 745dbd17251..e41721a6e96 100644 --- a/usr.sbin/rtadvd/rtadvd.h +++ b/usr.sbin/rtadvd/rtadvd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: rtadvd.h,v 1.16 2013/06/01 01:30:54 brad Exp $ */ +/* $OpenBSD: rtadvd.h,v 1.17 2014/01/07 14:58:40 gsoares Exp $ */ /* $KAME: rtadvd.h,v 1.20 2002/05/29 10:13:10 itojun Exp $ */ /* @@ -140,7 +140,7 @@ struct rainfo { int ifindex; int advlinkopt; /* bool: whether include link-layer addr opt */ struct sockaddr_dl *sdl; - char ifname[16]; + char ifname[IF_NAMESIZE]; int phymtu; /* mtu of the physical interface */ /* Router configuration variables */