[libgtop] Fix hardware address retrieval on OpenBSD.
- From: Jasper Lievisse Adriaanse <jasperla src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgtop] Fix hardware address retrieval on OpenBSD.
- Date: Wed, 22 Jun 2011 15:27:16 +0000 (UTC)
commit aa1a6766f2ec7540f9e832de636b9465cd05bd8d
Author: Jasper Lievisse Adriaanse <jasper humppa nl>
Date: Wed Jun 22 17:26:55 2011 +0200
Fix hardware address retrieval on OpenBSD.
https://bugzilla.gnome.org/show_bug.cgi?id=652997
sysdeps/openbsd/netload.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/sysdeps/openbsd/netload.c b/sysdeps/openbsd/netload.c
index 88a6110..79c742b 100644
--- a/sysdeps/openbsd/netload.c
+++ b/sysdeps/openbsd/netload.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: netload.c,v 1.5 2011/06/20 11:48:39 jasper Exp $ */
+/* $OpenBSD: netload.c,v 1.4 2011/06/20 09:50:04 jasper Exp $ */
/* Copyright (C) 1998-99 Martin Baulig
This file is part of LibGTop 1.0.
@@ -190,7 +190,7 @@ glibtop_get_netload_p (glibtop *server, glibtop_netload *buf,
struct sockaddr_dl *dl = (struct sockaddr_dl *) sa;
memcpy (buf->hwaddress, LLADDR (dl), sizeof (buf->hwaddress));
- buf->flags |= GLIBTOP_NETLOAD_HWADDRESS;
+ buf->flags |= (1L << GLIBTOP_NETLOAD_HWADDRESS);
} else if (sa->sa_family == AF_INET) {
sin = (struct sockaddr_in *)sa;
buf->subnet = ifaddr.in.ia_netmask;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]