Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
floodlight
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
croft1
floodlight
Commits
8dc74999
Commit
8dc74999
authored
7 years ago
by
Ryan Izard
Committed by
GitHub
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #741 from allewwaly/patch-1
check openflow version before matching tcp_flags
parents
4ade703c
70ca3ac6
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/net/floodlightcontroller/forwarding/Forwarding.java
+16
-7
16 additions, 7 deletions
.../java/net/floodlightcontroller/forwarding/Forwarding.java
with
16 additions
and
7 deletions
src/main/java/net/floodlightcontroller/forwarding/Forwarding.java
+
16
−
7
View file @
8dc74999
...
...
@@ -596,12 +596,16 @@ public class Forwarding extends ForwardingBase implements IFloodlightModule, IOF
if
(
FLOWMOD_DEFAULT_MATCH_TRANSPORT_DST
)
{
mb
.
setExact
(
MatchField
.
TCP_DST
,
tcp
.
getDestinationPort
());
}
if
(
sw
.
getSwitchDescription
().
getHardwareDescription
().
toLowerCase
().
contains
(
"open vswitch"
)
&&
(
Integer
.
parseInt
(
sw
.
getSwitchDescription
().
getSoftwareDescription
().
toLowerCase
().
split
(
"\\."
)[
0
])
>
2
||
(
Integer
.
parseInt
(
sw
.
getSwitchDescription
().
getSoftwareDescription
().
toLowerCase
().
split
(
"\\."
)[
0
])
==
2
&&
Integer
.
parseInt
(
sw
.
getSwitchDescription
().
getSoftwareDescription
().
toLowerCase
().
split
(
"\\."
)[
1
])
>=
1
))
){
if
(
sw
.
getOFFactory
().
getVersion
().
compareTo
(
OFVersion
.
OF_15
)
>=
0
){
if
(
FLOWMOD_DEFAULT_MATCH_TCP_FLAG
){
mb
.
setExact
(
MatchField
.
TCP_FLAGS
,
U16
.
of
(
tcp
.
getFlags
()));
}
}
else
if
(
sw
.
getSwitchDescription
().
getHardwareDescription
().
toLowerCase
().
contains
(
"open vswitch"
)
&&
(
Integer
.
parseInt
(
sw
.
getSwitchDescription
().
getSoftwareDescription
().
toLowerCase
().
split
(
"\\."
)[
0
])
>
2
||
(
Integer
.
parseInt
(
sw
.
getSwitchDescription
().
getSoftwareDescription
().
toLowerCase
().
split
(
"\\."
)[
0
])
==
2
&&
Integer
.
parseInt
(
sw
.
getSwitchDescription
().
getSoftwareDescription
().
toLowerCase
().
split
(
"\\."
)[
1
])
>=
1
))
){
if
(
FLOWMOD_DEFAULT_MATCH_TCP_FLAG
){
mb
.
setExact
(
MatchField
.
OVS_TCP_FLAGS
,
U16
.
of
(
tcp
.
getFlags
()));
}
...
...
@@ -652,7 +656,12 @@ public class Forwarding extends ForwardingBase implements IFloodlightModule, IOF
if
(
FLOWMOD_DEFAULT_MATCH_TRANSPORT_DST
)
{
mb
.
setExact
(
MatchField
.
TCP_DST
,
tcp
.
getDestinationPort
());
}
if
(
if
(
sw
.
getOFFactory
().
getVersion
().
compareTo
(
OFVersion
.
OF_15
)
>=
0
){
if
(
FLOWMOD_DEFAULT_MATCH_TCP_FLAG
){
mb
.
setExact
(
MatchField
.
TCP_FLAGS
,
U16
.
of
(
tcp
.
getFlags
()));
}
}
else
if
(
sw
.
getSwitchDescription
().
getHardwareDescription
().
toLowerCase
().
contains
(
"open vswitch"
)
&&
(
Integer
.
parseInt
(
sw
.
getSwitchDescription
().
getSoftwareDescription
().
toLowerCase
().
split
(
"\\."
)[
0
])
>
2
||
(
Integer
.
parseInt
(
sw
.
getSwitchDescription
().
getSoftwareDescription
().
toLowerCase
().
split
(
"\\."
)[
0
])
==
2
&&
...
...
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