1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
#ifndef _INET_H_ #define _INET_H_ #include <netinet/in.h> #define INET_ERR_ERRNO 1 #define INET_ERR_OTHER 2 struct intfInfo { char device[10]; int isPtp, isUp; int set, manuallySet; struct in_addr ip, netmask, broadcast, network; struct in_addr bootServer; char * bootFile; int bootProto; }; int configureNetDevice(struct intfInfo * intf); #endif /* _INET_H_ */