Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add feature to drop or accept specific packet transmit over edge network interface by rules. #489

Merged
merged 6 commits into from
Nov 10, 2020

Conversation

joshuafc
Copy link
Contributor

@joshuafc joshuafc commented Nov 8, 2020

#412 #18

Traffic Restrictions

It is possible to drop or accept specific packet transmit over edge network interface by rules. Rules can be specify by (-R rule_str) multiple times.

Rule String Format

rule_str format: src_ip/len:[b_port,e_port],dst_ip/len:[s_port,e_port],TCP+/-,UDP+/-,ICMP+/-

ip/len indicate a cidr block, len can be ignore, means single ip (not cidr block) will be use in filter rule.

+,- after TCP,UDP,ICMP proto type indicate allow or drop packet of that proto. if any of above three proto missed, the rule will not take effect for that proto.

Ports range [s_port,e_port] can be instead by single port number. If not specify, [0,65535] will be used. Ports range include start_port and end_port.

examples:
192.168.1.5/32:[0,65535],192.168.0.0/24:[8081,65535],TCP-,UDP-,ICMP+
192.168.1.5:[0,65535],192.168.0.0/24:8000,ICMP+
192.168.1.5,192.168.0.7,TCP-,UDP-,ICMP- // packets by all proto of all ports from 192.158.1.5 to any ports of 192.168.0.7 will be dropped.

Multiple Rules

-R rule_str can be used multiple times to add multiple rules. Each -R rule_str add one rule. for example:

edge -c xxxx -k xxxx -a 192.168.100.5 -l xxx.xxx.xxx.xxx:1234 -r -R 192.168.1.5/32:[0,65535],192.168.0.0/24:[8081,65535],TCP-,UDP-,ICMP+ -R 192.168.1.5:[0,65535],192.168.0.0/24:8000,ICMP+ -R 192.168.1.5,192.168.0.7,TCP-

Matching Rules Priority

If multiple rules matching packet's ips and ports, the rule with smaller cidr block(smaller address space) will be selected. That means rules with larger len value has higher priority.

Actually, current implementation will add the len of src cidr and dst cidr of each matched rules as priority value, the rule with largest priority value will take effect.

Blocklist/Allowlist mode

Packets that cannot match any rule will be accepted by default. Users can add rules to block traffics.

This behavior can be change by add the rule : 0.0.0.0/0:[0,65535],0.0.0.0/0:[0,65535],TCP-,UDP-,ICMP-. Then all traffic will be dropped, users need add rules to allow traffics.

for example, -R 0.0.0.0/0,0.0.0.0/0,TCP-,UDP-,ICMP- -R 192.168.100.0/24,192.168.100.0/24,ICMP+ dropped all traffic, except ICMP traffics inside 192.168.100.0/24.

More complex behavior can be set with the feature of Matching Rules Priority.

@fcarli3
Copy link
Contributor

fcarli3 commented Nov 9, 2020

Please, see that -F is already used as option to provide the name of supernodes federation by cli on supernode. As we plan to merge supernode and edge some day (far away), we already want to keep command line parameters distinct. Maybe could you use -R (as "Rule") ?

@joshuafc
Copy link
Contributor Author

joshuafc commented Nov 9, 2020

Now -F is replaced with -R.

@lucaderi
Copy link
Member

lucaderi commented Nov 9, 2020

@fcarli3 I believe I can merge this code. Are you good with it?

@fcarli3
Copy link
Contributor

fcarli3 commented Nov 9, 2020

Yes, it is ok now. You can merge it.

@Logan007
Copy link
Contributor

Logan007 commented Nov 9, 2020

@joshuafc Impressive!

@lucaderi lucaderi merged commit a840aeb into ntop:dev Nov 10, 2020
@lucaderi
Copy link
Member

lucaderi commented Nov 10, 2020

Hi @joshuafc I had to disable your contribution with a #ifdef as it does not compile. I have made a few fixes but others have to be done. Please fix the issues and send me a PR but make sure your code compiles before submitting the PR

@joshuafc
Copy link
Contributor Author

@lucaderi , what is the build environment?
Codes build without errors, after add add_definitions(-DFILTER_TRAFFIC=1) to CMakeLists.txt,

I need deploy a environment same with your's.

Here is my environment:

zhoub@zhoub-honor:~$ gcc --version
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.12) 5.4.0 20160609
zhoub@zhoub-honor:~$ lsb_release -a
Description:	Ubuntu 16.04.7 LTS

Here is logs:

zhoub@zhoub-honor:~$ cd Codes/n2n
zhoub@zhoub-honor:~/Codes/n2n$ mkdir build
zhoub@zhoub-honor:~/Codes/n2n$ cd build/
zhoub@zhoub-honor:~/Codes/n2n/build$ cmake ..
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Build from git rev: 2.9.0.r753.24cfe79
-- Configuring done
-- Generating done
-- Build files have been written to: /home/zhoub/Codes/n2n/build
zhoub@zhoub-honor:~/Codes/n2n/build$ make 
/usr/local/bin/cmake -S/home/zhoub/Codes/n2n -B/home/zhoub/Codes/n2n/build --check-build-system CMakeFiles/Makefile.cmake 0
/usr/local/bin/cmake -E cmake_progress_start /home/zhoub/Codes/n2n/build/CMakeFiles /home/zhoub/Codes/n2n/build/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[1]: Entering directory '/home/zhoub/Codes/n2n/build'
make -f CMakeFiles/doc.dir/build.make CMakeFiles/doc.dir/depend
make[2]: Entering directory '/home/zhoub/Codes/n2n/build'
cd /home/zhoub/Codes/n2n/build && /usr/local/bin/cmake -E cmake_depends "Unix Makefiles" /home/zhoub/Codes/n2n /home/zhoub/Codes/n2n /home/zhoub/Codes/n2n/build /home/zhoub/Codes/n2n/build /home/zhoub/Codes/n2n/build/CMakeFiles/doc.dir/DependInfo.cmake --color=
Scanning dependencies of target doc
make[2]: Leaving directory '/home/zhoub/Codes/n2n/build'
make -f CMakeFiles/doc.dir/build.make CMakeFiles/doc.dir/build
make[2]: Entering directory '/home/zhoub/Codes/n2n/build'
[  2%] Generating doc/edge.8.gz
gzip -c /home/zhoub/Codes/n2n/edge.8 > /home/zhoub/Codes/n2n/build/doc/edge.8.gz
[  5%] Generating doc/supernode.1.gz
gzip -c /home/zhoub/Codes/n2n/supernode.1 > /home/zhoub/Codes/n2n/build/doc/supernode.1.gz
[  7%] Generating doc/n2n.7.gz
gzip -c /home/zhoub/Codes/n2n/n2n.7 > /home/zhoub/Codes/n2n/build/doc/n2n.7.gz
make[2]: Leaving directory '/home/zhoub/Codes/n2n/build'
[  7%] Built target doc
make -f CMakeFiles/n2n.dir/build.make CMakeFiles/n2n.dir/depend
make[2]: Entering directory '/home/zhoub/Codes/n2n/build'
cd /home/zhoub/Codes/n2n/build && /usr/local/bin/cmake -E cmake_depends "Unix Makefiles" /home/zhoub/Codes/n2n /home/zhoub/Codes/n2n /home/zhoub/Codes/n2n/build /home/zhoub/Codes/n2n/build /home/zhoub/Codes/n2n/build/CMakeFiles/n2n.dir/DependInfo.cmake --color=
Scanning dependencies of target n2n
make[2]: Leaving directory '/home/zhoub/Codes/n2n/build'
make -f CMakeFiles/n2n.dir/build.make CMakeFiles/n2n.dir/build
make[2]: Entering directory '/home/zhoub/Codes/n2n/build'
[ 10%] Building C object CMakeFiles/n2n.dir/src/n2n.c.o
/usr/bin/cc -DCMAKE_BUILD -DFILTER_TRAFFIC=1 -DGIT_RELEASE=\"2.9.0.r753.24cfe79\" -DHAVE_LIBCAP -DN2N_HAVE_AES -DN2N_OSNAME=\"Linux-4.15.0-122-generic\" -DN2N_VERSION=\"2.9.0.r753.24cfe79\" -DPACKAGE_OSNAME=\"Linux-4.15.0-122-generic\" -DPACKAGE_VERSION=\"2.9.0.r753.24cfe79\" -I/home/zhoub/Codes/n2n/. -I/home/zhoub/Codes/n2n/include  -Wall -Wshadow -Wpointer-arith -Wmissing-declarations -Wnested-externs   -o CMakeFiles/n2n.dir/src/n2n.c.o   -c /home/zhoub/Codes/n2n/src/n2n.c
/home/zhoub/Codes/n2n/src/n2n.c: In function ‘supernode2sock’:
/home/zhoub/Codes/n2n/src/n2n.c:240:15: warning: unused variable ‘sn_addr’ [-Wunused-variable]
     in_addr_t sn_addr;
               ^
[ 12%] Building C object CMakeFiles/n2n.dir/src/edge_utils.c.o
/usr/bin/cc -DCMAKE_BUILD -DFILTER_TRAFFIC=1 -DGIT_RELEASE=\"2.9.0.r753.24cfe79\" -DHAVE_LIBCAP -DN2N_HAVE_AES -DN2N_OSNAME=\"Linux-4.15.0-122-generic\" -DN2N_VERSION=\"2.9.0.r753.24cfe79\" -DPACKAGE_OSNAME=\"Linux-4.15.0-122-generic\" -DPACKAGE_VERSION=\"2.9.0.r753.24cfe79\" -I/home/zhoub/Codes/n2n/. -I/home/zhoub/Codes/n2n/include  -Wall -Wshadow -Wpointer-arith -Wmissing-declarations -Wnested-externs   -o CMakeFiles/n2n.dir/src/edge_utils.c.o   -c /home/zhoub/Codes/n2n/src/edge_utils.c
/home/zhoub/Codes/n2n/src/edge_utils.c: In function ‘update_supernode_reg’:
/home/zhoub/Codes/n2n/src/edge_utils.c:987:28: warning: unused variable ‘tmp’ [-Wunused-variable]
   struct peer_info *scan, *tmp;
                            ^
/home/zhoub/Codes/n2n/src/edge_utils.c:987:21: warning: unused variable ‘scan’ [-Wunused-variable]
   struct peer_info *scan, *tmp;
                     ^
/home/zhoub/Codes/n2n/src/edge_utils.c: In function ‘readFromIPSocket’:
/home/zhoub/Codes/n2n/src/edge_utils.c:2048:46: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith]
                   tmp_sock = (void*)tmp_sock + REG_SUPER_ACK_PAYLOAD_ENTRY_SIZE
                                              ^
/home/zhoub/Codes/n2n/src/edge_utils.c:2049:45: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith]
                   tmp_mac = (void*)tmp_sock + sizeof(n2n_sock_t);
                                             ^
/home/zhoub/Codes/n2n/src/edge_utils.c: At top level:
/home/zhoub/Codes/n2n/src/edge_utils.c:1227:14: warning: ‘get_ip_from_arp’ defined but not used [-Wunused-function]
 static char *get_ip_from_arp(dec_ip_str_t buf, const n2n_mac_t req_mac) {
              ^
/home/zhoub/Codes/n2n/src/edge_utils.c:2732:12: warning: ‘edge_init_routes_win’ defined but not used [-Wunused-function]
 static int edge_init_routes_win(n2n_edge_t *eee, n2n_route_t *routes, uint16_t 
            ^
[ 15%] Building C object CMakeFiles/n2n.dir/src/sn_utils.c.o
/usr/bin/cc -DCMAKE_BUILD -DFILTER_TRAFFIC=1 -DGIT_RELEASE=\"2.9.0.r753.24cfe79\" -DHAVE_LIBCAP -DN2N_HAVE_AES -DN2N_OSNAME=\"Linux-4.15.0-122-generic\" -DN2N_VERSION=\"2.9.0.r753.24cfe79\" -DPACKAGE_OSNAME=\"Linux-4.15.0-122-generic\" -DPACKAGE_VERSION=\"2.9.0.r753.24cfe79\" -I/home/zhoub/Codes/n2n/. -I/home/zhoub/Codes/n2n/include  -Wall -Wshadow -Wpointer-arith -Wmissing-declarations -Wnested-externs   -o CMakeFiles/n2n.dir/src/sn_utils.c.o   -c /home/zhoub/Codes/n2n/src/sn_utils.c
/home/zhoub/Codes/n2n/src/sn_utils.c:469:5: warning: no previous declaration for ‘subnet_available’ [-Wmissing-declarations]
 int subnet_available(n2n_sn_t *sss,
     ^
/home/zhoub/Codes/n2n/src/sn_utils.c: In function ‘process_udp’:
/home/zhoub/Codes/n2n/src/sn_utils.c:1084:56: warning: variable ‘p’ set but not used [-Wunused-but-set-variable]
       struct peer_info              *peer, *tmp_peer, *p;
                                                        ^
/home/zhoub/Codes/n2n/src/sn_utils.c:1082:40: warning: unused variable ‘fed’ [-Wunused-variable]
       struct sn_community             *fed;
                                        ^
/home/zhoub/Codes/n2n/src/sn_utils.c:1237:35: warning: declaration of ‘tmp’ shadows a previous local [-Wshadow]
     struct peer_info      *scan, *tmp;
                                   ^
/home/zhoub/Codes/n2n/src/sn_utils.c:815:31: note: shadowed declaration is here
   struct sn_community *comm, *tmp;
                               ^
/home/zhoub/Codes/n2n/src/sn_utils.c:1297:33: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith]
     tmp_mac = (void*)dec_tmpbuf + sizeof(n2n_sock_t);
                                 ^
/home/zhoub/Codes/n2n/src/sn_utils.c:1308:34: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith]
       tmp_sock = (void*)tmp_sock + REG_SUPER_ACK_PAYLOAD_ENTRY_SIZE;
                                  ^
/home/zhoub/Codes/n2n/src/sn_utils.c:1309:33: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith]
       tmp_mac = (void*)tmp_sock + sizeof(n2n_sock_t);
                                 ^
/home/zhoub/Codes/n2n/src/sn_utils.c:1236:38: warning: unused variable ‘fed’ [-Wunused-variable]
     struct sn_community             *fed;
                                      ^
/home/zhoub/Codes/n2n/src/sn_utils.c:1235:37: warning: unused variable ‘encx’ [-Wunused-variable]
     size_t                          encx=0;
                                     ^
/home/zhoub/Codes/n2n/src/sn_utils.c:1325:39: warning: unused variable ‘rec_buf’ [-Wunused-variable]
     uint8_t                          *rec_buf; /* either udp_buf or encbuf */
                                       ^
/home/zhoub/Codes/n2n/src/sn_utils.c:1321:55: warning: unused variable ‘p’ [-Wunused-variable]
     struct peer_info               *peer, *tmp_peer, *p;
                                                       ^
/home/zhoub/Codes/n2n/src/sn_utils.c:1321:44: warning: unused variable ‘tmp_peer’ [-Wunused-variable]
     struct peer_info               *peer, *tmp_peer, *p;
                                            ^
/home/zhoub/Codes/n2n/src/sn_utils.c:1321:37: warning: unused variable ‘peer’ [-Wunused-variable]
     struct peer_info               *peer, *tmp_peer, *p;
                                     ^
[ 17%] Building C object CMakeFiles/n2n.dir/src/wire.c.o
/usr/bin/cc -DCMAKE_BUILD -DFILTER_TRAFFIC=1 -DGIT_RELEASE=\"2.9.0.r753.24cfe79\" -DHAVE_LIBCAP -DN2N_HAVE_AES -DN2N_OSNAME=\"Linux-4.15.0-122-generic\" -DN2N_VERSION=\"2.9.0.r753.24cfe79\" -DPACKAGE_OSNAME=\"Linux-4.15.0-122-generic\" -DPACKAGE_VERSION=\"2.9.0.r753.24cfe79\" -I/home/zhoub/Codes/n2n/. -I/home/zhoub/Codes/n2n/include  -Wall -Wshadow -Wpointer-arith -Wmissing-declarations -Wnested-externs   -o CMakeFiles/n2n.dir/src/wire.c.o   -c /home/zhoub/Codes/n2n/src/wire.c
[ 20%] Building C object CMakeFiles/n2n.dir/src/minilzo.c.o
/usr/bin/cc -DCMAKE_BUILD -DFILTER_TRAFFIC=1 -DGIT_RELEASE=\"2.9.0.r753.24cfe79\" -DHAVE_LIBCAP -DN2N_HAVE_AES -DN2N_OSNAME=\"Linux-4.15.0-122-generic\" -DN2N_VERSION=\"2.9.0.r753.24cfe79\" -DPACKAGE_OSNAME=\"Linux-4.15.0-122-generic\" -DPACKAGE_VERSION=\"2.9.0.r753.24cfe79\" -I/home/zhoub/Codes/n2n/. -I/home/zhoub/Codes/n2n/include  -Wall -Wshadow -Wpointer-arith -Wmissing-declarations -Wnested-externs   -o CMakeFiles/n2n.dir/src/minilzo.c.o   -c /home/zhoub/Codes/n2n/src/minilzo.c
[ 23%] Building C object CMakeFiles/n2n.dir/src/tf.c.o
/usr/bin/cc -DCMAKE_BUILD -DFILTER_TRAFFIC=1 -DGIT_RELEASE=\"2.9.0.r753.24cfe79\" -DHAVE_LIBCAP -DN2N_HAVE_AES -DN2N_OSNAME=\"Linux-4.15.0-122-generic\" -DN2N_VERSION=\"2.9.0.r753.24cfe79\" -DPACKAGE_OSNAME=\"Linux-4.15.0-122-generic\" -DPACKAGE_VERSION=\"2.9.0.r753.24cfe79\" -I/home/zhoub/Codes/n2n/. -I/home/zhoub/Codes/n2n/include  -Wall -Wshadow -Wpointer-arith -Wmissing-declarations -Wnested-externs   -o CMakeFiles/n2n.dir/src/tf.c.o   -c /home/zhoub/Codes/n2n/src/tf.c
/home/zhoub/Codes/n2n/src/tf.c:144:10: warning: no previous declaration for ‘polyMult’ [-Wmissing-declarations]
 uint32_t polyMult(uint32_t a, uint32_t b) {
          ^
/home/zhoub/Codes/n2n/src/tf.c:159:10: warning: no previous declaration for ‘gfMod’ [-Wmissing-declarations]
 uint32_t gfMod(uint32_t t, uint32_t modulus) {
          ^
/home/zhoub/Codes/n2n/src/tf.c:180:10: warning: no previous declaration for ‘RSMatrixMultiply’ [-Wmissing-declarations]
 uint32_t RSMatrixMultiply(uint8_t sd[8]) {
          ^
/home/zhoub/Codes/n2n/src/tf.c:199:10: warning: no previous declaration for ‘h’ [-Wmissing-declarations]
 uint32_t h(uint32_t X, uint32_t L[4], int k) {
          ^
/home/zhoub/Codes/n2n/src/tf.c:238:6: warning: no previous declaration for ‘fullKey’ [-Wmissing-declarations]
 void fullKey(uint32_t L[4], int k, uint32_t QF[4][256]) {
      ^
/home/zhoub/Codes/n2n/src/tf.c:300:6: warning: no previous declaration for ‘twofish_internal_encrypt’ [-Wmissing-declarations]
 void twofish_internal_encrypt(uint8_t PT[16], tf_context_t *ctx) {
      ^
/home/zhoub/Codes/n2n/src/tf.c:345:6: warning: no previous declaration for ‘twofish_internal_decrypt’ [-Wmissing-declarations]
 void twofish_internal_decrypt(uint8_t PT[16], const uint8_t CT[16], tf_context_
      ^
/home/zhoub/Codes/n2n/src/tf.c:383:6: warning: no previous declaration for ‘keySched’ [-Wmissing-declarations]
 void keySched(const uint8_t M[], int N, uint32_t **S, uint32_t K[40], int *k) {
      ^
/home/zhoub/Codes/n2n/src/tf.c: In function ‘tf_cbc_decrypt’:
/home/zhoub/Codes/n2n/src/tf.c:474:14: warning: declaration of ‘Q0’ shadows a global declaration [-Wshadow]
     uint32_t Q0, Q1, Q2, Q3, R0, R1, R2, R3, S0, S1, S2, S3;
              ^
/home/zhoub/Codes/n2n/src/tf.c:58:15: note: shadowed declaration is here
 const uint8_t Q0[] = { 0xA9, 0x67, 0xB3, 0xE8, 0x04, 0xFD, 0xA3, 0x76, 0x9A, 0x
               ^
/home/zhoub/Codes/n2n/src/tf.c:474:18: warning: declaration of ‘Q1’ shadows a global declaration [-Wshadow]
     uint32_t Q0, Q1, Q2, Q3, R0, R1, R2, R3, S0, S1, S2, S3;
                  ^
/home/zhoub/Codes/n2n/src/tf.c:75:15: note: shadowed declaration is here
 const uint8_t Q1[] = { 0x75, 0xF3, 0xC6, 0xF4, 0xDB, 0x7B, 0xFB, 0xC8, 0x4A, 0x
               ^
/home/zhoub/Codes/n2n/src/tf.c:533:14: warning: declaration of ‘Q0’ shadows a global declaration [-Wshadow]
     uint32_t Q0, Q1, Q2, Q3;
              ^
/home/zhoub/Codes/n2n/src/tf.c:58:15: note: shadowed declaration is here
 const uint8_t Q0[] = { 0xA9, 0x67, 0xB3, 0xE8, 0x04, 0xFD, 0xA3, 0x76, 0x9A, 0x
               ^
/home/zhoub/Codes/n2n/src/tf.c:533:18: warning: declaration of ‘Q1’ shadows a global declaration [-Wshadow]
     uint32_t Q0, Q1, Q2, Q3;
                  ^
/home/zhoub/Codes/n2n/src/tf.c:75:15: note: shadowed declaration is here
 const uint8_t Q1[] = { 0x75, 0xF3, 0xC6, 0xF4, 0xDB, 0x7B, 0xFB, 0xC8, 0x4A, 0x
               ^
/home/zhoub/Codes/n2n/src/tf.c:462:7: warning: unused variable ‘ret’ [-Wunused-variable]
   int ret = (int)in_len & 15;  // remainder
       ^
[ 25%] Building C object CMakeFiles/n2n.dir/src/cc20.c.o
/usr/bin/cc -DCMAKE_BUILD -DFILTER_TRAFFIC=1 -DGIT_RELEASE=\"2.9.0.r753.24cfe79\" -DHAVE_LIBCAP -DN2N_HAVE_AES -DN2N_OSNAME=\"Linux-4.15.0-122-generic\" -DN2N_VERSION=\"2.9.0.r753.24cfe79\" -DPACKAGE_OSNAME=\"Linux-4.15.0-122-generic\" -DPACKAGE_VERSION=\"2.9.0.r753.24cfe79\" -I/home/zhoub/Codes/n2n/. -I/home/zhoub/Codes/n2n/include  -Wall -Wshadow -Wpointer-arith -Wmissing-declarations -Wnested-externs   -o CMakeFiles/n2n.dir/src/cc20.c.o   -c /home/zhoub/Codes/n2n/src/cc20.c
[ 28%] Building C object CMakeFiles/n2n.dir/src/transform_null.c.o
/usr/bin/cc -DCMAKE_BUILD -DFILTER_TRAFFIC=1 -DGIT_RELEASE=\"2.9.0.r753.24cfe79\" -DHAVE_LIBCAP -DN2N_HAVE_AES -DN2N_OSNAME=\"Linux-4.15.0-122-generic\" -DN2N_VERSION=\"2.9.0.r753.24cfe79\" -DPACKAGE_OSNAME=\"Linux-4.15.0-122-generic\" -DPACKAGE_VERSION=\"2.9.0.r753.24cfe79\" -I/home/zhoub/Codes/n2n/. -I/home/zhoub/Codes/n2n/include  -Wall -Wshadow -Wpointer-arith -Wmissing-declarations -Wnested-externs   -o CMakeFiles/n2n.dir/src/transform_null.c.o   -c /home/zhoub/Codes/n2n/src/transform_null.c
[ 30%] Building C object CMakeFiles/n2n.dir/src/transform_tf.c.o
/usr/bin/cc -DCMAKE_BUILD -DFILTER_TRAFFIC=1 -DGIT_RELEASE=\"2.9.0.r753.24cfe79\" -DHAVE_LIBCAP -DN2N_HAVE_AES -DN2N_OSNAME=\"Linux-4.15.0-122-generic\" -DN2N_VERSION=\"2.9.0.r753.24cfe79\" -DPACKAGE_OSNAME=\"Linux-4.15.0-122-generic\" -DPACKAGE_VERSION=\"2.9.0.r753.24cfe79\" -I/home/zhoub/Codes/n2n/. -I/home/zhoub/Codes/n2n/include  -Wall -Wshadow -Wpointer-arith -Wmissing-declarations -Wnested-externs   -o CMakeFiles/n2n.dir/src/transform_tf.c.o   -c /home/zhoub/Codes/n2n/src/transform_tf.c
[ 33%] Building C object CMakeFiles/n2n.dir/src/transform_aes.c.o
/usr/bin/cc -DCMAKE_BUILD -DFILTER_TRAFFIC=1 -DGIT_RELEASE=\"2.9.0.r753.24cfe79\" -DHAVE_LIBCAP -DN2N_HAVE_AES -DN2N_OSNAME=\"Linux-4.15.0-122-generic\" -DN2N_VERSION=\"2.9.0.r753.24cfe79\" -DPACKAGE_OSNAME=\"Linux-4.15.0-122-generic\" -DPACKAGE_VERSION=\"2.9.0.r753.24cfe79\" -I/home/zhoub/Codes/n2n/. -I/home/zhoub/Codes/n2n/include  -Wall -Wshadow -Wpointer-arith -Wmissing-declarations -Wnested-externs   -o CMakeFiles/n2n.dir/src/transform_aes.c.o   -c /home/zhoub/Codes/n2n/src/transform_aes.c
[ 35%] Building C object CMakeFiles/n2n.dir/src/transform_cc20.c.o
/usr/bin/cc -DCMAKE_BUILD -DFILTER_TRAFFIC=1 -DGIT_RELEASE=\"2.9.0.r753.24cfe79\" -DHAVE_LIBCAP -DN2N_HAVE_AES -DN2N_OSNAME=\"Linux-4.15.0-122-generic\" -DN2N_VERSION=\"2.9.0.r753.24cfe79\" -DPACKAGE_OSNAME=\"Linux-4.15.0-122-generic\" -DPACKAGE_VERSION=\"2.9.0.r753.24cfe79\" -I/home/zhoub/Codes/n2n/. -I/home/zhoub/Codes/n2n/include  -Wall -Wshadow -Wpointer-arith -Wmissing-declarations -Wnested-externs   -o CMakeFiles/n2n.dir/src/transform_cc20.c.o   -c /home/zhoub/Codes/n2n/src/transform_cc20.c
/home/zhoub/Codes/n2n/src/transform_cc20.c: In function ‘transop_encode_cc20’:
/home/zhoub/Codes/n2n/src/transform_cc20.c:64:11: warning: unused variable ‘assembly’ [-Wunused-variable]
   uint8_t assembly[N2N_PKT_BUF_SIZE] = {0};
           ^
/home/zhoub/Codes/n2n/src/transform_cc20.c: In function ‘transop_decode_cc20’:
/home/zhoub/Codes/n2n/src/transform_cc20.c:112:12: warning: unused variable ‘idx’ [-Wunused-variable]
     size_t idx=0;
            ^
/home/zhoub/Codes/n2n/src/transform_cc20.c:111:12: warning: unused variable ‘rem’ [-Wunused-variable]
     size_t rem=in_len;
            ^
/home/zhoub/Codes/n2n/src/transform_cc20.c:105:11: warning: unused variable ‘assembly’ [-Wunused-variable]
   uint8_t assembly[N2N_PKT_BUF_SIZE];
           ^
[ 38%] Building C object CMakeFiles/n2n.dir/src/transform_speck.c.o
/usr/bin/cc -DCMAKE_BUILD -DFILTER_TRAFFIC=1 -DGIT_RELEASE=\"2.9.0.r753.24cfe79\" -DHAVE_LIBCAP -DN2N_HAVE_AES -DN2N_OSNAME=\"Linux-4.15.0-122-generic\" -DN2N_VERSION=\"2.9.0.r753.24cfe79\" -DPACKAGE_OSNAME=\"Linux-4.15.0-122-generic\" -DPACKAGE_VERSION=\"2.9.0.r753.24cfe79\" -I/home/zhoub/Codes/n2n/. -I/home/zhoub/Codes/n2n/include  -Wall -Wshadow -Wpointer-arith -Wmissing-declarations -Wnested-externs   -o CMakeFiles/n2n.dir/src/transform_speck.c.o   -c /home/zhoub/Codes/n2n/src/transform_speck.c
/home/zhoub/Codes/n2n/src/transform_speck.c: In function ‘transop_decode_speck’:
/home/zhoub/Codes/n2n/src/transform_speck.c:112:12: warning: unused variable ‘idx’ [-Wunused-variable]
     size_t idx=0;
            ^
/home/zhoub/Codes/n2n/src/transform_speck.c:111:12: warning: unused variable ‘rem’ [-Wunused-variable]
     size_t rem=in_len;
            ^
[ 41%] Building C object CMakeFiles/n2n.dir/src/aes.c.o
/usr/bin/cc -DCMAKE_BUILD -DFILTER_TRAFFIC=1 -DGIT_RELEASE=\"2.9.0.r753.24cfe79\" -DHAVE_LIBCAP -DN2N_HAVE_AES -DN2N_OSNAME=\"Linux-4.15.0-122-generic\" -DN2N_VERSION=\"2.9.0.r753.24cfe79\" -DPACKAGE_OSNAME=\"Linux-4.15.0-122-generic\" -DPACKAGE_VERSION=\"2.9.0.r753.24cfe79\" -I/home/zhoub/Codes/n2n/. -I/home/zhoub/Codes/n2n/include  -Wall -Wshadow -Wpointer-arith -Wmissing-declarations -Wnested-externs   -o CMakeFiles/n2n.dir/src/aes.c.o   -c /home/zhoub/Codes/n2n/src/aes.c
/home/zhoub/Codes/n2n/src/aes.c:1204:5: warning: no previous declaration for ‘aes_ecb_encrypt’ [-Wmissing-declarations]
 int aes_ecb_encrypt (unsigned char *out, const unsigned char *in, aes_context_t
     ^
[ 43%] Building C object CMakeFiles/n2n.dir/src/speck.c.o
/usr/bin/cc -DCMAKE_BUILD -DFILTER_TRAFFIC=1 -DGIT_RELEASE=\"2.9.0.r753.24cfe79\" -DHAVE_LIBCAP -DN2N_HAVE_AES -DN2N_OSNAME=\"Linux-4.15.0-122-generic\" -DN2N_VERSION=\"2.9.0.r753.24cfe79\" -DPACKAGE_OSNAME=\"Linux-4.15.0-122-generic\" -DPACKAGE_VERSION=\"2.9.0.r753.24cfe79\" -I/home/zhoub/Codes/n2n/. -I/home/zhoub/Codes/n2n/include  -Wall -Wshadow -Wpointer-arith -Wmissing-declarations -Wnested-externs   -o CMakeFiles/n2n.dir/src/speck.c.o   -c /home/zhoub/Codes/n2n/src/speck.c
[ 46%] Building C object CMakeFiles/n2n.dir/src/random_numbers.c.o
/usr/bin/cc -DCMAKE_BUILD -DFILTER_TRAFFIC=1 -DGIT_RELEASE=\"2.9.0.r753.24cfe79\" -DHAVE_LIBCAP -DN2N_HAVE_AES -DN2N_OSNAME=\"Linux-4.15.0-122-generic\" -DN2N_VERSION=\"2.9.0.r753.24cfe79\" -DPACKAGE_OSNAME=\"Linux-4.15.0-122-generic\" -DPACKAGE_VERSION=\"2.9.0.r753.24cfe79\" -I/home/zhoub/Codes/n2n/. -I/home/zhoub/Codes/n2n/include  -Wall -Wshadow -Wpointer-arith -Wmissing-declarations -Wnested-externs   -o CMakeFiles/n2n.dir/src/random_numbers.c.o   -c /home/zhoub/Codes/n2n/src/random_numbers.c
[ 48%] Building C object CMakeFiles/n2n.dir/src/pearson.c.o
/usr/bin/cc -DCMAKE_BUILD -DFILTER_TRAFFIC=1 -DGIT_RELEASE=\"2.9.0.r753.24cfe79\" -DHAVE_LIBCAP -DN2N_HAVE_AES -DN2N_OSNAME=\"Linux-4.15.0-122-generic\" -DN2N_VERSION=\"2.9.0.r753.24cfe79\" -DPACKAGE_OSNAME=\"Linux-4.15.0-122-generic\" -DPACKAGE_VERSION=\"2.9.0.r753.24cfe79\" -I/home/zhoub/Codes/n2n/. -I/home/zhoub/Codes/n2n/include  -Wall -Wshadow -Wpointer-arith -Wmissing-declarations -Wnested-externs   -o CMakeFiles/n2n.dir/src/pearson.c.o   -c /home/zhoub/Codes/n2n/src/pearson.c
[ 51%] Building C object CMakeFiles/n2n.dir/src/header_encryption.c.o
/usr/bin/cc -DCMAKE_BUILD -DFILTER_TRAFFIC=1 -DGIT_RELEASE=\"2.9.0.r753.24cfe79\" -DHAVE_LIBCAP -DN2N_HAVE_AES -DN2N_OSNAME=\"Linux-4.15.0-122-generic\" -DN2N_VERSION=\"2.9.0.r753.24cfe79\" -DPACKAGE_OSNAME=\"Linux-4.15.0-122-generic\" -DPACKAGE_VERSION=\"2.9.0.r753.24cfe79\" -I/home/zhoub/Codes/n2n/. -I/home/zhoub/Codes/n2n/include  -Wall -Wshadow -Wpointer-arith -Wmissing-declarations -Wnested-externs   -o CMakeFiles/n2n.dir/src/header_encryption.c.o   -c /home/zhoub/Codes/n2n/src/header_encryption.c
[ 53%] Building C object CMakeFiles/n2n.dir/src/tuntap_freebsd.c.o
/usr/bin/cc -DCMAKE_BUILD -DFILTER_TRAFFIC=1 -DGIT_RELEASE=\"2.9.0.r753.24cfe79\" -DHAVE_LIBCAP -DN2N_HAVE_AES -DN2N_OSNAME=\"Linux-4.15.0-122-generic\" -DN2N_VERSION=\"2.9.0.r753.24cfe79\" -DPACKAGE_OSNAME=\"Linux-4.15.0-122-generic\" -DPACKAGE_VERSION=\"2.9.0.r753.24cfe79\" -I/home/zhoub/Codes/n2n/. -I/home/zhoub/Codes/n2n/include  -Wall -Wshadow -Wpointer-arith -Wmissing-declarations -Wnested-externs   -o CMakeFiles/n2n.dir/src/tuntap_freebsd.c.o   -c /home/zhoub/Codes/n2n/src/tuntap_freebsd.c
[ 56%] Building C object CMakeFiles/n2n.dir/src/tuntap_netbsd.c.o
/usr/bin/cc -DCMAKE_BUILD -DFILTER_TRAFFIC=1 -DGIT_RELEASE=\"2.9.0.r753.24cfe79\" -DHAVE_LIBCAP -DN2N_HAVE_AES -DN2N_OSNAME=\"Linux-4.15.0-122-generic\" -DN2N_VERSION=\"2.9.0.r753.24cfe79\" -DPACKAGE_OSNAME=\"Linux-4.15.0-122-generic\" -DPACKAGE_VERSION=\"2.9.0.r753.24cfe79\" -I/home/zhoub/Codes/n2n/. -I/home/zhoub/Codes/n2n/include  -Wall -Wshadow -Wpointer-arith -Wmissing-declarations -Wnested-externs   -o CMakeFiles/n2n.dir/src/tuntap_netbsd.c.o   -c /home/zhoub/Codes/n2n/src/tuntap_netbsd.c
[ 58%] Building C object CMakeFiles/n2n.dir/src/tuntap_linux.c.o
/usr/bin/cc -DCMAKE_BUILD -DFILTER_TRAFFIC=1 -DGIT_RELEASE=\"2.9.0.r753.24cfe79\" -DHAVE_LIBCAP -DN2N_HAVE_AES -DN2N_OSNAME=\"Linux-4.15.0-122-generic\" -DN2N_VERSION=\"2.9.0.r753.24cfe79\" -DPACKAGE_OSNAME=\"Linux-4.15.0-122-generic\" -DPACKAGE_VERSION=\"2.9.0.r753.24cfe79\" -I/home/zhoub/Codes/n2n/. -I/home/zhoub/Codes/n2n/include  -Wall -Wshadow -Wpointer-arith -Wmissing-declarations -Wnested-externs   -o CMakeFiles/n2n.dir/src/tuntap_linux.c.o   -c /home/zhoub/Codes/n2n/src/tuntap_linux.c
[ 61%] Building C object CMakeFiles/n2n.dir/src/tuntap_osx.c.o
/usr/bin/cc -DCMAKE_BUILD -DFILTER_TRAFFIC=1 -DGIT_RELEASE=\"2.9.0.r753.24cfe79\" -DHAVE_LIBCAP -DN2N_HAVE_AES -DN2N_OSNAME=\"Linux-4.15.0-122-generic\" -DN2N_VERSION=\"2.9.0.r753.24cfe79\" -DPACKAGE_OSNAME=\"Linux-4.15.0-122-generic\" -DPACKAGE_VERSION=\"2.9.0.r753.24cfe79\" -I/home/zhoub/Codes/n2n/. -I/home/zhoub/Codes/n2n/include  -Wall -Wshadow -Wpointer-arith -Wmissing-declarations -Wnested-externs   -o CMakeFiles/n2n.dir/src/tuntap_osx.c.o   -c /home/zhoub/Codes/n2n/src/tuntap_osx.c
[ 64%] Building C object CMakeFiles/n2n.dir/src/n2n_regex.c.o
/usr/bin/cc -DCMAKE_BUILD -DFILTER_TRAFFIC=1 -DGIT_RELEASE=\"2.9.0.r753.24cfe79\" -DHAVE_LIBCAP -DN2N_HAVE_AES -DN2N_OSNAME=\"Linux-4.15.0-122-generic\" -DN2N_VERSION=\"2.9.0.r753.24cfe79\" -DPACKAGE_OSNAME=\"Linux-4.15.0-122-generic\" -DPACKAGE_VERSION=\"2.9.0.r753.24cfe79\" -I/home/zhoub/Codes/n2n/. -I/home/zhoub/Codes/n2n/include  -Wall -Wshadow -Wpointer-arith -Wmissing-declarations -Wnested-externs   -o CMakeFiles/n2n.dir/src/n2n_regex.c.o   -c /home/zhoub/Codes/n2n/src/n2n_regex.c
/home/zhoub/Codes/n2n/src/n2n_regex.c:267:6: warning: no previous declaration for ‘re_print’ [-Wmissing-declarations]
 void re_print(regex_t* pattern)
      ^
[ 66%] Building C object CMakeFiles/n2n.dir/src/network_traffic_filter.c.o
/usr/bin/cc -DCMAKE_BUILD -DFILTER_TRAFFIC=1 -DGIT_RELEASE=\"2.9.0.r753.24cfe79\" -DHAVE_LIBCAP -DN2N_HAVE_AES -DN2N_OSNAME=\"Linux-4.15.0-122-generic\" -DN2N_VERSION=\"2.9.0.r753.24cfe79\" -DPACKAGE_OSNAME=\"Linux-4.15.0-122-generic\" -DPACKAGE_VERSION=\"2.9.0.r753.24cfe79\" -I/home/zhoub/Codes/n2n/. -I/home/zhoub/Codes/n2n/include  -Wall -Wshadow -Wpointer-arith -Wmissing-declarations -Wnested-externs   -o CMakeFiles/n2n.dir/src/network_traffic_filter.c.o   -c /home/zhoub/Codes/n2n/src/network_traffic_filter.c
/home/zhoub/Codes/n2n/src/network_traffic_filter.c:39:13: warning: no previous declaration for ‘get_filter_packet_proto_name’ [-Wmissing-declarations]
 const char* get_filter_packet_proto_name(filter_packet_proto proto)
             ^
/home/zhoub/Codes/n2n/src/network_traffic_filter.c:66:13: warning: no previous declaration for ‘get_filter_packet_info_log_string’ [-Wmissing-declarations]
 const char* get_filter_packet_info_log_string(packet_address_proto_info_t* info
             ^
/home/zhoub/Codes/n2n/src/network_traffic_filter.c:92:6: warning: no previous declaration for ‘collect_packet_info’ [-Wmissing-declarations]
 void collect_packet_info(packet_address_proto_info_t* out_info, unsigned char *
      ^
/home/zhoub/Codes/n2n/src/network_traffic_filter.c:162:13: warning: no previous declaration for ‘get_filter_rule_info_log_string’ [-Wmissing-declarations]
 const char* get_filter_rule_info_log_string(filter_rule_t* rule)
             ^
/home/zhoub/Codes/n2n/src/network_traffic_filter.c:202:9: warning: no previous declaration for ‘march_cidr_and_address’ [-Wmissing-declarations]
 uint8_t march_cidr_and_address(in_addr_t network, uint8_t net_bitlen, in_addr_t
         ^
/home/zhoub/Codes/n2n/src/network_traffic_filter.c:215:9: warning: no previous declaration for ‘march_rule_and_cache_key’ [-Wmissing-declarations]
 uint8_t march_rule_and_cache_key(filter_rule_key_t *rule_key, packet_address_pr
         ^
/home/zhoub/Codes/n2n/src/network_traffic_filter.c:248:16: warning: no previous declaration for ‘get_filter_rule’ [-Wmissing-declarations]
 filter_rule_t* get_filter_rule(filter_rule_t **rules, packet_address_proto_info
                ^
/home/zhoub/Codes/n2n/src/network_traffic_filter.c:280:6: warning: no previous declaration for ‘update_and_clear_cache_if_need’ [-Wmissing-declarations]
 void update_and_clear_cache_if_need(network_traffic_filter_impl_t *filter)
      ^
/home/zhoub/Codes/n2n/src/network_traffic_filter.c:300:27: warning: no previous declaration for ‘get_or_create_filter_rule_cache’ [-Wmissing-declarations]
 filter_rule_pair_cache_t* get_or_create_filter_rule_cache(network_traffic_filte
                           ^
/home/zhoub/Codes/n2n/src/network_traffic_filter.c:337:13: warning: no previous declaration for ‘filter_packet_from_peer’ [-Wmissing-declarations]
 n2n_verdict filter_packet_from_peer(network_traffic_filter_impl_t *filter, n2n_
             ^
/home/zhoub/Codes/n2n/src/network_traffic_filter.c:353:13: warning: no previous declaration for ‘filter_packet_from_tap’ [-Wmissing-declarations]
 n2n_verdict filter_packet_from_tap(network_traffic_filter_impl_t *filter, n2n_e
             ^
/home/zhoub/Codes/n2n/src/network_traffic_filter.c: In function ‘create_network_traffic_filter’:
/home/zhoub/Codes/n2n/src/network_traffic_filter.c:372:35: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
   filter->filter_packet_from_peer = filter_packet_from_peer;
                                   ^
/home/zhoub/Codes/n2n/src/network_traffic_filter.c:373:34: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
   filter->filter_packet_from_tap = filter_packet_from_tap;
                                  ^
/home/zhoub/Codes/n2n/src/network_traffic_filter.c:374:10: warning: return from incompatible pointer type [-Wincompatible-pointer-types]
   return filter;
          ^
/home/zhoub/Codes/n2n/src/network_traffic_filter.c: In function ‘destroy_network_traffic_filter’:
/home/zhoub/Codes/n2n/src/network_traffic_filter.c:378:44: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
   network_traffic_filter_impl_t *_filter = filter;
                                            ^
In file included from /home/zhoub/Codes/n2n/include/n2n.h:238:0,
                 from /home/zhoub/Codes/n2n/include/network_traffic_filter.h:26,
                 from /home/zhoub/Codes/n2n/src/network_traffic_filter.c:20:
/home/zhoub/Codes/n2n/include/uthash.h:1154:10: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
 for(((el)=(head)), ((tmp)=DECLTYPE(el)((head!=NULL)?(head)->hh.next:NULL));    
          ^
/home/zhoub/Codes/n2n/src/network_traffic_filter.c:387:3: note: in expansion of macro ‘HASH_ITER’
   HASH_ITER(hh, _filter->connections_rule_cache, el, tmp)
   ^
/home/zhoub/Codes/n2n/src/network_traffic_filter.c: In function ‘network_traffic_filter_add_rule’:
/home/zhoub/Codes/n2n/src/network_traffic_filter.c:400:46: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
     network_traffic_filter_impl_t *_filter = filter;
                                              ^
/home/zhoub/Codes/n2n/src/network_traffic_filter.c: At top level:
/home/zhoub/Codes/n2n/src/network_traffic_filter.c:408:11: warning: no previous declaration for ‘get_int32_addr_from_ip_string’ [-Wmissing-declarations]
 in_addr_t get_int32_addr_from_ip_string(const char* begin, const char* next_pos
           ^
/home/zhoub/Codes/n2n/src/network_traffic_filter.c:426:5: warning: no previous declaration for ‘get_int32_from_number_string’ [-Wmissing-declarations]
 int get_int32_from_number_string(const char* begin, const char* next_pos_of_las
     ^
/home/zhoub/Codes/n2n/src/network_traffic_filter.c:439:6: warning: no previous declaration for ‘process_traffic_filter_proto’ [-Wmissing-declarations]
 void process_traffic_filter_proto(const char* begin, const char* next_pos_of_la
      ^
[ 69%] Linking C static library libn2n.a
/usr/local/bin/cmake -P CMakeFiles/n2n.dir/cmake_clean_target.cmake
/usr/local/bin/cmake -E cmake_link_script CMakeFiles/n2n.dir/link.txt --verbose=1
/usr/bin/ar qc libn2n.a  CMakeFiles/n2n.dir/src/n2n.c.o CMakeFiles/n2n.dir/src/edge_utils.c.o CMakeFiles/n2n.dir/src/sn_utils.c.o CMakeFiles/n2n.dir/src/wire.c.o CMakeFiles/n2n.dir/src/minilzo.c.o CMakeFiles/n2n.dir/src/tf.c.o CMakeFiles/n2n.dir/src/cc20.c.o CMakeFiles/n2n.dir/src/transform_null.c.o CMakeFiles/n2n.dir/src/transform_tf.c.o CMakeFiles/n2n.dir/src/transform_aes.c.o CMakeFiles/n2n.dir/src/transform_cc20.c.o CMakeFiles/n2n.dir/src/transform_speck.c.o CMakeFiles/n2n.dir/src/aes.c.o CMakeFiles/n2n.dir/src/speck.c.o CMakeFiles/n2n.dir/src/random_numbers.c.o CMakeFiles/n2n.dir/src/pearson.c.o CMakeFiles/n2n.dir/src/header_encryption.c.o CMakeFiles/n2n.dir/src/tuntap_freebsd.c.o CMakeFiles/n2n.dir/src/tuntap_netbsd.c.o CMakeFiles/n2n.dir/src/tuntap_linux.c.o CMakeFiles/n2n.dir/src/tuntap_osx.c.o CMakeFiles/n2n.dir/src/n2n_regex.c.o CMakeFiles/n2n.dir/src/network_traffic_filter.c.o
/usr/bin/ranlib libn2n.a
make[2]: Leaving directory '/home/zhoub/Codes/n2n/build'
[ 69%] Built target n2n
make -f CMakeFiles/example_edge_embed_quick_edge_init.dir/build.make CMakeFiles/example_edge_embed_quick_edge_init.dir/depend
make[2]: Entering directory '/home/zhoub/Codes/n2n/build'
cd /home/zhoub/Codes/n2n/build && /usr/local/bin/cmake -E cmake_depends "Unix Makefiles" /home/zhoub/Codes/n2n /home/zhoub/Codes/n2n /home/zhoub/Codes/n2n/build /home/zhoub/Codes/n2n/build /home/zhoub/Codes/n2n/build/CMakeFiles/example_edge_embed_quick_edge_init.dir/DependInfo.cmake --color=
Scanning dependencies of target example_edge_embed_quick_edge_init
make[2]: Leaving directory '/home/zhoub/Codes/n2n/build'
make -f CMakeFiles/example_edge_embed_quick_edge_init.dir/build.make CMakeFiles/example_edge_embed_quick_edge_init.dir/build
make[2]: Entering directory '/home/zhoub/Codes/n2n/build'
[ 71%] Building C object CMakeFiles/example_edge_embed_quick_edge_init.dir/src/example_edge_embed_quick_edge_init.c.o
/usr/bin/cc -DCMAKE_BUILD -DFILTER_TRAFFIC=1 -DGIT_RELEASE=\"2.9.0.r753.24cfe79\" -DHAVE_LIBCAP -DN2N_HAVE_AES -DN2N_OSNAME=\"Linux-4.15.0-122-generic\" -DN2N_VERSION=\"2.9.0.r753.24cfe79\" -DPACKAGE_OSNAME=\"Linux-4.15.0-122-generic\" -DPACKAGE_VERSION=\"2.9.0.r753.24cfe79\" -I/home/zhoub/Codes/n2n/. -I/home/zhoub/Codes/n2n/include  -Wall -Wshadow -Wpointer-arith -Wmissing-declarations -Wnested-externs   -o CMakeFiles/example_edge_embed_quick_edge_init.dir/src/example_edge_embed_quick_edge_init.c.o   -c /home/zhoub/Codes/n2n/src/example_edge_embed_quick_edge_init.c
[ 74%] Linking C executable example_edge_embed_quick_edge_init
/usr/local/bin/cmake -E cmake_link_script CMakeFiles/example_edge_embed_quick_edge_init.dir/link.txt --verbose=1
/usr/bin/cc  -Wall -Wshadow -Wpointer-arith -Wmissing-declarations -Wnested-externs  -rdynamic CMakeFiles/example_edge_embed_quick_edge_init.dir/src/example_edge_embed_quick_edge_init.c.o  -o example_edge_embed_quick_edge_init  libn2n.a -lssl -lcrypto 
make[2]: Leaving directory '/home/zhoub/Codes/n2n/build'
[ 74%] Built target example_edge_embed_quick_edge_init
make -f CMakeFiles/example_sn_embed.dir/build.make CMakeFiles/example_sn_embed.dir/depend
make[2]: Entering directory '/home/zhoub/Codes/n2n/build'
cd /home/zhoub/Codes/n2n/build && /usr/local/bin/cmake -E cmake_depends "Unix Makefiles" /home/zhoub/Codes/n2n /home/zhoub/Codes/n2n /home/zhoub/Codes/n2n/build /home/zhoub/Codes/n2n/build /home/zhoub/Codes/n2n/build/CMakeFiles/example_sn_embed.dir/DependInfo.cmake --color=
Scanning dependencies of target example_sn_embed
make[2]: Leaving directory '/home/zhoub/Codes/n2n/build'
make -f CMakeFiles/example_sn_embed.dir/build.make CMakeFiles/example_sn_embed.dir/build
make[2]: Entering directory '/home/zhoub/Codes/n2n/build'
[ 76%] Building C object CMakeFiles/example_sn_embed.dir/src/example_sn_embed.c.o
/usr/bin/cc -DCMAKE_BUILD -DFILTER_TRAFFIC=1 -DGIT_RELEASE=\"2.9.0.r753.24cfe79\" -DHAVE_LIBCAP -DN2N_HAVE_AES -DN2N_OSNAME=\"Linux-4.15.0-122-generic\" -DN2N_VERSION=\"2.9.0.r753.24cfe79\" -DPACKAGE_OSNAME=\"Linux-4.15.0-122-generic\" -DPACKAGE_VERSION=\"2.9.0.r753.24cfe79\" -I/home/zhoub/Codes/n2n/. -I/home/zhoub/Codes/n2n/include  -Wall -Wshadow -Wpointer-arith -Wmissing-declarations -Wnested-externs   -o CMakeFiles/example_sn_embed.dir/src/example_sn_embed.c.o   -c /home/zhoub/Codes/n2n/src/example_sn_embed.c
[ 79%] Linking C executable example_sn_embed
/usr/local/bin/cmake -E cmake_link_script CMakeFiles/example_sn_embed.dir/link.txt --verbose=1
/usr/bin/cc  -Wall -Wshadow -Wpointer-arith -Wmissing-declarations -Wnested-externs  -rdynamic CMakeFiles/example_sn_embed.dir/src/example_sn_embed.c.o  -o example_sn_embed  libn2n.a -lssl -lcrypto 
make[2]: Leaving directory '/home/zhoub/Codes/n2n/build'
[ 79%] Built target example_sn_embed
make -f CMakeFiles/supernode.dir/build.make CMakeFiles/supernode.dir/depend
make[2]: Entering directory '/home/zhoub/Codes/n2n/build'
cd /home/zhoub/Codes/n2n/build && /usr/local/bin/cmake -E cmake_depends "Unix Makefiles" /home/zhoub/Codes/n2n /home/zhoub/Codes/n2n /home/zhoub/Codes/n2n/build /home/zhoub/Codes/n2n/build /home/zhoub/Codes/n2n/build/CMakeFiles/supernode.dir/DependInfo.cmake --color=
Scanning dependencies of target supernode
make[2]: Leaving directory '/home/zhoub/Codes/n2n/build'
make -f CMakeFiles/supernode.dir/build.make CMakeFiles/supernode.dir/build
make[2]: Entering directory '/home/zhoub/Codes/n2n/build'
[ 82%] Building C object CMakeFiles/supernode.dir/src/sn.c.o
/usr/bin/cc -DCMAKE_BUILD -DFILTER_TRAFFIC=1 -DGIT_RELEASE=\"2.9.0.r753.24cfe79\" -DHAVE_LIBCAP -DN2N_HAVE_AES -DN2N_OSNAME=\"Linux-4.15.0-122-generic\" -DN2N_VERSION=\"2.9.0.r753.24cfe79\" -DPACKAGE_OSNAME=\"Linux-4.15.0-122-generic\" -DPACKAGE_VERSION=\"2.9.0.r753.24cfe79\" -I/home/zhoub/Codes/n2n/. -I/home/zhoub/Codes/n2n/include  -Wall -Wshadow -Wpointer-arith -Wmissing-declarations -Wnested-externs   -o CMakeFiles/supernode.dir/src/sn.c.o   -c /home/zhoub/Codes/n2n/src/sn.c
[ 84%] Linking C executable supernode
/usr/local/bin/cmake -E cmake_link_script CMakeFiles/supernode.dir/link.txt --verbose=1
/usr/bin/cc  -Wall -Wshadow -Wpointer-arith -Wmissing-declarations -Wnested-externs  -rdynamic CMakeFiles/supernode.dir/src/sn.c.o  -o supernode  libn2n.a -lssl -lcrypto 
make[2]: Leaving directory '/home/zhoub/Codes/n2n/build'
[ 84%] Built target supernode
make -f CMakeFiles/edge.dir/build.make CMakeFiles/edge.dir/depend
make[2]: Entering directory '/home/zhoub/Codes/n2n/build'
cd /home/zhoub/Codes/n2n/build && /usr/local/bin/cmake -E cmake_depends "Unix Makefiles" /home/zhoub/Codes/n2n /home/zhoub/Codes/n2n /home/zhoub/Codes/n2n/build /home/zhoub/Codes/n2n/build /home/zhoub/Codes/n2n/build/CMakeFiles/edge.dir/DependInfo.cmake --color=
Scanning dependencies of target edge
make[2]: Leaving directory '/home/zhoub/Codes/n2n/build'
make -f CMakeFiles/edge.dir/build.make CMakeFiles/edge.dir/build
make[2]: Entering directory '/home/zhoub/Codes/n2n/build'
[ 87%] Building C object CMakeFiles/edge.dir/src/edge.c.o
/usr/bin/cc -DCMAKE_BUILD -DFILTER_TRAFFIC=1 -DGIT_RELEASE=\"2.9.0.r753.24cfe79\" -DHAVE_LIBCAP -DN2N_HAVE_AES -DN2N_OSNAME=\"Linux-4.15.0-122-generic\" -DN2N_VERSION=\"2.9.0.r753.24cfe79\" -DPACKAGE_OSNAME=\"Linux-4.15.0-122-generic\" -DPACKAGE_VERSION=\"2.9.0.r753.24cfe79\" -I/home/zhoub/Codes/n2n/. -I/home/zhoub/Codes/n2n/include  -Wall -Wshadow -Wpointer-arith -Wmissing-declarations -Wnested-externs   -o CMakeFiles/edge.dir/src/edge.c.o   -c /home/zhoub/Codes/n2n/src/edge.c
[ 89%] Linking C executable edge
/usr/local/bin/cmake -E cmake_link_script CMakeFiles/edge.dir/link.txt --verbose=1
/usr/bin/cc  -Wall -Wshadow -Wpointer-arith -Wmissing-declarations -Wnested-externs  -rdynamic CMakeFiles/edge.dir/src/edge.c.o  -o edge  libn2n.a -lcap -lssl -lcrypto 
make[2]: Leaving directory '/home/zhoub/Codes/n2n/build'
[ 89%] Built target edge
make -f CMakeFiles/n2n-benchmark.dir/build.make CMakeFiles/n2n-benchmark.dir/depend
make[2]: Entering directory '/home/zhoub/Codes/n2n/build'
cd /home/zhoub/Codes/n2n/build && /usr/local/bin/cmake -E cmake_depends "Unix Makefiles" /home/zhoub/Codes/n2n /home/zhoub/Codes/n2n /home/zhoub/Codes/n2n/build /home/zhoub/Codes/n2n/build /home/zhoub/Codes/n2n/build/CMakeFiles/n2n-benchmark.dir/DependInfo.cmake --color=
Scanning dependencies of target n2n-benchmark
make[2]: Leaving directory '/home/zhoub/Codes/n2n/build'
make -f CMakeFiles/n2n-benchmark.dir/build.make CMakeFiles/n2n-benchmark.dir/build
make[2]: Entering directory '/home/zhoub/Codes/n2n/build'
[ 92%] Building C object CMakeFiles/n2n-benchmark.dir/tools/benchmark.c.o
/usr/bin/cc -DCMAKE_BUILD -DFILTER_TRAFFIC=1 -DGIT_RELEASE=\"2.9.0.r753.24cfe79\" -DHAVE_LIBCAP -DN2N_HAVE_AES -DN2N_OSNAME=\"Linux-4.15.0-122-generic\" -DN2N_VERSION=\"2.9.0.r753.24cfe79\" -DPACKAGE_OSNAME=\"Linux-4.15.0-122-generic\" -DPACKAGE_VERSION=\"2.9.0.r753.24cfe79\" -I/home/zhoub/Codes/n2n/. -I/home/zhoub/Codes/n2n/include  -Wall -Wshadow -Wpointer-arith -Wmissing-declarations -Wnested-externs   -o CMakeFiles/n2n-benchmark.dir/tools/benchmark.c.o   -c /home/zhoub/Codes/n2n/tools/benchmark.c
[ 94%] Linking C executable n2n-benchmark
/usr/local/bin/cmake -E cmake_link_script CMakeFiles/n2n-benchmark.dir/link.txt --verbose=1
/usr/bin/cc  -Wall -Wshadow -Wpointer-arith -Wmissing-declarations -Wnested-externs  -rdynamic CMakeFiles/n2n-benchmark.dir/tools/benchmark.c.o  -o n2n-benchmark  libn2n.a -lssl -lcrypto 
make[2]: Leaving directory '/home/zhoub/Codes/n2n/build'
[ 94%] Built target n2n-benchmark
make -f CMakeFiles/example_edge_embed.dir/build.make CMakeFiles/example_edge_embed.dir/depend
make[2]: Entering directory '/home/zhoub/Codes/n2n/build'
cd /home/zhoub/Codes/n2n/build && /usr/local/bin/cmake -E cmake_depends "Unix Makefiles" /home/zhoub/Codes/n2n /home/zhoub/Codes/n2n /home/zhoub/Codes/n2n/build /home/zhoub/Codes/n2n/build /home/zhoub/Codes/n2n/build/CMakeFiles/example_edge_embed.dir/DependInfo.cmake --color=
Scanning dependencies of target example_edge_embed
make[2]: Leaving directory '/home/zhoub/Codes/n2n/build'
make -f CMakeFiles/example_edge_embed.dir/build.make CMakeFiles/example_edge_embed.dir/build
make[2]: Entering directory '/home/zhoub/Codes/n2n/build'
[ 97%] Building C object CMakeFiles/example_edge_embed.dir/src/example_edge_embed.c.o
/usr/bin/cc -DCMAKE_BUILD -DFILTER_TRAFFIC=1 -DGIT_RELEASE=\"2.9.0.r753.24cfe79\" -DHAVE_LIBCAP -DN2N_HAVE_AES -DN2N_OSNAME=\"Linux-4.15.0-122-generic\" -DN2N_VERSION=\"2.9.0.r753.24cfe79\" -DPACKAGE_OSNAME=\"Linux-4.15.0-122-generic\" -DPACKAGE_VERSION=\"2.9.0.r753.24cfe79\" -I/home/zhoub/Codes/n2n/. -I/home/zhoub/Codes/n2n/include  -Wall -Wshadow -Wpointer-arith -Wmissing-declarations -Wnested-externs   -o CMakeFiles/example_edge_embed.dir/src/example_edge_embed.c.o   -c /home/zhoub/Codes/n2n/src/example_edge_embed.c
[100%] Linking C executable example_edge_embed
/usr/local/bin/cmake -E cmake_link_script CMakeFiles/example_edge_embed.dir/link.txt --verbose=1
/usr/bin/cc  -Wall -Wshadow -Wpointer-arith -Wmissing-declarations -Wnested-externs  -rdynamic CMakeFiles/example_edge_embed.dir/src/example_edge_embed.c.o  -o example_edge_embed  libn2n.a -lssl -lcrypto 
make[2]: Leaving directory '/home/zhoub/Codes/n2n/build'
[100%] Built target example_edge_embed
make[1]: Leaving directory '/home/zhoub/Codes/n2n/build'
/usr/local/bin/cmake -E cmake_progress_start /home/zhoub/Codes/n2n/build/CMakeFiles 0
zhoub@zhoub-honor:~/Codes/n2n/build$ 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants