| Package | Description |
|---|---|
| org.onlab.packet |
Utilities for decoding and encoding packets of various network protocols
and encapsulations.
|
| Modifier and Type | Method and Description |
|---|---|
static Ethernet |
ARP.buildArpReply(Ip4Address srcIp,
MacAddress srcMac,
Ethernet request)
Builds an ARP reply based on a request.
|
Ethernet |
Ethernet.setDestinationMACAddress(byte[] destMac)
Sets the destination MAC address.
|
Ethernet |
Ethernet.setDestinationMACAddress(MacAddress destMac)
Sets the destination MAC address.
|
Ethernet |
Ethernet.setDestinationMACAddress(String destMac)
Sets the destination MAC address.
|
Ethernet |
Ethernet.setEtherType(short ethType)
Sets the Ethernet type.
|
Ethernet |
Ethernet.setPad(boolean pd)
Pad this packet to 60 bytes minimum, filling with zeros?
|
Ethernet |
Ethernet.setPriorityCode(byte priority)
Sets the priority code.
|
Ethernet |
Ethernet.setSourceMACAddress(byte[] sourceMac)
Sets the source MAC address.
|
Ethernet |
Ethernet.setSourceMACAddress(MacAddress sourceMac)
Sets the source MAC address.
|
Ethernet |
Ethernet.setSourceMACAddress(String sourceMac)
Sets the source MAC address.
|
Ethernet |
Ethernet.setVlanID(short vlan)
Sets the VLAN ID.
|
| Modifier and Type | Method and Description |
|---|---|
static Deserializer<Ethernet> |
Ethernet.deserializer()
Deserializer function for Ethernet packets.
|
| Modifier and Type | Method and Description |
|---|---|
static Ethernet |
ARP.buildArpReply(Ip4Address srcIp,
MacAddress srcMac,
Ethernet request)
Builds an ARP reply based on a request.
|
static ONOSLLDP |
ONOSLLDP.parseONOSLLDP(Ethernet eth)
Given an ethernet packet, determines if this is an LLDP from
ONOS and returns the device the LLDP came from.
|
Copyright © 2016. All rights reserved.