Skip to content

Commit

Permalink
update code for GUI + quic attacker + ivy compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
ElNiak committed Jun 23, 2023
2 parents 22767b0 + 4d24a65 commit 551456f
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 6 deletions.
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,12 @@ change-permissions:
sudo chown -R $(USER):$(USER) $(PWD)/QUIC-Ivy/doc/examples/quic/test/temp
sudo chown -R $(USER):$(USER) $(PWD)/QUIC-Ivy/doc/examples/quic/build

test-local-server-rfc9000:
python3 run_experiments.py --mode server --categories global_tests --update_include_tls \
--timeout 180 --iter $(ITER) --compile --initial_version 1 --alpn hq-interop
test-local-client-rfc9000:
python3 run_experiments.py --mode client --categories global_tests --update_include_tls \
--timeout 180 --iter $(ITER) --compile --initial_version 1 --alpn hq-interop

test-vnet:
docker run --privileged -it picoquic-ivy ./setup_namespace.sh
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ git stash
git fetch
git checkout d272be10b93b09b75325b139090007dae16b9f16
git pull
export PYTHONPATH=$PWD
export PYTHONPATH=${PYTHONPATH}:$PWD
source $HOME/.cargo/env

sudo apt install --yes software-properties-common
Expand Down
19 changes: 15 additions & 4 deletions scripts/installers/implementation-installer/install_mvfst.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Possible error: c++: internal compiler error: Killed (program cc1plus)

cd $PROOTPATH/quic-implementations/
sudo apt remove --fix-missing -y cmake
wget https://github.com/Kitware/CMake/releases/download/v3.12.4/cmake-3.12.4-Linux-x86_64.sh &> /dev/null
chmod +x cmake-3.12.4-Linux-x86_64.sh
mkdir /opt/cmake
bash cmake-3.12.4-Linux-x86_64.sh --skip-license --prefix=/opt/cmake
ln -s /opt/cmake/bin/cmake /usr/local/bin/cmake
cmake --version


cd $PROOTPATH/quic-implementations/mvfst/
git stash
git fetch
Expand All @@ -11,10 +21,11 @@ bash build_helper.sh
echo "----> Cloning mvfst apply"
cd $PROOTPATH/quic-implementations/mvfst/quic/samples

rm -r $PROOTPATH/quic-implementations/mvfst/quic/samples/echo
cp -r $PROOTPATH/ressources/mvfst/rfc9000/echo/ $PROOTPATH/quic-implementations/mvfst/quic/samples/
cp $PROOTPATH/ressources/mvfst/rfc9000/QuicClientTransport.h $PROOTPATH/quic-implementations/mvfst/quic/client/QuicClientTransport.h
cp $PROOTPATH/ressources/mvfst/rfc9000/QuicConstants.h $PROOTPATH/quic-implementations/mvfst/quic/QuicConstants.h
# rm -r $PROOTPATH/quic-implementations/mvfst/quic/samples/echo
# cp -r $PROOTPATH/ressources/mvfst/rfc9000/echo/ $PROOTPATH/quic-implementations/mvfst/quic/samples/
# cp $PROOTPATH/ressources/mvfst/rfc9000/QuicClientTransport.h $PROOTPATH/quic-implementations/mvfst/quic/client/QuicClientTransport.h
# cp $PROOTPATH/ressources/mvfst/rfc9000/QuicConstants.h $PROOTPATH/quic-implementations/mvfst/quic/QuicConstants.h

cmake .
make
cd $PROOTPATH/quic-implementations/mvfst/_build/build/quic/samples
Expand Down
3 changes: 2 additions & 1 deletion utils/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
IVY_DIR = SOURCE_DIR + '/QUIC-Ivy'
ENV_VAR = {
"PROOTPATH": SOURCE_DIR,
#"PYTHONPATH": IMPLEM_DIR + "/aioquic",
"PYTHONPATH": "${PYTHONPATH}:" + IMPLEM_DIR + "/aioquic",
"PATH": os.getenv('PATH') + ":/go/bin", # "/go/bin:${"+ os.getenv('PATH') +"}", #
"ZRTT_SSLKEYLOGFILE": SOURCE_DIR + "/QUIC-Ivy/doc/examples/quic/last_tls_key.txt",
"RETRY_TOKEN_FILE": SOURCE_DIR + "/QUIC-Ivy/doc/examples/quic/last_retry_token.txt",
"NEW_TOKEN_FILE": SOURCE_DIR + "/QUIC-Ivy/doc/examples/quic/last_new_token.txt",
Expand Down

0 comments on commit 551456f

Please sign in to comment.