Add support for updated wireshark plugin.
Need to verify this works with 11.04.
This commit is contained in:
+35
-11
@@ -146,16 +146,6 @@ function of {
|
|||||||
make
|
make
|
||||||
sudo make install
|
sudo make install
|
||||||
|
|
||||||
# Install dissector:
|
|
||||||
sudo apt-get install -y wireshark libgtk2.0-dev
|
|
||||||
cd ~/openflow/utilities/wireshark_dissectors/openflow
|
|
||||||
make
|
|
||||||
sudo make install
|
|
||||||
|
|
||||||
# Copy coloring rules: OF is white-on-blue:
|
|
||||||
mkdir -p ~/.wireshark
|
|
||||||
cp ~/mininet/util/colorfilters ~/.wireshark
|
|
||||||
|
|
||||||
# Remove avahi-daemon, which may cause unwanted discovery packets to be
|
# Remove avahi-daemon, which may cause unwanted discovery packets to be
|
||||||
# sent during tests, near link status changes:
|
# sent during tests, near link status changes:
|
||||||
sudo apt-get remove -y avahi-daemon
|
sudo apt-get remove -y avahi-daemon
|
||||||
@@ -169,6 +159,37 @@ function of {
|
|||||||
sudo sh -c "echo 'blacklist net-pf-10\nblacklist ipv6' >> $BLACKLIST"
|
sudo sh -c "echo 'blacklist net-pf-10\nblacklist ipv6' >> $BLACKLIST"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function wireshark {
|
||||||
|
# Install wireshark dissector
|
||||||
|
|
||||||
|
sudo apt-get install -y wireshark libgtk2.0-dev
|
||||||
|
|
||||||
|
if [ "$DIST" = "Ubuntu" ] && [ "$RELEASE" != "10.04" ]; then
|
||||||
|
# Install newer version
|
||||||
|
sudo apt-get install -y scons mercurial libglib2.0-dev
|
||||||
|
sudo apt-get install -y libwiretap-dev libwireshark-dev
|
||||||
|
cd ~
|
||||||
|
hg clone ssh://hg@bitbucket.org/onlab/of-dissector
|
||||||
|
cd of-dissector/src
|
||||||
|
export WIRESHARK=/usr/include/wireshark
|
||||||
|
scons
|
||||||
|
WSPLUGDIR=/usr/lib/wireshark/libwireshark1/plugins/
|
||||||
|
sudo cp openflow.so $WSPLUGDIR
|
||||||
|
echo "Copied openflow plugin to $WSPLUGDIR"
|
||||||
|
else
|
||||||
|
# Install older version from reference source
|
||||||
|
cd ~/openflow/utilities/wireshark_dissectors/openflow
|
||||||
|
make
|
||||||
|
sudo make install
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Copy coloring rules: OF is white-on-blue:
|
||||||
|
mkdir -p ~/.wireshark
|
||||||
|
cp ~/mininet/util/colorfilters ~/.wireshark
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
# Install Open vSwitch
|
# Install Open vSwitch
|
||||||
# Instructions derived from OVS INSTALL, INSTALL.OpenFlow and README files.
|
# Instructions derived from OVS INSTALL, INSTALL.OpenFlow and README files.
|
||||||
function ovs {
|
function ovs {
|
||||||
@@ -331,6 +352,7 @@ function all {
|
|||||||
kernel
|
kernel
|
||||||
mn_deps
|
mn_deps
|
||||||
of
|
of
|
||||||
|
wireshark
|
||||||
ovs
|
ovs
|
||||||
modprobe
|
modprobe
|
||||||
nox
|
nox
|
||||||
@@ -390,6 +412,7 @@ function usage {
|
|||||||
printf -- ' -n: install mini(N)et dependencies + core files\n' >&2
|
printf -- ' -n: install mini(N)et dependencies + core files\n' >&2
|
||||||
printf -- ' -t: install o(T)her stuff\n' >&2
|
printf -- ' -t: install o(T)her stuff\n' >&2
|
||||||
printf -- ' -v: install open (V)switch\n' >&2
|
printf -- ' -v: install open (V)switch\n' >&2
|
||||||
|
printf -- ' -w: install OpenFlow (w)ireshark dissedtor\n' >&2
|
||||||
printf -- ' -x: install NO(X) OpenFlow controller\n' >&2
|
printf -- ' -x: install NO(X) OpenFlow controller\n' >&2
|
||||||
printf -- ' -y: install (A)ll packages\n' >&2
|
printf -- ' -y: install (A)ll packages\n' >&2
|
||||||
|
|
||||||
@@ -400,7 +423,7 @@ if [ $# -eq 0 ]
|
|||||||
then
|
then
|
||||||
all
|
all
|
||||||
else
|
else
|
||||||
while getopts 'abcdfhkmntvx' OPTION
|
while getopts 'abcdfhkmntvwx' OPTION
|
||||||
do
|
do
|
||||||
case $OPTION in
|
case $OPTION in
|
||||||
a) all;;
|
a) all;;
|
||||||
@@ -414,6 +437,7 @@ else
|
|||||||
n) mn_deps;;
|
n) mn_deps;;
|
||||||
t) other;;
|
t) other;;
|
||||||
v) ovs;;
|
v) ovs;;
|
||||||
|
w) wireshark;;
|
||||||
x) nox;;
|
x) nox;;
|
||||||
?) usage;;
|
?) usage;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
Reference in New Issue
Block a user