node-iptrie icon indicating copy to clipboard operation
node-iptrie copied to clipboard

AF_INET

Open marcotuna opened this issue 7 years ago • 0 comments

Node Version: v8.8.1 Operating System: FreeBSD 11.1-RELEASE-p1

CXX(target) Release/obj.target/iptrie/src/iptrie.o
../src/iptrie.cc:87:25: error: field has incomplete type 'struct in6_addr'
        struct in6_addr addr6;
                        ^
../src/btrie.h:42:37: note: forward declaration of 'in6_addr'
void add_route_ipv6(btrie *, struct in6_addr *, unsigned char, void *);
                                    ^
../src/iptrie.cc:90:16: error: use of undeclared identifier 'AF_INET'
      family = AF_INET;
               ^
../src/iptrie.cc:93:18: error: use of undeclared identifier 'AF_INET6'
        family = AF_INET6;
                 ^
../src/iptrie.cc:103:18: error: use of undeclared identifier 'AF_INET'
      if(family==AF_INET) add_route_ipv4(&tree4, &a.addr4, prefix, baton);
                 ^
../src/iptrie.cc:112:25: error: field has incomplete type 'struct in6_addr'
        struct in6_addr addr6;
                        ^
../src/btrie.h:42:37: note: forward declaration of 'in6_addr'
void add_route_ipv6(btrie *, struct in6_addr *, unsigned char, void *);
                                    ^
../src/iptrie.cc:115:16: error: use of undeclared identifier 'AF_INET'
      family = AF_INET;
               ^
../src/iptrie.cc:118:18: error: use of undeclared identifier 'AF_INET6'
        family = AF_INET6;
                 ^
../src/iptrie.cc:124:18: error: use of undeclared identifier 'AF_INET'
      if(family==AF_INET) return del_route_ipv4(&tree4, &a.addr4, prefix, delete_baton);
                 ^
../src/iptrie.cc:133:25: error: field has incomplete type 'struct in6_addr'
        struct in6_addr addr6;
                        ^
../src/btrie.h:42:37: note: forward declaration of 'in6_addr'
void add_route_ipv6(btrie *, struct in6_addr *, unsigned char, void *);
                                    ^
../src/iptrie.cc:136:16: error: use of undeclared identifier 'AF_INET'
      family = AF_INET;
               ^
../src/iptrie.cc:139:18: error: use of undeclared identifier 'AF_INET6'
        family = AF_INET6;
                 ^
../src/iptrie.cc:145:18: error: use of undeclared identifier 'AF_INET'
      if(family==AF_INET) return (obj_baton_t *)find_bpm_route_ipv4(&tree4, &a.addr4, &pl);
                 ^
../src/iptrie.cc:181:33: warning: 'ToUint32' is deprecated [-Wdeprecated-declarations]
      int prefix_len = args[1]->ToUint32()->Value();
                                ^
/root/.node-gyp/8.8.1/include/node/v8.h:9737:22: note: 'ToUint32' has been explicitly marked deprecated here
Local<Uint32> Value::ToUint32() const {
                     ^
../src/iptrie.cc:210:33: warning: 'ToUint32' is deprecated [-Wdeprecated-declarations]
      int prefix_len = args[1]->ToUint32()->Value();
                                ^
/root/.node-gyp/8.8.1/include/node/v8.h:9737:22: note: 'ToUint32' has been explicitly marked deprecated here
Local<Uint32> Value::ToUint32() const {
                     ^
2 warnings and 12 errors generated

marcotuna avatar Nov 15 '17 18:11 marcotuna