Compare commits
8 Commits
with-spark
...
master
Author | SHA1 | Date |
---|---|---|
Jack Yu | 4e3942eb31 | |
Jack Yu | 24096b896d | |
Jack Yu | 86a52a6f52 | |
Jack Yu | c1b65d744e | |
Jack Yu | 8f1a608c66 | |
Jack Yu | 37c4bad792 | |
Jack Yu | 7300236791 | |
Jack Yu | 8943eceb93 |
|
@ -1,5 +1,5 @@
|
||||||
--- epan.h.old 2024-04-20 00:34:15.534364916 -0700
|
--- a/epan/epan.h 2024-04-20 00:34:15.534364916 -0700
|
||||||
+++ epan.h 2024-04-20 00:34:25.094467480 -0700
|
+++ b/epan/epan.h 2024-04-20 00:34:25.094467480 -0700
|
||||||
@@ -10,9 +10,6 @@
|
@@ -10,9 +10,6 @@
|
||||||
#ifndef __EPAN_H__
|
#ifndef __EPAN_H__
|
||||||
#define __EPAN_H__
|
#define __EPAN_H__
|
||||||
|
|
|
@ -0,0 +1,25 @@
|
||||||
|
diff --git a/epan/dissectors/asn1/nr-rrc/nr-rrc.cnf b/epan/dissectors/asn1/nr-rrc/nr-rrc.cnf
|
||||||
|
index fd478d8969..b3b89250e0 100644
|
||||||
|
--- a/epan/dissectors/asn1/nr-rrc/nr-rrc.cnf
|
||||||
|
+++ b/epan/dissectors/asn1/nr-rrc/nr-rrc.cnf
|
||||||
|
@@ -145,7 +145,7 @@ PH-TypeListMCG
|
||||||
|
PH-TypeListSCG
|
||||||
|
RA-ReportList-r16
|
||||||
|
RACH-ConfigCommon
|
||||||
|
-RadioBearerConfig
|
||||||
|
+RadioBearerConfig @radio_bearer_conf
|
||||||
|
ReferenceTime-r16
|
||||||
|
RRCReconfiguration @rrc_reconf
|
||||||
|
RRCReconfigurationComplete
|
||||||
|
diff --git a/epan/dissectors/packet-nr-rrc.c b/epan/dissectors/packet-nr-rrc.c
|
||||||
|
index 75977474c0..cfa8602711 100644
|
||||||
|
--- a/epan/dissectors/packet-nr-rrc.c
|
||||||
|
+++ b/epan/dissectors/packet-nr-rrc.c
|
||||||
|
@@ -112214,6 +112214,7 @@ proto_register_nr_rrc(void) {
|
||||||
|
register_dissector("nr-rrc.ue_nr_cap", dissect_nr_rrc_UE_NR_Capability_PDU, proto_nr_rrc);
|
||||||
|
register_dissector("nr-rrc.sbcch.sl.bch", dissect_SBCCH_SL_BCH_Message_PDU, proto_nr_rrc);
|
||||||
|
register_dissector("nr-rrc.scch", dissect_SCCH_Message_PDU, proto_nr_rrc);
|
||||||
|
+ register_dissector("nr-rrc.radio_bearer_conf", dissect_nr_rrc_RadioBearerConfig_PDU, proto_nr_rrc);
|
||||||
|
|
||||||
|
|
||||||
|
/*--- End of included file: packet-nr-rrc-dis-reg.c ---*/
|
|
@ -8,6 +8,7 @@ From: ubuntu:22.04
|
||||||
|
|
||||||
%files
|
%files
|
||||||
00-cpp_compat.patch /build/00-cpp_compat.patch
|
00-cpp_compat.patch /build/00-cpp_compat.patch
|
||||||
|
01-radio_bearer_config.patch /build/01-radio_bearer_config.patch
|
||||||
|
|
||||||
%post
|
%post
|
||||||
# Update and install dependencies
|
# Update and install dependencies
|
||||||
|
@ -45,15 +46,17 @@ From: ubuntu:22.04
|
||||||
|
|
||||||
# Download resources
|
# Download resources
|
||||||
cd /build
|
cd /build
|
||||||
wget "http://www.mobileinsight.net/wireshark-{{ WS_VER }}-rbc-dissector.tar.xz" -nv \
|
wget "https://github.com/wireshark/wireshark/archive/refs/tags/v{{ WS_VER }}.tar.gz" \
|
||||||
-O "wireshark-{{ WS_VER }}.tar.xz"
|
-nv -O "wireshark-{{ WS_VER }}.tar.xz"
|
||||||
tar -xf "wireshark-{{ WS_VER }}.tar.xz"
|
tar -xf "wireshark-{{ WS_VER }}.tar.xz"
|
||||||
git clone "https://github.com/mobile-insight/mobileinsight-core.git"
|
git clone "https://github.com/mobile-insight/mobileinsight-core.git"
|
||||||
git -C mobileinsight-core checkout "{{ MI_COMMIT }}"
|
git -C mobileinsight-core checkout "{{ MI_COMMIT }}"
|
||||||
|
|
||||||
# Compile and install wireshark
|
# Compile and install wireshark
|
||||||
cd "/build/wireshark-{{ WS_VER }}"
|
cd "/build/wireshark-{{ WS_VER }}"
|
||||||
patch epan/epan.h < /build/00-cpp_compat.patch
|
for patch in /build/*.patch; do
|
||||||
|
patch -p1 < "$patch"
|
||||||
|
done
|
||||||
cmake -DBUILD_wireshark=OFF .
|
cmake -DBUILD_wireshark=OFF .
|
||||||
make -j "{{ NUM_THREADS }}"
|
make -j "{{ NUM_THREADS }}"
|
||||||
make install
|
make install
|
||||||
|
|
|
@ -1,32 +1,16 @@
|
||||||
Bootstrap: localimage
|
Bootstrap: localimage
|
||||||
From: mobileinsight.sif
|
From: mobileinsight.sif
|
||||||
|
|
||||||
%arguments
|
|
||||||
SPARK_URL="https://dlcdn.apache.org/spark/spark-3.5.1/spark-3.5.1-bin-hadoop3.tgz"
|
|
||||||
|
|
||||||
%environment
|
|
||||||
export SPARK_HOME="/opt/spark"
|
|
||||||
export PATH="/opt/spark/sbin:/opt/spark/bin:$PATH"
|
|
||||||
export PYSPARK_PYTHON="/usr/bin/python3"
|
|
||||||
export SPARK_LOCAL_IP="127.0.0.1"
|
|
||||||
|
|
||||||
%post
|
%post
|
||||||
# Update and install dependencies
|
# Update and install dependencies
|
||||||
mkdir -p /build
|
|
||||||
export DEBIAN_FRONTEND=noninteractive
|
export DEBIAN_FRONTEND=noninteractive
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get upgrade -y
|
apt-get upgrade -y
|
||||||
apt-get install -y \
|
apt-get install -y \
|
||||||
|
python3-pandas \
|
||||||
openjdk-8-jre-headless \
|
openjdk-8-jre-headless \
|
||||||
scala
|
scala
|
||||||
|
pip3 install pyspark[sql]==3.5.1 dill==0.3.8
|
||||||
# Download Spark
|
|
||||||
SPARK_TGZ="/build/$(basename "{{ SPARK_URL }}")"
|
|
||||||
cd /build
|
|
||||||
wget "{{ SPARK_URL }}" -nv -O "$SPARK_TGZ"
|
|
||||||
tar -xf "$SPARK_TGZ"
|
|
||||||
mv "$(echo $SPARK_TGZ | sed 's/\.tgz$//')" /opt/spark
|
|
||||||
|
|
||||||
# Cleanup
|
# Cleanup
|
||||||
apt-get autoclean -y
|
apt-get autoclean -y
|
||||||
rm -rf /build
|
|
||||||
|
|
Loading…
Reference in New Issue