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
tom
2014-09-13 14:10:57 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5f18cf3701943a828f57a748603667c85f5683ca
5f18cf37
1 parent
7438d0b7
Fixed javadoc warnings in slew of legacy code. We need to keep up on this; the o…
…ld stuff is pretty sloppy.
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
44 additions
and
48 deletions
of/ctl/src/main/java/org/onlab/onos/of/controller/impl/OFChannelHandler.java
of/ctl/src/main/java/org/onlab/onos/of/controller/impl/RoleManager.java
tools/build/conf/src/main/resources/onos/suppressions.xml
utils/misc/src/main/java/org/onlab/packet/ARP.java
utils/misc/src/main/java/org/onlab/packet/DHCP.java
utils/misc/src/main/java/org/onlab/packet/Ethernet.java
utils/misc/src/main/java/org/onlab/packet/IPacket.java
utils/misc/src/main/java/org/onlab/packet/IPv4.java
utils/misc/src/main/java/org/onlab/packet/LLDP.java
utils/misc/src/main/java/org/onlab/packet/ONLabLddp.java
of/ctl/src/main/java/org/onlab/onos/of/controller/impl/OFChannelHandler.java
View file @
5f18cf3
...
...
@@ -632,7 +632,7 @@ class OFChannelHandler extends IdleStateAwareChannelHandler {
* @param m The OFMessage that has just been received
* @param details A string giving more details about the exact nature
* of the problem.
* @return
* @return
display string
*/
// needs to be protected because enum members are actually subclasses
protected
String
getSwitchStateMessage
(
OFChannelHandler
h
,
...
...
@@ -682,7 +682,7 @@ class OFChannelHandler extends IdleStateAwareChannelHandler {
/**
* Log an OpenFlow error message from a switch.
* @param
sw
The switch that sent the error
* @param
h
The switch that sent the error
* @param error The error message
*/
@LogMessageDoc
(
level
=
"ERROR"
,
...
...
@@ -1185,7 +1185,7 @@ class OFChannelHandler extends IdleStateAwareChannelHandler {
/**
* Return a string describing this switch based on the already available
* information (DPID and/or remote socket).
* @return
* @return
display string
*/
private
String
getSwitchInfoString
()
{
if
(
sw
!=
null
)
{
...
...
of/ctl/src/main/java/org/onlab/onos/of/controller/impl/RoleManager.java
View file @
5f18cf3
...
...
@@ -69,7 +69,6 @@ class RoleManager implements RoleHandler {
* Send NX role request message to the switch requesting the specified
* role.
*
* @param sw switch to send the role request message to
* @param role role to request
*/
private
int
sendNxRoleRequest
(
RoleState
role
)
throws
IOException
{
...
...
@@ -318,8 +317,7 @@ class RoleManager implements RoleHandler {
* Extract the role from an OFVendor message if the message is a
* Nicira role reply. Otherwise return null.
*
* @param h The channel handler receiving the message
* @param vendorMessage The vendor message to parse.
* @param experimenterMsg message
* @return The role in the message if the message is a Nicira role
* reply, null otherwise.
* @throws SwitchStateException If the message is a Nicira role reply
...
...
@@ -363,7 +361,7 @@ class RoleManager implements RoleHandler {
/**
* Extract the role information from an OF1.3 Role Reply Message.
*
@param h
*
* @param rrmsg the role message
* @return RoleReplyInfo object
* @throws SwitchStateException if the role information could not be extracted.
...
...
tools/build/conf/src/main/resources/onos/suppressions.xml
View file @
5f18cf3
...
...
@@ -22,4 +22,3 @@
<suppress
files=
".java"
checks=
"NewlineAtEndOfFile"
/>
</suppressions>
...
...
utils/misc/src/main/java/org/onlab/packet/ARP.java
View file @
5f18cf3
...
...
@@ -67,7 +67,7 @@ public class ARP extends BasePacket {
}
/**
* @param h
ardware
Type
* @param h
w
Type
* the hardwareType to set
*/
public
ARP
setHardwareType
(
final
short
hwType
)
{
...
...
@@ -83,7 +83,7 @@ public class ARP extends BasePacket {
}
/**
* @param proto
col
Type
* @param protoType
* the protocolType to set
*/
public
ARP
setProtocolType
(
final
short
protoType
)
{
...
...
@@ -115,7 +115,7 @@ public class ARP extends BasePacket {
}
/**
* @param proto
col
AddressLength
* @param protoAddressLength
* the protocolAddressLength to set
*/
public
ARP
setProtocolAddressLength
(
final
byte
protoAddressLength
)
{
...
...
@@ -131,7 +131,7 @@ public class ARP extends BasePacket {
}
/**
* @param op
Code
* @param op
* the opCode to set
*/
public
ARP
setOpCode
(
final
short
op
)
{
...
...
@@ -147,7 +147,7 @@ public class ARP extends BasePacket {
}
/**
* @param senderH
ardware
Address
* @param senderH
W
Address
* the senderHardwareAddress to set
*/
public
ARP
setSenderHardwareAddress
(
final
byte
[]
senderHWAddress
)
{
...
...
@@ -163,7 +163,7 @@ public class ARP extends BasePacket {
}
/**
* @param senderProto
col
Address
* @param senderProtoAddress
* the senderProtocolAddress to set
*/
public
ARP
setSenderProtocolAddress
(
final
byte
[]
senderProtoAddress
)
{
...
...
@@ -185,7 +185,7 @@ public class ARP extends BasePacket {
}
/**
* @param targetH
ardware
Address
* @param targetH
W
Address
* the targetHardwareAddress to set
*/
public
ARP
setTargetHardwareAddress
(
final
byte
[]
targetHWAddress
)
{
...
...
@@ -218,7 +218,7 @@ public class ARP extends BasePacket {
}
/**
* @param targetProto
col
Address
* @param targetProtoAddress
* the targetProtocolAddress to set
*/
public
ARP
setTargetProtocolAddress
(
final
byte
[]
targetProtoAddress
)
{
...
...
utils/misc/src/main/java/org/onlab/packet/DHCP.java
View file @
5f18cf3
...
...
@@ -294,7 +294,7 @@ public class DHCP extends BasePacket {
/**
* Gets a specific DHCP option parameter.
*
* @param op
e
tionCode
* @param optionCode
* The option code to get
* @return The value of the option if it exists, null otherwise
*/
...
...
utils/misc/src/main/java/org/onlab/packet/Ethernet.java
View file @
5f18cf3
...
...
@@ -96,7 +96,7 @@ public class Ethernet extends BasePacket {
/**
* Sets the destination MAC address.
*
* @param dest
inationMACAddress
the destination MAC to set
* @param dest
Mac
the destination MAC to set
* @return the Ethernet frame
*/
public
Ethernet
setDestinationMACAddress
(
final
byte
[]
destMac
)
{
...
...
@@ -107,7 +107,7 @@ public class Ethernet extends BasePacket {
/**
* Sets the destination MAC address.
*
* @param dest
inationMACAddress
the destination MAC to set
* @param dest
Mac
the destination MAC to set
* @return the Ethernet frame
*/
public
Ethernet
setDestinationMACAddress
(
final
String
destMac
)
{
...
...
@@ -136,7 +136,7 @@ public class Ethernet extends BasePacket {
/**
* Sets the source MAC address.
*
* @param sourceM
ACAddress
the source MAC to set
* @param sourceM
ac
the source MAC to set
* @return the Ethernet frame
*/
public
Ethernet
setSourceMACAddress
(
final
byte
[]
sourceMac
)
{
...
...
@@ -147,7 +147,7 @@ public class Ethernet extends BasePacket {
/**
* Sets the source MAC address.
*
* @param sourceM
ACAddress
the source MAC to set
* @param sourceM
ac
the source MAC to set
* @return the Ethernet frame
*/
public
Ethernet
setSourceMACAddress
(
final
String
sourceMac
)
{
...
...
@@ -167,7 +167,7 @@ public class Ethernet extends BasePacket {
/**
* Sets the priority code.
*
* @param priority
Code
the priorityCode to set
* @param priority the priorityCode to set
* @return the Ethernet frame
*/
public
Ethernet
setPriorityCode
(
final
byte
priority
)
{
...
...
@@ -187,7 +187,7 @@ public class Ethernet extends BasePacket {
/**
* Sets the VLAN ID.
*
* @param vlan
ID
the vlanID to set
* @param vlan the vlanID to set
* @return the Ethernet frame
*/
public
Ethernet
setVlanID
(
final
short
vlan
)
{
...
...
@@ -207,7 +207,7 @@ public class Ethernet extends BasePacket {
/**
* Sets the Ethernet type.
*
* @param eth
er
Type the etherType to set
* @param ethType the etherType to set
* @return the Ethernet frame
*/
public
Ethernet
setEtherType
(
final
short
ethType
)
{
...
...
@@ -242,7 +242,7 @@ public class Ethernet extends BasePacket {
/**
* Pad this packet to 60 bytes minimum, filling with zeros?
*
* @param p
a
d
* @param pd
* the pad to set
*/
public
Ethernet
setPad
(
final
boolean
pd
)
{
...
...
@@ -535,7 +535,7 @@ public class Ethernet extends BasePacket {
}
else
if
(
pkt
instanceof
LLC
)
{
sb
.
append
(
"\nllc packet"
);
}
else
{
sb
.
append
(
"\nunkn
wo
n packet"
);
sb
.
append
(
"\nunkn
ow
n packet"
);
}
return
sb
.
toString
();
...
...
utils/misc/src/main/java/org/onlab/packet/IPacket.java
View file @
5f18cf3
...
...
@@ -38,27 +38,27 @@ package org.onlab.packet;
public
interface
IPacket
{
/**
*
* @return
* @return
the payload
*/
public
IPacket
getPayload
();
/**
*
* @param packet
* @return
* @param packet
new payload
* @return
self
*/
public
IPacket
setPayload
(
IPacket
packet
);
/**
*
* @return
* @return
parent packet
*/
public
IPacket
getParent
();
/**
*
* @param packet
* @return
* @param packet
new parent
* @return
self
*/
public
IPacket
setParent
(
IPacket
packet
);
...
...
@@ -90,7 +90,7 @@ public interface IPacket {
/**
* Clone this packet and its payload packet but not its parent.
*
* @return
* @return
the clone
*/
public
Object
clone
();
}
...
...
utils/misc/src/main/java/org/onlab/packet/IPv4.java
View file @
5f18cf3
...
...
@@ -422,8 +422,8 @@ public class IPv4 extends BasePacket {
* Accepts an IPv4 address of the form xxx.xxx.xxx.xxx, ie 192.168.0.1 and
* returns the corresponding 32 bit integer.
*
* @param ipAddress
* @return
* @param ipAddress
ip address in string form
* @return
int ip address value
*/
public
static
int
toIPv4Address
(
final
String
ipAddress
)
{
if
(
ipAddress
==
null
)
{
...
...
@@ -447,8 +447,8 @@ public class IPv4 extends BasePacket {
* Accepts an IPv4 address in a byte array and returns the corresponding
* 32-bit integer value.
*
* @param ipAddress
* @return
* @param ipAddress
ip address in byte form
* @return
int ip address value
*/
public
static
int
toIPv4Address
(
final
byte
[]
ipAddress
)
{
int
ip
=
0
;
...
...
@@ -463,8 +463,8 @@ public class IPv4 extends BasePacket {
* Accepts an IPv4 address and returns of string of the form xxx.xxx.xxx.xxx,
* e.g., 192.168.0.1.
*
* @param ipAddress
* @return
* @param ipAddress
ip address in form
* @return
string form of ip address
*/
public
static
String
fromIPv4Address
(
final
int
ipAddress
)
{
final
StringBuffer
sb
=
new
StringBuffer
();
...
...
@@ -486,7 +486,7 @@ public class IPv4 extends BasePacket {
*
* @param ipAddresses
* collection
* @return
* @return
ip addresses in comma-separated string form
*/
public
static
String
fromIPv4AddressCollection
(
final
Collection
<
Integer
>
ipAddresses
)
{
...
...
utils/misc/src/main/java/org/onlab/packet/LLDP.java
View file @
5f18cf3
...
...
@@ -62,7 +62,7 @@ public class LLDP extends BasePacket {
}
/**
* @param chassis
Id
* @param chassis
* the chassisId to set
*/
public
LLDP
setChassisId
(
final
LLDPTLV
chassis
)
{
...
...
utils/misc/src/main/java/org/onlab/packet/ONLabLddp.java
View file @
5f18cf3
...
...
@@ -228,7 +228,7 @@ public class ONLabLddp extends LLDP {
/**
* Sets switch DPID in LLDP packet.
*
* @param
sw
the switch instance
* @param
dp
the switch instance
*/
public
void
setSwitch
(
long
dp
)
{
final
byte
[]
dpid
=
ByteBuffer
.
allocate
(
8
).
putLong
(
dp
)
...
...
@@ -243,8 +243,7 @@ public class ONLabLddp extends LLDP {
* @param port the port instance
*/
public
void
setPort
(
int
port
)
{
int
portNumber
=
port
;
this
.
setPortTLV
(
portNumber
);
this
.
setPortTLV
(
port
);
}
/**
...
...
@@ -260,7 +259,7 @@ public class ONLabLddp extends LLDP {
* Checks if LLDP packet has correct size, LLDP multicast address, and
* ethertype. Packet assumed to have Ethernet header.
*
* @param packet
* @param packet
packet data
* @return true if packet is LLDP, false otherwise
*/
public
static
boolean
isLLDP
(
final
byte
[]
packet
)
{
...
...
@@ -304,8 +303,8 @@ public class ONLabLddp extends LLDP {
* organizationally specific TLVs that use ON.Lab's OUI. Assumes packet is
* valid LLDP packet
*
* @param packet
* @return
* @param packet
packet data
* @return
eth type or -1
*/
public
static
short
isOVXLLDP
(
byte
[]
packet
)
{
if
(
packet
.
length
<
OVX_LLDP_SIZE
)
{
...
...
@@ -340,7 +339,7 @@ public class ONLabLddp extends LLDP {
/**
* Extracts dpid and port from OVX-generated LLDP packet.
*
* @param packet
* @param packet
packet data
* @return Dpid and port
*/
public
static
DPIDandPort
parseLLDP
(
final
byte
[]
packet
)
{
...
...
Please
register
or
login
to post a comment