diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2014-10-15 12:55:45 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2014-10-15 13:17:10 +0000 |
commit | fae75e67314abd6fa9ee9cc170e219fa515a7076 (patch) | |
tree | 35948a3dd9a848a26557c72fae39f9e7f5250fdb /testing/macchanger/fix-caddr_t.patch | |
parent | 25f93960b78c58569aeb56ec7fd1bd354425f280 (diff) | |
download | aports-fae75e67314abd6fa9ee9cc170e219fa515a7076.tar.bz2 aports-fae75e67314abd6fa9ee9cc170e219fa515a7076.tar.xz |
testing/macchanger: new aport
An utility for viewing/manipulating the MAC address of network interfaces
https://github.com/alobbs/macchanger
fixes #2536
Diffstat (limited to 'testing/macchanger/fix-caddr_t.patch')
-rw-r--r-- | testing/macchanger/fix-caddr_t.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/testing/macchanger/fix-caddr_t.patch b/testing/macchanger/fix-caddr_t.patch new file mode 100644 index 0000000000..c5fe5f6e16 --- /dev/null +++ b/testing/macchanger/fix-caddr_t.patch @@ -0,0 +1,13 @@ +https://github.com/alobbs/macchanger/issues/14 + +--- ./src/netinfo.c.orig ++++ ./src/netinfo.c +@@ -113,7 +113,7 @@ + epa->size = IFHWADDRLEN; + + memcpy(&req, &(net->dev), sizeof(struct ifreq)); +- req.ifr_data = (caddr_t)epa; ++ req.ifr_data = (void *)epa; + + if (ioctl(net->sock, SIOCETHTOOL, &req) < 0) { + perror ("[ERROR] Could not read permanent MAC"); |