on a raspberry pi 2 B that has FreeBSD 11.0-current on it, I need to have some kind of a network interface created (meaning that if for example
and to do just that, I need ifnet and other structures that are defined in if_var.h header. so I include this header in my program, but when I make the ( .c ) file, I get the following error:
one more thing to mention is that I even tested FreeBSD's usb_ethernet.c: I copy the ( .c ) file and its make file from their original directory to some other directory, and when I make it to see if this FreeBSD original driver can be compiled again exactly the same error appears and the point is that, this problem does not exist in amd64 architecture.
what do you think? any ideas, solutions?
ifconfig
is typed, my network interface and its options must be shown alongside lo0 & ue0 ).and to do just that, I need ifnet and other structures that are defined in if_var.h header. so I include this header in my program, but when I make the ( .c ) file, I get the following error:
Code:
In file included from cc2530.c:24:
In file included from /sys/net/if_var.h:74:
In file included from /sys/sys/buf_ring.h:33:
./machine/cpu.h:48:10: error : implicit declaration of function 'cp15_pmccntr_get' is invalid ...
one more thing to mention is that I even tested FreeBSD's usb_ethernet.c: I copy the ( .c ) file and its make file from their original directory to some other directory, and when I make it to see if this FreeBSD original driver can be compiled again exactly the same error appears and the point is that, this problem does not exist in amd64 architecture.
what do you think? any ideas, solutions?