本文整理汇总了Java中org.projectfloodlight.openflow.protocol.OFType.PACKET_IN属性的典型用法代码示例。如果您正苦于以下问题:Java OFType.PACKET_IN属性的具体用法?Java OFType.PACKET_IN怎么用?Java OFType.PACKET_IN使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.projectfloodlight.openflow.protocol.OFType
的用法示例。
在下文中一共展示了OFType.PACKET_IN属性的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: handleIncomingMessage
@Override
public void handleIncomingMessage(Dpid dpid, OFMessage msg) {
if (msg.getType() == OFType.PACKET_IN ||
msg.getType() == OFType.FLOW_MOD ||
msg.getType() == OFType.STATS_REPLY) {
aggregators.computeIfPresent(dpid, (k, v) -> {
v.increment(msg);
return v;
});
}
}
示例2: isCallbackOrderingPostreq
@Override
public boolean isCallbackOrderingPostreq(OFType type, String name) {
// We will rely on forwarding to forward out any DHCP packets that are not
// destined for our DHCP server. This is to allow an environment where
// multiple DHCP servers operate cooperatively
if (type == OFType.PACKET_IN && name.equals(Forwarding.class.getSimpleName())) {
return true;
} else {
return false;
}
}
示例3: isCallbackOrderingPrereq
@Override
public boolean isCallbackOrderingPrereq(OFType type, String name) {
return ((type == OFType.PACKET_IN || type == OFType.FLOW_MOD)
&& name.equals("topology"));
}