From 330a54f4ec7f6da604dbc1acec1d8b5d3f34851d Mon Sep 17 00:00:00 2001 From: gsoares Date: Tue, 7 Jan 2014 14:58:40 +0000 Subject: [PATCH] use IF_NAMESIZE as size of buffer for interface name OK mpi@ deraadt@ --- usr.sbin/rtadvd/rtadvd.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 */ -- 2.20.1