Toggle navigation
Toggle navigation
This project
Loading...
Sign in
홍길동
/
onos
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Brian O'Connor
2014-11-05 15:15:32 -0800
Browse Files
Options
Browse Files
Download
Plain Diff
Committed by
Gerrit Code Review
2014-11-05 15:15:32 -0800
Commit
71379f47c9af7ac83bb0d4b5bf567d75f8ef79c4
71379f47
2 parents
5b5dc48d
01a6ec0a
Merge "Fixing reactive forwarding not to forward LLDP & BDDP."
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
2 deletions
apps/fwd/src/main/java/org/onlab/onos/fwd/ReactiveForwarding.java
apps/oecfg/pom.xml
pom.xml
apps/fwd/src/main/java/org/onlab/onos/fwd/ReactiveForwarding.java
View file @
71379f4
...
...
@@ -132,6 +132,11 @@ public class ReactiveForwarding {
InboundPacket
pkt
=
context
.
inPacket
();
Ethernet
ethPkt
=
pkt
.
parsed
();
// Bail if this is deemed to be a control packet.
if
(
isControlPacket
(
ethPkt
))
{
return
;
}
HostId
id
=
HostId
.
hostId
(
ethPkt
.
getDestinationMAC
());
// Do not process link-local addresses in any way.
...
...
@@ -180,6 +185,13 @@ public class ReactiveForwarding {
// Otherwise forward and be done with it.
installRule
(
context
,
path
.
src
().
port
());
}
}
// Indicates whether this is a control packet, e.g. LLDP, BDDP
private
boolean
isControlPacket
(
Ethernet
eth
)
{
short
type
=
eth
.
getEtherType
();
return
type
==
Ethernet
.
TYPE_LLDP
||
type
==
Ethernet
.
TYPE_BSN
;
}
// Selects a path from the given set that does not lead back to the
...
...
apps/oecfg/pom.xml
View file @
71379f4
...
...
@@ -49,7 +49,6 @@
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-shade-plugin
</artifactId>
<version>
2.3
</version>
<executions>
<execution>
<phase>
package
</phase>
...
...
pom.xml
View file @
71379f4
...
...
@@ -49,7 +49,8 @@
<repository>
<id>
onlab-temp
</id>
<name>
ON.lab temporary repository
</name>
<url>
http://mavenrepo.onlab.us:8081/nexus/content/groups/public
</url>
<url>
http://mavenrepo.onlab.us:8081/nexus/content/groups/public
</url>
<snapshots>
<enabled>
true
</enabled>
</snapshots>
...
...
@@ -421,6 +422,12 @@
</plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-shade-plugin
</artifactId>
<version>
2.3
</version>
</plugin>
<plugin>
<groupId>
org.codehaus.mojo
</groupId>
<artifactId>
findbugs-maven-plugin
</artifactId>
<version>
3.0.0
</version>
...
...
Please
register
or
login
to post a comment