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
d4f4d325
Commit
d4f4d325
authored
12 years ago
by
Shudong Zhou
Browse files
Options
Downloads
Patches
Plain Diff
Use officially assigned BSN ethertype
parent
7e07b350
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/net/floodlightcontroller/packet/Ethernet.java
+1
-1
1 addition, 1 deletion
src/main/java/net/floodlightcontroller/packet/Ethernet.java
src/test/java/net/floodlightcontroller/packet/BSNTest.java
+1
-1
1 addition, 1 deletion
src/test/java/net/floodlightcontroller/packet/BSNTest.java
with
2 additions
and
2 deletions
src/main/java/net/floodlightcontroller/packet/Ethernet.java
+
1
−
1
View file @
d4f4d325
...
...
@@ -34,7 +34,7 @@ public class Ethernet extends BasePacket {
public
static
final
short
TYPE_ARP
=
0x0806
;
public
static
final
short
TYPE_IPv4
=
0x0800
;
public
static
final
short
TYPE_LLDP
=
(
short
)
0x88cc
;
public
static
final
short
TYPE_BSN
=
(
short
)
0x89
50
;
// Not officially assigned
public
static
final
short
TYPE_BSN
=
(
short
)
0x89
42
;
public
static
final
short
VLAN_UNTAGGED
=
(
short
)
0xffff
;
public
static
final
short
TYPE_BDDP
=
(
short
)
0x8999
;
public
static
final
short
DATALAYER_ADDRESS_LENGTH
=
6
;
// bytes
...
...
This diff is collapsed.
Click to expand it.
src/test/java/net/floodlightcontroller/packet/BSNTest.java
+
1
−
1
View file @
d4f4d325
...
...
@@ -36,7 +36,7 @@ public class BSNTest {
protected
byte
[]
probePkt
=
{
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x01
,
// src mac
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x04
,
// dst mac
(
byte
)
0x89
,
0x
50
,
// BSN type
(
byte
)
0x89
,
0x
42
,
// BSN type
0x20
,
0x00
,
0x06
,
0x04
,
0x00
,
0x01
,
0x00
,
0x00
,
// BSN header
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
// controller id
0x00
,
0x00
,
0x00
,
0x03
,
// sequence id
...
...
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