Access if_data64 structure in if_var.h file

I have been using ifaddrs and if_var.h file to get the data used by the iOS device. However , if_data structure has two members ifi_ibytes and ifi_obytes which return the data in u_int32_t datatype which makes the counters to reset after approximately 4 gb (filed a bug as well : https://bugreport.apple.com/problem/viewproblem). There is another structure named if_data64 inside the if_var.h file that is supposed to return the same ifi_ibytes and ifi_obytes in u_int64_t datatyoe . However , when I try to use that structure , I only get the garbage value . Can anyone assist in understanding the two strucures and how and where to use them respectively ?

Replies

Access

if_data64 structure
in
if_var.h
file

I responded to this on your other thread.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"