Skip to content

AF_INET #9

Description

@marcotuna

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions