public final class PIMInterface extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PIMInterface.Builder
Builder for a PIM interface.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addRoute(org.onosproject.net.mcast.McastRoute route,
org.onlab.packet.IpAddress nextHop,
org.onlab.packet.MacAddress nextHopMac) |
static PIMInterface.Builder |
builder()
Returns a builder for a PIM interface.
|
void |
checkNeighborTimeouts()
Checks whether any of our neighbors have expired, and cleans up their
state if they have.
|
int |
getGenerationId()
Get our generation ID.
|
short |
getHoldtime()
Get the holdtime.
|
org.onosproject.incubator.net.intf.Interface |
getInterface()
Return the ONOS Interface.
|
org.onlab.packet.IpAddress |
getIpAddress()
Return a single "best" IP address.
|
List<org.onosproject.net.host.InterfaceIpAddress> |
getIpAddresses()
Get the set of IP Addresses associated with this interface.
|
Collection<PIMNeighbor> |
getNeighbors()
Gets the neighbors seen on this interface.
|
int |
getPriority()
Get our hello priority.
|
int |
getPruneDelay()
Get the prune delay.
|
Collection<org.onosproject.net.mcast.McastRoute> |
getRoutes() |
void |
processHello(org.onlab.packet.Ethernet ethPkt)
Process an incoming PIM Hello message.
|
void |
processJoinPrune(org.onlab.packet.Ethernet ethPkt)
Process an incoming PIM JoinPrune message.
|
void |
removeRoute(org.onosproject.net.mcast.McastRoute route) |
void |
sendHello()
Multicast a hello message out our interface.
|
void |
sendJoins() |
PIMInterface |
setInterface(org.onosproject.incubator.net.intf.Interface intf)
Set the ONOS Interface, it will override a previous value.
|
public org.onosproject.incubator.net.intf.Interface getInterface()
public PIMInterface setInterface(org.onosproject.incubator.net.intf.Interface intf)
intf - ONOS Interfacepublic List<org.onosproject.net.host.InterfaceIpAddress> getIpAddresses()
public org.onlab.packet.IpAddress getIpAddress()
public short getHoldtime()
public int getPruneDelay()
public int getPriority()
public int getGenerationId()
public Collection<PIMNeighbor> getNeighbors()
public Collection<org.onosproject.net.mcast.McastRoute> getRoutes()
public void checkNeighborTimeouts()
public void sendHello()
public void processHello(org.onlab.packet.Ethernet ethPkt)
ethPkt - the Ethernet packet headerpublic void processJoinPrune(org.onlab.packet.Ethernet ethPkt)
ethPkt - the Ethernet packet header.public void addRoute(org.onosproject.net.mcast.McastRoute route,
org.onlab.packet.IpAddress nextHop,
org.onlab.packet.MacAddress nextHopMac)
public void removeRoute(org.onosproject.net.mcast.McastRoute route)
public void sendJoins()
public static PIMInterface.Builder builder()
Copyright © 2016. All rights reserved.