I am working with objective c and have successfully developed apps for iOS . Currently , I am working with using this file called if_var.h
file . There are two structures inside this file named if_data
and if_data64
which have same members and definition except for their return types. When I access if_data
structure , everything works fine and I wanted to know how can I access the ia_data64
structure as it returns the data in u_int64_t format ! can anyone help ?
Asked
Active
Viewed 112 times
1

AnxiousMan
- 578
- 2
- 8
- 25
-
can you post some code for both structure so can get idea how you are calling this ? – CodeChanger Feb 28 '17 at 06:57
-
http://stackoverflow.com/a/8014012/6033431 refer this post . I am analysing the data used . And it works fine . However if you can see this - https://opensource.apple.com/source/xnu/xnu-1456.1.26/bsd/net/if_var.h , you ll see that there are two structures. I want to access the second one – AnxiousMan Feb 28 '17 at 07:04
-
@CodeChanger , Should I provide you with anymore details ? – AnxiousMan Feb 28 '17 at 08:45
-
No its enough for me but what my next question what you need to achieve by this structure ? where actually you are using this one ? – CodeChanger Feb 28 '17 at 09:00
-
The first one returns u_int32_t. And the counter resets after 4 gb . So I want to access the second structure so that it returns u_int64_t and the counter doesn't overflow. Understanding ? – AnxiousMan Feb 28 '17 at 09:24