diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2019-03-28 15:23:53 -0700 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2019-03-28 15:23:53 -0700 |
commit | b65feeba85c19b07267014dd329b6072dacaefd9 (patch) | |
tree | cfad9ec45478719004310abc42abf630e6710fdc /osdep | |
parent | 6914425b03abe39b413198374fe029c2e05a937e (diff) | |
download | infinitytier-b65feeba85c19b07267014dd329b6072dacaefd9.tar.gz infinitytier-b65feeba85c19b07267014dd329b6072dacaefd9.zip |
One more AARCH64 fix.
Diffstat (limited to 'osdep')
-rw-r--r-- | osdep/LinuxNetLink.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/osdep/LinuxNetLink.cpp b/osdep/LinuxNetLink.cpp index dad72c8b..90b3d53a 100644 --- a/osdep/LinuxNetLink.cpp +++ b/osdep/LinuxNetLink.cpp @@ -362,7 +362,6 @@ void LinuxNetLink::_routeDeleted(struct nlmsghdr *nlp) void LinuxNetLink::_linkAdded(struct nlmsghdr *nlp) { - char mac[18] = {0}; char mac_bin[6] = {0}; unsigned int mtu = 0; char ifname[IFNAMSIZ] = {0}; @@ -378,7 +377,6 @@ void LinuxNetLink::_linkAdded(struct nlmsghdr *nlp) switch(rtap->rta_type) { case IFLA_ADDRESS: ptr2 = (unsigned char*)RTA_DATA(rtap); - snprintf(mac,18,"%02x:%02x:%02x:%02x:%02x:%02x",(unsigned int)ptr2[0],(unsigned int)ptr2[1],(unsigned int)ptr2[2],(unsigned int)ptr2[3],(unsigned int)ptr2[4],(unsigned int)ptr2[5]); memcpy(mac_bin, ptr, 6); break; case IFLA_IFNAME: @@ -400,15 +398,10 @@ void LinuxNetLink::_linkAdded(struct nlmsghdr *nlp) memcpy(entry.mac_bin, mac_bin, 6); entry.mtu = mtu; } - -#ifdef ZT_TRACE - //fprintf(stderr, "Link Added: %s mac: %s, mtu: %d\n", ifname, mac, mtu); -#endif } void LinuxNetLink::_linkDeleted(struct nlmsghdr *nlp) { - char mac[18] = {0}; unsigned int mtu = 0; char ifname[40] = {0}; @@ -423,8 +416,6 @@ void LinuxNetLink::_linkDeleted(struct nlmsghdr *nlp) switch(rtap->rta_type) { case IFLA_ADDRESS: ptr2 = (unsigned char*)RTA_DATA(rtap); - snprintf(mac, 20, "%02x:%02x:%02x:%02x:%02x:%02x", - ptr2[0], ptr2[1], ptr2[2], ptr2[3], ptr2[4], ptr2[5]); break; case IFLA_IFNAME: ptr = (const char*)RTA_DATA(rtap); @@ -436,10 +427,6 @@ void LinuxNetLink::_linkDeleted(struct nlmsghdr *nlp) } } -#ifdef ZT_TRACE - //fprintf(stderr, "Link Deleted: %s mac: %s, mtu: %d\n", ifname, mac, mtu); -#endif - { Mutex::Lock l(_if_m); if(_interfaces.contains(ifip->ifi_index)) { |