Compare commits
28 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0e1a3ccaa4 | ||
|
|
5c4fb7560a | ||
|
|
e52beafe8e | ||
|
|
b199f63ed0 | ||
|
|
233927c49d | ||
|
|
e9b8f06016 | ||
|
|
12777f67e7 | ||
|
|
efc44468e9 | ||
|
|
785200cb0b | ||
|
|
fb581250ae | ||
|
|
7b65d49843 | ||
|
|
daf4d7bf1e | ||
|
|
a8a704b9e0 | ||
|
|
1692756ebc | ||
|
|
02e864c7f7 | ||
|
|
5db0eae74d | ||
|
|
07c02083e9 | ||
|
|
6cb6793654 | ||
|
|
b3e7e577dc | ||
|
|
8bbf0ccad9 | ||
|
|
e0b1a2a305 | ||
|
|
fe6303f1d1 | ||
|
|
8c6340bccc | ||
|
|
a8bf66c04e | ||
|
|
c06a74ce56 | ||
|
|
d74a582cfa | ||
|
|
ed3cb96e8e | ||
|
|
8a2fcb5b04 |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1 +1,2 @@
|
|||||||
*.bak
|
*.bak
|
||||||
|
build/*
|
||||||
|
|||||||
62
.gitlab-ci.yml
Normal file
62
.gitlab-ci.yml
Normal file
@@ -0,0 +1,62 @@
|
|||||||
|
image: "git.mesalab.cn:7443/mesa_platform/build-env:master"
|
||||||
|
variables:
|
||||||
|
GIT_STRATEGY: "clone"
|
||||||
|
BUILD_PADDING_PREFIX: /tmp/padding_for_CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX_PREFIX_PREFIX_PREFIX_PREFIX_PREFIX/
|
||||||
|
INSTALL_PREFIX: "/home/mesasoft/"
|
||||||
|
SYMBOL_TARGET: benchmark_pcap
|
||||||
|
|
||||||
|
stages:
|
||||||
|
- build
|
||||||
|
|
||||||
|
.build_by_travis:
|
||||||
|
before_script:
|
||||||
|
- mkdir -p $BUILD_PADDING_PREFIX/$CI_PROJECT_NAMESPACE/
|
||||||
|
- ln -s $CI_PROJECT_DIR $BUILD_PADDING_PREFIX/$CI_PROJECT_PATH
|
||||||
|
- cd $BUILD_PADDING_PREFIX/$CI_PROJECT_PATH
|
||||||
|
- chmod +x ./ci/travis.sh
|
||||||
|
script:
|
||||||
|
- yum makecache fast
|
||||||
|
- ./ci/travis.sh
|
||||||
|
- cd build
|
||||||
|
tags:
|
||||||
|
- share
|
||||||
|
|
||||||
|
|
||||||
|
develop_build_release:
|
||||||
|
stage: build
|
||||||
|
extends: .build_by_travis
|
||||||
|
variables:
|
||||||
|
BUILD_TYPE: RelWithDebInfo
|
||||||
|
PACKAGE: 1
|
||||||
|
UPLOAD: 1
|
||||||
|
PULP3_REPO_NAME: platform-testing-x86_64.el7
|
||||||
|
PULP3_DIST_NAME: platform-testing-x86_64.el7
|
||||||
|
artifacts:
|
||||||
|
name: "benchmark_pcap-$CI_COMMIT_REF_NAME-release"
|
||||||
|
paths:
|
||||||
|
- build/*.rpm
|
||||||
|
tags:
|
||||||
|
- share
|
||||||
|
only:
|
||||||
|
- /^dev*.*$/i
|
||||||
|
- /^rel*.*$/i
|
||||||
|
- /^master.*$/i
|
||||||
|
|
||||||
|
|
||||||
|
release_build_release:
|
||||||
|
stage: build
|
||||||
|
variables:
|
||||||
|
BUILD_TYPE: RelWithDebInfo
|
||||||
|
PACKAGE: 1
|
||||||
|
UPLOAD: 1
|
||||||
|
PULP3_REPO_NAME: platform-stable-x86_64.el7
|
||||||
|
PULP3_DIST_NAME: platform-stable-x86_64.el7
|
||||||
|
extends: .build_by_travis
|
||||||
|
artifacts:
|
||||||
|
name: "benchmark_pcap-$CI_COMMIT_REF_NAME-release"
|
||||||
|
paths:
|
||||||
|
- build/*.rpm
|
||||||
|
tags:
|
||||||
|
- share
|
||||||
|
only:
|
||||||
|
- tags
|
||||||
BIN
4over6/4over6.pcap
Normal file
BIN
4over6/4over6.pcap
Normal file
Binary file not shown.
240
CMakeLists.txt
Normal file
240
CMakeLists.txt
Normal file
@@ -0,0 +1,240 @@
|
|||||||
|
cmake_minimum_required(VERSION 2.8)
|
||||||
|
|
||||||
|
set(project_name benchmark_pcap)
|
||||||
|
|
||||||
|
project(${project_name})
|
||||||
|
|
||||||
|
set(CMAKE_INSTALL_PREFIX /home/mesasoft/benchmark_pcap)
|
||||||
|
|
||||||
|
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
|
||||||
|
include(Version)
|
||||||
|
|
||||||
|
set(CMAKE_MACOSX_RPATH 0)
|
||||||
|
|
||||||
|
include(Package)
|
||||||
|
|
||||||
|
#
|
||||||
|
# 目录名称abc和abc/有很大的区别:
|
||||||
|
# 如果目录名不以/结尾,那么这个目录将被安装为目标路径下的abc空目录;
|
||||||
|
# 如果目录名以/结尾,代表将这个目录中的内容安装到目标路径,但不包括这个目录本身.
|
||||||
|
#
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/4over4 DESTINATION . COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/4over4/ DESTINATION ./4over4 COMPONENT EXECUTABLE)
|
||||||
|
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/4over6 DESTINATION . COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/4over6/ DESTINATION ./4over6 COMPONENT EXECUTABLE)
|
||||||
|
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/6over4 DESTINATION . COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/6over4/ DESTINATION ./6over4 COMPONENT EXECUTABLE)
|
||||||
|
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/6over6 DESTINATION . COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/6over6/ DESTINATION ./6over6 COMPONENT EXECUTABLE)
|
||||||
|
|
||||||
|
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/arp DESTINATION . COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/arp/ DESTINATION ./arp COMPONENT EXECUTABLE)
|
||||||
|
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/bfd DESTINATION . COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/bfd/ DESTINATION ./bfd COMPONENT EXECUTABLE)
|
||||||
|
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/bgp DESTINATION . COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/bgp/ DESTINATION ./bgp COMPONENT EXECUTABLE)
|
||||||
|
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/bitcoin DESTINATION . COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/bitcoin/ DESTINATION ./bitcoin COMPONENT EXECUTABLE)
|
||||||
|
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/bittorrent DESTINATION . COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/bittorrent/ DESTINATION ./bittorrent COMPONENT EXECUTABLE)
|
||||||
|
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/dhcp DESTINATION . COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/dhcp/ DESTINATION ./dhcp COMPONENT EXECUTABLE)
|
||||||
|
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/dns DESTINATION . COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/dns/ DESTINATION ./dns COMPONENT EXECUTABLE)
|
||||||
|
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/echo DESTINATION . COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/echo/ DESTINATION ./echo COMPONENT EXECUTABLE)
|
||||||
|
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/eigrp DESTINATION . COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/eigrp/ DESTINATION ./eigrp COMPONENT EXECUTABLE)
|
||||||
|
|
||||||
|
########################
|
||||||
|
# for gtest only
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/for_gtest_only DESTINATION . COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/for_gtest_only/asymmetric DESTINATION ./for_gtest_only COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/for_gtest_only/control DESTINATION ./for_gtest_only COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/for_gtest_only/duplicate_packet DESTINATION ./for_gtest_only COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/for_gtest_only/fake_marsio DESTINATION ./for_gtest_only COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/for_gtest_only/gtp DESTINATION ./for_gtest_only COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/for_gtest_only/hybrid_pcap DESTINATION ./for_gtest_only COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/for_gtest_only/hybrid_pcap/dataset DESTINATION ./for_gtest_only COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/for_gtest_only/inject DESTINATION ./for_gtest_only COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/for_gtest_only/inline DESTINATION ./for_gtest_only COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/for_gtest_only/ipv6 DESTINATION ./for_gtest_only COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/for_gtest_only/jump_layer DESTINATION ./for_gtest_only COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/for_gtest_only/mpls DESTINATION ./for_gtest_only COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/for_gtest_only/performance DESTINATION ./for_gtest_only COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/for_gtest_only/plugctrl DESTINATION ./for_gtest_only COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/for_gtest_only/proxy DESTINATION ./for_gtest_only COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/for_gtest_only/tcp DESTINATION ./for_gtest_only COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/for_gtest_only/tcp/dumpfile.list DESTINATION ./for_gtest_only/tcp COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/for_gtest_only/timer DESTINATION ./for_gtest_only COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/for_gtest_only/transparent DESTINATION ./for_gtest_only COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/for_gtest_only/tunnel DESTINATION ./for_gtest_only COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/for_gtest_only/udp DESTINATION ./for_gtest_only COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/for_gtest_only/vlan DESTINATION ./for_gtest_only COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/for_gtest_only/vxlan DESTINATION ./for_gtest_only COMPONENT EXECUTABLE)
|
||||||
|
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/for_gtest_only/asymmetric/ DESTINATION ./for_gtest_only/asymmetric COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/for_gtest_only/control/ DESTINATION ./for_gtest_only/control COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/for_gtest_only/duplicate_packet/ DESTINATION ./for_gtest_only/duplicate_packet COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/for_gtest_only/fake_marsio/ DESTINATION ./for_gtest_only/fake_marsio COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/for_gtest_only/gtp/ DESTINATION ./for_gtest_only/gtp COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/for_gtest_only/hybrid_pcap/ DESTINATION ./for_gtest_only/hybrid_pcap COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/for_gtest_only/hybrid_pcap/dataset/ DESTINATION ./for_gtest_only/hybrid_pcap/dataset COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/for_gtest_only/inject/ DESTINATION ./for_gtest_only/inject COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/for_gtest_only/inline/ DESTINATION ./for_gtest_only/inline COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/for_gtest_only/ipv6/ DESTINATION ./for_gtest_only/ipv6 COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/for_gtest_only/jump_layer/ DESTINATION ./for_gtest_only/jump_layer COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/for_gtest_only/mpls/ DESTINATION ./for_gtest_only/mpls COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/for_gtest_only/performance/ DESTINATION ./for_gtest_only/performance COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/for_gtest_only/plugctrl/ DESTINATION ./for_gtest_only/plugctrl COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/for_gtest_only/proxy/ DESTINATION ./for_gtest_only/proxy COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/for_gtest_only/tcp/ DESTINATION ./for_gtest_only/tcp COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/for_gtest_only/tcp/dumpfile.list/ DESTINATION ./for_gtest_only/tcp/dumpfile.list COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/for_gtest_only/timer/ DESTINATION ./for_gtest_only/timer COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/for_gtest_only/transparent/ DESTINATION ./for_gtest_only/transparent COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/for_gtest_only/tunnel/ DESTINATION ./for_gtest_only/tunnel COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/for_gtest_only/udp/ DESTINATION ./for_gtest_only/udp COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/for_gtest_only/vlan/ DESTINATION ./for_gtest_only/vlan COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/for_gtest_only/vxlan/ DESTINATION ./for_gtest_only/vlan COMPONENT EXECUTABLE)
|
||||||
|
########################
|
||||||
|
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/ftp DESTINATION . COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/ftp/ DESTINATION ./ftp COMPONENT EXECUTABLE)
|
||||||
|
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/gre DESTINATION . COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/gre/ DESTINATION ./gre COMPONENT EXECUTABLE)
|
||||||
|
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/gtp DESTINATION . COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/gtp/ DESTINATION ./gtp COMPONENT EXECUTABLE)
|
||||||
|
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/H.223 DESTINATION . COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/H.223/ DESTINATION ./H.223 COMPONENT EXECUTABLE)
|
||||||
|
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/http DESTINATION . COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/http/ DESTINATION ./http COMPONENT EXECUTABLE)
|
||||||
|
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/hybrid_multi_layer_tunnel DESTINATION . COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/hybrid_multi_layer_tunnel/ DESTINATION ./hybrid_multi_layer_tunnel COMPONENT EXECUTABLE)
|
||||||
|
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/icmp DESTINATION . COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/icmp/ DESTINATION ./icmp COMPONENT EXECUTABLE)
|
||||||
|
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/ipv4 DESTINATION . COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/ipv4/ DESTINATION ./ipv4 COMPONENT EXECUTABLE)
|
||||||
|
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/ipv6 DESTINATION . COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/ipv6/ DESTINATION ./ipv6 COMPONENT EXECUTABLE)
|
||||||
|
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/isakmp DESTINATION . COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/isakmp/ DESTINATION .isakmp COMPONENT EXECUTABLE)
|
||||||
|
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/l2tp DESTINATION . COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/l2tp/ DESTINATION ./l2tp COMPONENT EXECUTABLE)
|
||||||
|
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/line_protocol DESTINATION . COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/line_protocol/ DESTINATION ./line_protocol COMPONENT EXECUTABLE)
|
||||||
|
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/mac_in_mac DESTINATION . COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/mac_in_mac/ DESTINATION ./mac_in_mac COMPONENT EXECUTABLE)
|
||||||
|
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/malform DESTINATION . COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/malform/GRE DESTINATION ./malform COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/malform/HTTP DESTINATION ./malform COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/malform/IP DESTINATION ./malform COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/malform/rtmp DESTINATION ./malform COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/malform/TCP DESTINATION ./malform COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/malform/UDP DESTINATION ./malform COMPONENT EXECUTABLE)
|
||||||
|
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/malform/GRE/ DESTINATION ./malform/GRE COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/malform/HTTP/ DESTINATION ./malform/HTTP COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/malform/IP/ DESTINATION ./malform/IP COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/malform/rtmp/ DESTINATION ./malform/rtmp COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/malform/TCP/ DESTINATION ./malform/TCP COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/malform/UDP/ DESTINATION ./malform/UDP COMPONENT EXECUTABLE)
|
||||||
|
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/memcached DESTINATION . COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/memcached/ DESTINATION ./memcached COMPONENT EXECUTABLE)
|
||||||
|
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/mms DESTINATION . COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/mms/ DESTINATION ./mss COMPONENT EXECUTABLE)
|
||||||
|
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/mpls DESTINATION . COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/mpls/ DESTINATION ./mpls COMPONENT EXECUTABLE)
|
||||||
|
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/ntp DESTINATION . COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/ntp/ DESTINATION ./ntp COMPONENT EXECUTABLE)
|
||||||
|
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/oicq DESTINATION . COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/oicq/ DESTINATION ./oicq COMPONENT EXECUTABLE)
|
||||||
|
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/pppoe DESTINATION . COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/pppoe/ DESTINATION ./pppoe COMPONENT EXECUTABLE)
|
||||||
|
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/pptp DESTINATION . COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/pptp/ DESTINATION ./pptp COMPONENT EXECUTABLE)
|
||||||
|
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/quic DESTINATION . COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/quic/ DESTINATION ./quic COMPONENT EXECUTABLE)
|
||||||
|
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/radius DESTINATION . COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/radius/ DESTINATION ./radius COMPONENT EXECUTABLE)
|
||||||
|
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/rtmp DESTINATION . COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/rtmp/ DESTINATION ./rtmp COMPONENT EXECUTABLE)
|
||||||
|
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/rtsp DESTINATION . COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/rtsp/ DESTINATION ./rtsp COMPONENT EXECUTABLE)
|
||||||
|
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/sctp DESTINATION . COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/sctp/ DESTINATION ./sctp COMPONENT EXECUTABLE)
|
||||||
|
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/sip DESTINATION . COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/sip/ DESTINATION ./sip COMPONENT EXECUTABLE)
|
||||||
|
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/smb DESTINATION . COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/smb/ DESTINATION ./smb COMPONENT EXECUTABLE)
|
||||||
|
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/snmp DESTINATION . COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/snmp/ DESTINATION ./snmp COMPONENT EXECUTABLE)
|
||||||
|
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/socks DESTINATION . COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/socks/ DESTINATION ./socks COMPONENT EXECUTABLE)
|
||||||
|
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/ssdp DESTINATION . COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/ssdp/ DESTINATION ./ssdp COMPONENT EXECUTABLE)
|
||||||
|
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/statd DESTINATION . COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/statd/ DESTINATION ./statd COMPONENT EXECUTABLE)
|
||||||
|
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/stp DESTINATION . COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/stp/ DESTINATION ./stp COMPONENT EXECUTABLE)
|
||||||
|
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/tcp DESTINATION . COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/tcp/ DESTINATION ./tcp COMPONENT EXECUTABLE)
|
||||||
|
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/telnet DESTINATION . COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/telnet/ DESTINATION ./telnet COMPONENT EXECUTABLE)
|
||||||
|
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/teredo DESTINATION . COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/teredo/ DESTINATION ./teredo COMPONENT EXECUTABLE)
|
||||||
|
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/udp DESTINATION . COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/udp/ DESTINATION ./udp COMPONENT EXECUTABLE)
|
||||||
|
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/vlan DESTINATION . COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/vlan/ DESTINATION ./vlan COMPONENT EXECUTABLE)
|
||||||
|
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/vxlan DESTINATION . COMPONENT EXECUTABLE)
|
||||||
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/vxlan/ DESTINATION ./vxlan COMPONENT EXECUTABLE)
|
||||||
BIN
arp/arp_over_vxlan.pcap
Normal file
BIN
arp/arp_over_vxlan.pcap
Normal file
Binary file not shown.
1268
autorevision.sh
Normal file
1268
autorevision.sh
Normal file
File diff suppressed because it is too large
Load Diff
48
ci/get-nprocessors.sh
Normal file
48
ci/get-nprocessors.sh
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Copyright 2017 Google Inc.
|
||||||
|
# All Rights Reserved.
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# Redistribution and use in source and binary forms, with or without
|
||||||
|
# modification, are permitted provided that the following conditions are
|
||||||
|
# met:
|
||||||
|
#
|
||||||
|
# * Redistributions of source code must retain the above copyright
|
||||||
|
# notice, this list of conditions and the following disclaimer.
|
||||||
|
# * Redistributions in binary form must reproduce the above
|
||||||
|
# copyright notice, this list of conditions and the following disclaimer
|
||||||
|
# in the documentation and/or other materials provided with the
|
||||||
|
# distribution.
|
||||||
|
# * Neither the name of Google Inc. nor the names of its
|
||||||
|
# contributors may be used to endorse or promote products derived from
|
||||||
|
# this software without specific prior written permission.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
|
# This file is typically sourced by another script.
|
||||||
|
# if possible, ask for the precise number of processors,
|
||||||
|
# otherwise take 2 processors as reasonable default; see
|
||||||
|
# https://docs.travis-ci.com/user/speeding-up-the-build/#Makefile-optimization
|
||||||
|
if [ -x /usr/bin/getconf ]; then
|
||||||
|
NPROCESSORS=$(/usr/bin/getconf _NPROCESSORS_ONLN)
|
||||||
|
else
|
||||||
|
NPROCESSORS=2
|
||||||
|
fi
|
||||||
|
|
||||||
|
# as of 2017-09-04 Travis CI reports 32 processors, but GCC build
|
||||||
|
# crashes if parallelized too much (maybe memory consumption problem),
|
||||||
|
# so limit to 4 processors for the time being.
|
||||||
|
if [ $NPROCESSORS -gt 4 ] ; then
|
||||||
|
echo "$0:Note: Limiting processors to use by make from $NPROCESSORS to 4."
|
||||||
|
NPROCESSORS=4
|
||||||
|
fi
|
||||||
3
ci/perpare_pulp3_netrc.sh
Normal file
3
ci/perpare_pulp3_netrc.sh
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
#!/usr/bin/env sh
|
||||||
|
set -evx
|
||||||
|
echo "machine ${PULP3_SERVER_URL}\nlogin ${PULP3_SERVER_LOGIN}\npassword ${PULP3_SERVER_PASSWORD}\n" > ~/.netrc
|
||||||
79
ci/travis.sh
Normal file
79
ci/travis.sh
Normal file
@@ -0,0 +1,79 @@
|
|||||||
|
#!/usr/bin/env sh
|
||||||
|
set -evx
|
||||||
|
|
||||||
|
chmod +x ci/get-nprocessors.sh
|
||||||
|
. ci/get-nprocessors.sh
|
||||||
|
|
||||||
|
# if possible, ask for the precise number of processors,
|
||||||
|
# otherwise take 2 processors as reasonable default; see
|
||||||
|
# https://docs.travis-ci.com/user/speeding-up-the-build/#Makefile-optimization
|
||||||
|
if [ -x /usr/bin/getconf ]; then
|
||||||
|
NPROCESSORS=$(/usr/bin/getconf _NPROCESSORS_ONLN)
|
||||||
|
else
|
||||||
|
NPROCESSORS=2
|
||||||
|
fi
|
||||||
|
|
||||||
|
# as of 2017-09-04 Travis CI reports 32 processors, but GCC build
|
||||||
|
# crashes if parallelized too much (maybe memory consumption problem),
|
||||||
|
# so limit to 4 processors for the time being.
|
||||||
|
if [ $NPROCESSORS -gt 4 ] ; then
|
||||||
|
echo "$0:Note: Limiting processors to use by make from $NPROCESSORS to 4."
|
||||||
|
NPROCESSORS=4
|
||||||
|
fi
|
||||||
|
|
||||||
|
NPROCESSORS=1
|
||||||
|
|
||||||
|
# Tell make to use the processors. No preceding '-' required.
|
||||||
|
MAKEFLAGS="j${NPROCESSORS}"
|
||||||
|
export MAKEFLAGS
|
||||||
|
|
||||||
|
env | sort
|
||||||
|
|
||||||
|
# Set default values to OFF for these variables if not specified.
|
||||||
|
: "${NO_EXCEPTION:=OFF}"
|
||||||
|
: "${NO_RTTI:=OFF}"
|
||||||
|
: "${COMPILER_IS_GNUCXX:=OFF}"
|
||||||
|
|
||||||
|
# Install dependency from YUM
|
||||||
|
if [ -n "${INSTALL_DEPENDENCY_LIBRARY}" ]; then
|
||||||
|
yum install -y $INSTALL_DEPENDENCY_LIBRARY
|
||||||
|
source /etc/profile.d/framework.sh
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ $ASAN_OPTION ];then
|
||||||
|
source /opt/rh/devtoolset-7/enable
|
||||||
|
fi
|
||||||
|
|
||||||
|
mkdir build || true
|
||||||
|
cd build
|
||||||
|
|
||||||
|
cmake3 -DCMAKE_CXX_FLAGS=$CXX_FLAGS \
|
||||||
|
-DCAPTURE_MODE=$CAPTURE_MODE \
|
||||||
|
-DPLATFORM_MODE=$PLATFORM_MODE \
|
||||||
|
-DCMAKE_BUILD_TYPE=$BUILD_TYPE \
|
||||||
|
-DCMAKE_INSTALL_PREFIX=$INSTALL_PREFIX \
|
||||||
|
-DVERSION_DAILY_BUILD=$TESTING_VERSION_BUILD \
|
||||||
|
-DMEM_POOL=$MEM_POOL \
|
||||||
|
-DASAN_OPTION=$ASAN_OPTION \
|
||||||
|
..
|
||||||
|
|
||||||
|
make
|
||||||
|
|
||||||
|
if [ -n "${PACKAGE}" ]; then
|
||||||
|
make package
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -n "${UPLOAD}" ]; then
|
||||||
|
cp ~/rpm_upload_tools.py ./
|
||||||
|
python3 rpm_upload_tools.py ${PULP3_REPO_NAME} ${PULP3_DIST_NAME} *.rpm
|
||||||
|
#rpm -i $SYMBOL_TARGET*debuginfo*.rpm
|
||||||
|
#_symbol_file=`find /usr/lib/debug/ -name "$SYMBOL_TARGET.debug"`
|
||||||
|
#cp $_symbol_file ${_symbol_file}info.${CI_COMMIT_SHORT_SHA}
|
||||||
|
#sentry-cli upload-dif -t elf ${_symbol_file}info.${CI_COMMIT_SHORT_SHA}
|
||||||
|
fi
|
||||||
|
|
||||||
|
#if [ -n "${UPLOAD_SYMBOL_FILES}" ]; then
|
||||||
|
# rpm -i tfe*debuginfo*.rpm
|
||||||
|
# cp /usr/lib/debug/opt/tsg/tfe/bin/tfe.debug /tmp/tfe.debuginfo.${CI_COMMIT_SHORT_SHA}
|
||||||
|
# sentry-cli upload-dif -t elf /tmp/tfe.debuginfo.${CI_COMMIT_SHORT_SHA}
|
||||||
|
#fi
|
||||||
51
cmake/Package.cmake
Normal file
51
cmake/Package.cmake
Normal file
@@ -0,0 +1,51 @@
|
|||||||
|
|
||||||
|
set(MY_RPM_NAME_PREFIX "${project_name}")
|
||||||
|
|
||||||
|
message(STATUS "Package: ${MY_RPM_NAME_PREFIX}")
|
||||||
|
|
||||||
|
set(CPACK_PACKAGE_VECDOR "MESA")
|
||||||
|
set(CPACK_PACKAGE_VERSION_MAJOR "${VERSION_MAJOR}")
|
||||||
|
set(CPACK_PACKAGE_VERSION_MINOR "${VERSION_MINOR}")
|
||||||
|
set(CPACK_PACKAGE_VERSION_PATCH "${VERSION_PATCH}.${VERSION_BUILD}")
|
||||||
|
set(CPACK_PACKAGING_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX})
|
||||||
|
set(CPACK_PACKAGE_VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}.${VERSION_BUILD}")
|
||||||
|
execute_process(COMMAND bash -c "echo -ne \"`uname -r | awk -F'.' '{print $5\".\"$6\".\"$7}'`\"" OUTPUT_VARIABLE SYSTEM_VERSION)
|
||||||
|
|
||||||
|
# RPM Build
|
||||||
|
set(CPACK_GENERATOR "RPM")
|
||||||
|
set(CPACK_RPM_PACKAGE_VENDOR "MESA")
|
||||||
|
set(CPACK_RPM_PACKAGE_AUTOREQPROV "yes")
|
||||||
|
set(CPACK_RPM_PACKAGE_RELEASE_LIBRARY "on")
|
||||||
|
set(CPACK_RPM_DEBUGINFO_PACKAGE "on")
|
||||||
|
set(CPACK_RPM_PACKAGE_DEBUG 1)
|
||||||
|
|
||||||
|
set(CPACK_RPM_COMPONENT_INSTALL ON)
|
||||||
|
set(CPACK_COMPONENTS_IGNORE_GROUPS 1)
|
||||||
|
set(CPACK_COMPONENTS_GROUPING ONE_PER_GROUP)
|
||||||
|
set(CPACK_COMPONENT_HEADER_DISPLAY_NAME "develop")
|
||||||
|
|
||||||
|
set(CPACK_COMPONENT_EXECUTABLE_REQUIRED TRUE)
|
||||||
|
set(CPACK_RPM_EXECUTABLE_PACKAGE_NAME ${MY_RPM_NAME_PREFIX})
|
||||||
|
set(CPACK_RPM_EXECUTABLE_FILE_NAME "${CPACK_RPM_EXECUTABLE_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-${SYSTEM_VERSION}.rpm")
|
||||||
|
|
||||||
|
|
||||||
|
set(CPACK_COMPONENT_EXECUTABLE_GROUP "executable")
|
||||||
|
|
||||||
|
|
||||||
|
set(CPACK_RPM_HEADER_PACKAGE_REQUIRES_PRE ${CPACK_RPM_LIBRARY_PACKAGE_NAME})
|
||||||
|
set(CPACK_RPM_HEADER_PACKAGE_CONFLICTS ${CPACK_RPM_HEADER_PACKAGE_NAME})
|
||||||
|
|
||||||
|
set(CPACK_COMPONENTS_ALL EXECUTABLE )
|
||||||
|
|
||||||
|
set(CPACK_BUILD_SOURCE_DIRS "${CMAKE_SOURCE_DIR}")
|
||||||
|
|
||||||
|
set(CPACK_RPM_PACKAGE_AUTOREQPROV "no")
|
||||||
|
set(CPACK_RPM_PACKAGE_AUTOREQ "no")
|
||||||
|
|
||||||
|
# Must uninstall the debug package before install release package
|
||||||
|
set(CPACK_RPM_PACKAGE_CONFLICTS ${MY_RPM_NAME_PREFIX})
|
||||||
|
|
||||||
|
# set(CPACK_STRIP_FILES TRUE)
|
||||||
|
include(CPack)
|
||||||
|
|
||||||
|
|
||||||
58
cmake/Version.cmake
Normal file
58
cmake/Version.cmake
Normal file
@@ -0,0 +1,58 @@
|
|||||||
|
|
||||||
|
# Using autorevision.sh to generate version information
|
||||||
|
|
||||||
|
set(__SOURCE_AUTORESIVISION ${CMAKE_SOURCE_DIR}/autorevision.sh)
|
||||||
|
set(__AUTORESIVISION ${CMAKE_BINARY_DIR}/autorevision.sh)
|
||||||
|
set(__VERSION_CACHE ${CMAKE_BINARY_DIR}/version.txt)
|
||||||
|
set(__VERSION_CONFIG ${CMAKE_BINARY_DIR}/version.cmake)
|
||||||
|
|
||||||
|
file(COPY ${__SOURCE_AUTORESIVISION} DESTINATION ${CMAKE_BINARY_DIR}
|
||||||
|
FILE_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE
|
||||||
|
WORLD_READ WORLD_EXECUTE)
|
||||||
|
|
||||||
|
# execute autorevision.sh to generate version information
|
||||||
|
execute_process(COMMAND ${__AUTORESIVISION} -t cmake -o ${__VERSION_CACHE}
|
||||||
|
OUTPUT_FILE ${__VERSION_CONFIG} ERROR_QUIET)
|
||||||
|
include(${__VERSION_CONFIG})
|
||||||
|
|
||||||
|
# extract major, minor, patch version from git tag
|
||||||
|
string(REGEX REPLACE "^v([0-9]+)\\..*" "\\1" VERSION_MAJOR "${VCS_TAG}")
|
||||||
|
string(REGEX REPLACE "^v[0-9]+\\.([0-9]+).*" "\\1" VERSION_MINOR "${VCS_TAG}")
|
||||||
|
string(REGEX REPLACE "^v[0-9]+\\.[0-9]+\\.([0-9]+).*" "\\1" VERSION_PATCH "${VCS_TAG}")
|
||||||
|
|
||||||
|
string(REGEX REPLACE "[T\\:\\+\\-]" "" VERSION_DATE "${VCS_DATE}")
|
||||||
|
|
||||||
|
if(VERSION_DAILY_BUILD)
|
||||||
|
set(VERSION_PATCH ${VERSION_PATCH}.${VERSION_DATE})
|
||||||
|
endif()
|
||||||
|
|
||||||
|
|
||||||
|
if(NOT VERSION_MAJOR)
|
||||||
|
set(VERSION_MAJOR 1)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if(NOT VERSION_MINOR)
|
||||||
|
set(VERSION_MINOR 0)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if(NOT VERSION_PATCH)
|
||||||
|
set(VERSION_PATCH 0)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
set(VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}")
|
||||||
|
set(VERSION_BUILD "${VCS_SHORT_HASH}")
|
||||||
|
|
||||||
|
# print information
|
||||||
|
message(STATUS "Version: ${VERSION}-${VERSION_BUILD}")
|
||||||
|
|
||||||
|
option(DEFINE_GIT_VERSION "Set DEFINE_GIT_VERSION to TRUE or FALSE" TRUE)
|
||||||
|
|
||||||
|
if(DEFINE_GIT_VERSION)
|
||||||
|
|
||||||
|
set(GIT_VERSION "${VERSION}-${CMAKE_BUILD_TYPE}-${VERSION_BUILD}-${VCS_BRANCH}-${VCS_DATE}")
|
||||||
|
message(STATUS "GIT_VERSION: ${GIT_VERSION}")
|
||||||
|
string(REGEX REPLACE "[-:+/\\.]" "_" GIT_VERSION ${GIT_VERSION})
|
||||||
|
|
||||||
|
add_definitions(-DGIT_VERSION=\"${GIT_VERSION}\")
|
||||||
|
|
||||||
|
endif()
|
||||||
BIN
for_gtest_only/fake_marsio/tcp_inject_vlan_mac_flip.pcap
Normal file
BIN
for_gtest_only/fake_marsio/tcp_inject_vlan_mac_flip.pcap
Normal file
Binary file not shown.
BIN
for_gtest_only/gtp/gtp_c2s_no_seq_single_no_asymmetric.pcap
Normal file
BIN
for_gtest_only/gtp/gtp_c2s_no_seq_single_no_asymmetric.pcap
Normal file
Binary file not shown.
BIN
for_gtest_only/gtp/gtp_c2s_seq_single_no_asymmetric.pcap
Normal file
BIN
for_gtest_only/gtp/gtp_c2s_seq_single_no_asymmetric.pcap
Normal file
Binary file not shown.
BIN
for_gtest_only/gtp/gtp_double_for_inject_payload.pcap
Normal file
BIN
for_gtest_only/gtp/gtp_double_for_inject_payload.pcap
Normal file
Binary file not shown.
BIN
for_gtest_only/gtp/gtp_with_extension_hdr_and_seq.pcap
Normal file
BIN
for_gtest_only/gtp/gtp_with_extension_hdr_and_seq.pcap
Normal file
Binary file not shown.
Binary file not shown.
BIN
for_gtest_only/gtp/gtp_with_extension_hdr_no_seq.pcap
Normal file
BIN
for_gtest_only/gtp/gtp_with_extension_hdr_no_seq.pcap
Normal file
Binary file not shown.
BIN
for_gtest_only/inject/tcp_inject_payload_v6.pcap
Normal file
BIN
for_gtest_only/inject/tcp_inject_payload_v6.pcap
Normal file
Binary file not shown.
BIN
for_gtest_only/inject/tcp_rst_with_l2tp.pcap
Normal file
BIN
for_gtest_only/inject/tcp_rst_with_l2tp.pcap
Normal file
Binary file not shown.
BIN
for_gtest_only/inject/tcp_rst_with_l2tp_ppp_hdr_compress.pcap
Normal file
BIN
for_gtest_only/inject/tcp_rst_with_l2tp_ppp_hdr_compress.pcap
Normal file
Binary file not shown.
BIN
for_gtest_only/inline/forward_one_pkt.pcap
Normal file
BIN
for_gtest_only/inline/forward_one_pkt.pcap
Normal file
Binary file not shown.
BIN
for_gtest_only/inline/gre_v0_reverse_inject.pcap
Normal file
BIN
for_gtest_only/inline/gre_v0_reverse_inject.pcap
Normal file
Binary file not shown.
Binary file not shown.
BIN
for_gtest_only/inline/tcp_rst_vxlan_with_hdlc.pcap
Normal file
BIN
for_gtest_only/inline/tcp_rst_vxlan_with_hdlc.pcap
Normal file
Binary file not shown.
BIN
for_gtest_only/inline/tcp_rst_vxlan_with_ppp.pcap
Normal file
BIN
for_gtest_only/inline/tcp_rst_vxlan_with_ppp.pcap
Normal file
Binary file not shown.
BIN
for_gtest_only/jump_layer/ipv4_l2tp_ipv4_udp.pcap
Normal file
BIN
for_gtest_only/jump_layer/ipv4_l2tp_ipv4_udp.pcap
Normal file
Binary file not shown.
BIN
for_gtest_only/jump_layer/ipv4_l2tp_ppp_compress_ipv4_udp.pcap
Normal file
BIN
for_gtest_only/jump_layer/ipv4_l2tp_ppp_compress_ipv4_udp.pcap
Normal file
Binary file not shown.
BIN
for_gtest_only/jump_layer/ipv4_udp_teredo_ipv6_tcp.pcap
Normal file
BIN
for_gtest_only/jump_layer/ipv4_udp_teredo_ipv6_tcp.pcap
Normal file
Binary file not shown.
BIN
for_gtest_only/jump_layer/ipv4_udp_teredo_ipv6_udp.pcap
Normal file
BIN
for_gtest_only/jump_layer/ipv4_udp_teredo_ipv6_udp.pcap
Normal file
Binary file not shown.
BIN
for_gtest_only/linkinfo/get_linkdir_from_mac_0.pcap
Normal file
BIN
for_gtest_only/linkinfo/get_linkdir_from_mac_0.pcap
Normal file
Binary file not shown.
BIN
for_gtest_only/linkinfo/get_linkdir_from_mac_1.pcap
Normal file
BIN
for_gtest_only/linkinfo/get_linkdir_from_mac_1.pcap
Normal file
Binary file not shown.
BIN
for_gtest_only/proxy/fake_proxy.pcap
Normal file
BIN
for_gtest_only/proxy/fake_proxy.pcap
Normal file
Binary file not shown.
BIN
for_gtest_only/tcp/tcp_first_pkt_unorder.pcap
Normal file
BIN
for_gtest_only/tcp/tcp_first_pkt_unorder.pcap
Normal file
Binary file not shown.
BIN
for_gtest_only/tcp/tcp_ipv4_small_sport.pcap
Normal file
BIN
for_gtest_only/tcp/tcp_ipv4_small_sport.pcap
Normal file
Binary file not shown.
BIN
for_gtest_only/tcp/tcp_ipv4_small_sport_with_syn.pcap
Normal file
BIN
for_gtest_only/tcp/tcp_ipv4_small_sport_with_syn.pcap
Normal file
Binary file not shown.
BIN
for_gtest_only/tcp/tcp_ipv6_small_sport.pcap
Normal file
BIN
for_gtest_only/tcp/tcp_ipv6_small_sport.pcap
Normal file
Binary file not shown.
BIN
for_gtest_only/tcp/tcp_lost_pkt_55555.pcap
Normal file
BIN
for_gtest_only/tcp/tcp_lost_pkt_55555.pcap
Normal file
Binary file not shown.
BIN
for_gtest_only/tcp/tcp_overlap.pcap
Normal file
BIN
for_gtest_only/tcp/tcp_overlap.pcap
Normal file
Binary file not shown.
BIN
for_gtest_only/tcp/tcp_retransmit.pcap
Normal file
BIN
for_gtest_only/tcp/tcp_retransmit.pcap
Normal file
Binary file not shown.
BIN
for_gtest_only/tcp/tcp_seq0.pcap
Normal file
BIN
for_gtest_only/tcp/tcp_seq0.pcap
Normal file
Binary file not shown.
BIN
for_gtest_only/tcp/tcp_seq0_with_syn_retransmit.pcap
Normal file
BIN
for_gtest_only/tcp/tcp_seq0_with_syn_retransmit.pcap
Normal file
Binary file not shown.
BIN
for_gtest_only/tcp/tcp_syn.pcap
Normal file
BIN
for_gtest_only/tcp/tcp_syn.pcap
Normal file
Binary file not shown.
BIN
for_gtest_only/udp/udp_ipv6_small_sport.pcap
Normal file
BIN
for_gtest_only/udp/udp_ipv6_small_sport.pcap
Normal file
Binary file not shown.
BIN
for_gtest_only/udp/udp_timeout_reuse.pcap
Normal file
BIN
for_gtest_only/udp/udp_timeout_reuse.pcap
Normal file
Binary file not shown.
BIN
for_gtest_only/vxlan/get_vxlan_info.pcap
Normal file
BIN
for_gtest_only/vxlan/get_vxlan_info.pcap
Normal file
Binary file not shown.
BIN
for_gtest_only/vxlan/vxlan_dns.pcap
Normal file
BIN
for_gtest_only/vxlan/vxlan_dns.pcap
Normal file
Binary file not shown.
BIN
for_gtest_only/vxlan/vxlan_with_hdlc_oicq.pcap
Normal file
BIN
for_gtest_only/vxlan/vxlan_with_hdlc_oicq.pcap
Normal file
Binary file not shown.
BIN
for_gtest_only/vxlan/vxlan_with_ppp_oicq.pcap
Normal file
BIN
for_gtest_only/vxlan/vxlan_with_ppp_oicq.pcap
Normal file
Binary file not shown.
BIN
gre/gre-in-gre-icmp.pcap
Normal file
BIN
gre/gre-in-gre-icmp.pcap
Normal file
Binary file not shown.
BIN
gre/gre-in-gre.pcap
Normal file
BIN
gre/gre-in-gre.pcap
Normal file
Binary file not shown.
BIN
gre/gre_4over6_dns.pcap
Normal file
BIN
gre/gre_4over6_dns.pcap
Normal file
Binary file not shown.
BIN
gtp/gtp_over_ipv6_with_extension.pcap
Normal file
BIN
gtp/gtp_over_ipv6_with_extension.pcap
Normal file
Binary file not shown.
BIN
gtp/gtp_over_ipv6_with_extension_seq.pcap
Normal file
BIN
gtp/gtp_over_ipv6_with_extension_seq.pcap
Normal file
Binary file not shown.
BIN
gtp/ipv4_over_gtp_over_ipv6.pcap
Normal file
BIN
gtp/ipv4_over_gtp_over_ipv6.pcap
Normal file
Binary file not shown.
BIN
gtp/ipv6_over_gtp_over_ipv4.pcap
Normal file
BIN
gtp/ipv6_over_gtp_over_ipv4.pcap
Normal file
Binary file not shown.
BIN
gtp/ipv6_over_gtp_over_ipv6.pcap
Normal file
BIN
gtp/ipv6_over_gtp_over_ipv6.pcap
Normal file
Binary file not shown.
BIN
http/http_keepalive_with_payload.pcap
Normal file
BIN
http/http_keepalive_with_payload.pcap
Normal file
Binary file not shown.
BIN
ipv4/ip_frag_tcp.pcap
Normal file
BIN
ipv4/ip_frag_tcp.pcap
Normal file
Binary file not shown.
BIN
isakmp/IKEv1-isakmp-main-mode.pcap
Normal file
BIN
isakmp/IKEv1-isakmp-main-mode.pcap
Normal file
Binary file not shown.
BIN
isakmp/ipsec-ah-tunnel.pcap
Normal file
BIN
isakmp/ipsec-ah-tunnel.pcap
Normal file
Binary file not shown.
BIN
l2tp/quic_without_ppp_control_address.pcap
Normal file
BIN
l2tp/quic_without_ppp_control_address.pcap
Normal file
Binary file not shown.
BIN
l2tp/tcp_without_ppp_control_address.pcap
Normal file
BIN
l2tp/tcp_without_ppp_control_address.pcap
Normal file
Binary file not shown.
BIN
nbns/nbns.pcap
Normal file
BIN
nbns/nbns.pcap
Normal file
Binary file not shown.
BIN
nbns/nbns_inline.pcap
Normal file
BIN
nbns/nbns_inline.pcap
Normal file
Binary file not shown.
BIN
oicq/oicq_sample.pcap
Normal file
BIN
oicq/oicq_sample.pcap
Normal file
Binary file not shown.
BIN
quic/quic_sample.pcap
Normal file
BIN
quic/quic_sample.pcap
Normal file
Binary file not shown.
BIN
ssdp/ssdp_inline.pcap
Normal file
BIN
ssdp/ssdp_inline.pcap
Normal file
Binary file not shown.
BIN
tcp/tcp_port_reuse_after_200ms.pcap
Normal file
BIN
tcp/tcp_port_reuse_after_200ms.pcap
Normal file
Binary file not shown.
BIN
vxlan/bfd_small_sport.pcap
Normal file
BIN
vxlan/bfd_small_sport.pcap
Normal file
Binary file not shown.
BIN
vxlan/vxlan_inner_3_vlan_udp.pcap
Normal file
BIN
vxlan/vxlan_inner_3_vlan_udp.pcap
Normal file
Binary file not shown.
BIN
vxlan/vxlan_inner_two_vlan_dns.pcap
Normal file
BIN
vxlan/vxlan_inner_two_vlan_dns.pcap
Normal file
Binary file not shown.
BIN
vxlan/vxlan_inner_two_vlan_http.pcap
Normal file
BIN
vxlan/vxlan_inner_two_vlan_http.pcap
Normal file
Binary file not shown.
BIN
vxlan/vxlan_ipv4_frag_icmp.pcap
Normal file
BIN
vxlan/vxlan_ipv4_frag_icmp.pcap
Normal file
Binary file not shown.
BIN
vxlan/vxlan_ipv4_frag_udp.pcap
Normal file
BIN
vxlan/vxlan_ipv4_frag_udp.pcap
Normal file
Binary file not shown.
BIN
vxlan/vxlan_with_hdlc.pcap
Normal file
BIN
vxlan/vxlan_with_hdlc.pcap
Normal file
Binary file not shown.
BIN
vxlan/vxlan_with_ppp.pcap
Normal file
BIN
vxlan/vxlan_with_ppp.pcap
Normal file
Binary file not shown.
BIN
vxlan/vxlan_xxg_161.pcap
Normal file
BIN
vxlan/vxlan_xxg_161.pcap
Normal file
Binary file not shown.
Reference in New Issue
Block a user