Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mininet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Olaf Bergmann
mininet
Commits
6143bb13
Commit
6143bb13
authored
12 years ago
by
Brandon Heller
Browse files
Options
Downloads
Plain Diff
Merge pull request #31 from mininet/devel/wireshark
Devel/wireshark
parents
99222e70
a8c1965b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
util/install.sh
+37
-11
37 additions, 11 deletions
util/install.sh
with
37 additions
and
11 deletions
util/install.sh
+
37
−
11
View file @
6143bb13
...
...
@@ -146,16 +146,6 @@ function of {
make
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
# sent during tests, near link status changes:
sudo
apt-get remove
-y
avahi-daemon
...
...
@@ -169,6 +159,39 @@ function of {
sudo
sh
-c
"echo 'blacklist net-pf-10
\n
blacklist ipv6' >>
$BLACKLIST
"
}
function
wireshark
{
echo
"Installing 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 https://bitbucket.org/onlab/of-dissector
cd
of-dissector/src
export
WIRESHARK
=
/usr/include/wireshark
scons
# libwireshark0/ on 11.04; libwireshark1/ on later
WSDIR
=
`
ls
-d
/usr/lib/wireshark/libwireshark
*
|
head
-1
`
WSPLUGDIR
=
$WSDIR
/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
# Instructions derived from OVS INSTALL, INSTALL.OpenFlow and README files.
function
ovs
{
...
...
@@ -331,6 +354,7 @@ function all {
kernel
mn_deps
of
wireshark
ovs
modprobe
nox
...
...
@@ -390,6 +414,7 @@ function usage {
printf
--
' -n: install mini(N)et dependencies + core files\n'
>
&2
printf
--
' -t: install o(T)her stuff\n'
>
&2
printf
--
' -v: install open (V)switch\n'
>
&2
printf
--
' -w: install OpenFlow (w)ireshark dissector\n'
>
&2
printf
--
' -x: install NO(X) OpenFlow controller\n'
>
&2
printf
--
' -y: install (A)ll packages\n'
>
&2
...
...
@@ -400,7 +425,7 @@ if [ $# -eq 0 ]
then
all
else
while
getopts
'abcdfhkmntvx'
OPTION
while
getopts
'abcdfhkmntv
w
x'
OPTION
do
case
$OPTION
in
a
)
all
;;
...
...
@@ -414,6 +439,7 @@ else
n
)
mn_deps
;;
t
)
other
;;
v
)
ovs
;;
w
)
wireshark
;;
x
)
nox
;;
?
)
usage
;;
esac
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment