summaryrefslogtreecommitdiff
path: root/netspeed/src/backend.h
diff options
context:
space:
mode:
authorRobert Antoni Buj Gelonch <[email protected]>2020-07-29 14:26:53 +0200
committerGitHub <[email protected]>2020-07-29 14:26:53 +0200
commit5c6709dbb448bb24eecd5f50bea1a386b9769fd7 (patch)
tree2e92f3d843ddc1296c3c0d8b18dacabb74fbd574 /netspeed/src/backend.h
parentc7df8ffb512c8bfafdce4ac55f1881addfc89d04 (diff)
downloadmate-applets-5c6709dbb448bb24eecd5f50bea1a386b9769fd7.tar.bz2
mate-applets-5c6709dbb448bb24eecd5f50bea1a386b9769fd7.tar.xz
Netspeed kernel warning (#510)
* netspeed: Fix attribute type 6 has an invalid length warning - and fix a typo
Diffstat (limited to 'netspeed/src/backend.h')
-rw-r--r--netspeed/src/backend.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/netspeed/src/backend.h b/netspeed/src/backend.h
index c4d16091..b0e79704 100644
--- a/netspeed/src/backend.h
+++ b/netspeed/src/backend.h
@@ -37,7 +37,7 @@
#define SIOCGIWNAME 0x8B01 /* get name == wireless protocol */
#define SIOCGIWENCODE 0x8B2B /* get encoding token & mode */
-#define ETH_ALEN 8
+#define ETH_ALEN 6
#define ETH_LEN 20
#define MAX_FORMAT_SIZE 15
@@ -60,7 +60,7 @@ typedef struct {
guint32 ip;
guint32 netmask;
guint32 ptpip;
- guint8 hwaddr [ETH_ALEN];
+ guint8 hwaddr [8]; /* EUI-48 or EUI-64 */
guint8 ipv6 [16];
char *essid;
gboolean up;