bump and patch; ifmedia64

This commit is contained in:
sthen 2015-09-11 15:13:35 +00:00
parent c0f440d09c
commit 4dcb665680
2 changed files with 23 additions and 2 deletions

View File

@ -1,9 +1,9 @@
# $OpenBSD: Makefile,v 1.16 2015/07/15 17:45:12 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.17 2015/09/11 15:13:35 sthen Exp $
COMMENT = link advertisement (LLDP/CDP etc) daemon
DISTNAME = ladvd-1.0.4
REVISION = 1
REVISION = 2
CATEGORIES = net
HOMEPAGE = http://blinkenlights.nl/software/ladvd/

View File

@ -0,0 +1,21 @@
$OpenBSD: patch-src_netif_c,v 1.1 2015/09/11 15:13:35 sthen Exp $
--- src/netif.c.orig Fri Sep 11 09:11:24 2015
+++ src/netif.c Fri Sep 11 09:11:49 2015
@@ -1068,7 +1068,7 @@ int netif_media(struct netif *netif) {
#if HAVE_NET_IF_MEDIA_H
struct ifmediareq ifmr = {};
- int *media_list;
+ uint64_t *media_list;
#endif /* HAVE_HAVE_NET_IF_MEDIA_H */
if (sockfd == -1)
@@ -1219,7 +1219,7 @@ int netif_media(struct netif *netif) {
return(EXIT_FAILURE);
}
- media_list = my_malloc(ifmr.ifm_count * sizeof(int));
+ media_list = my_malloc(ifmr.ifm_count * sizeof(uint64_t));
ifmr.ifm_ulist = media_list;
if (ioctl(sockfd, SIOCGIFMEDIA, (caddr_t)&ifmr) < 0) {