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
a027e988
Commit
a027e988
authored
12 years ago
by
Rob Sherwood
Browse files
Options
Downloads
Patches
Plain Diff
Added less confusing constructor for OFActionOutput
and associated javadocs
parent
d0a3bbfb
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
src/main/java/org/openflow/protocol/action/OFActionOutput.java
+22
-0
22 additions, 0 deletions
...ain/java/org/openflow/protocol/action/OFActionOutput.java
with
22 additions
and
0 deletions
src/main/java/org/openflow/protocol/action/OFActionOutput.java
+
22
−
0
View file @
a027e988
...
...
@@ -39,6 +39,28 @@ public class OFActionOutput extends OFAction implements Cloneable {
super
.
setLength
((
short
)
MINIMUM_LENGTH
);
}
/**
* Create an Output Action sending packets out the specified
* OpenFlow port.
*
* This is the most common creation pattern for OFActions.
*
* @param port
*/
public
OFActionOutput
(
short
port
)
{
this
(
port
,
(
short
)
65535
);
}
/**
* Create an Output Action specifying both the port AND
* the snaplen of the packet to send out that port.
* The length field is only meaningful when port == OFPort.OFPP_CONTROLLER
* @param port
* @param maxLength The maximum number of bytes of the packet to send.
* Most hardware only supports this value for OFPP_CONTROLLER
*/
public
OFActionOutput
(
short
port
,
short
maxLength
)
{
super
();
super
.
setType
(
OFActionType
.
OUTPUT
);
...
...
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