本文整理汇总了Java中org.onosproject.ospf.protocol.lsa.LsaHeader.setOptions方法的典型用法代码示例。如果您正苦于以下问题:Java LsaHeader.setOptions方法的具体用法?Java LsaHeader.setOptions怎么用?Java LsaHeader.setOptions使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.onosproject.ospf.protocol.lsa.LsaHeader
的用法示例。
在下文中一共展示了LsaHeader.setOptions方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createLsaHeader
import org.onosproject.ospf.protocol.lsa.LsaHeader; //导入方法依赖的package包/类
/**
* Utility method used by junit methods.
*/
private LsaHeader createLsaHeader() {
lsaHeader = new LsaHeader();
lsaHeader.setAge(10);
lsaHeader.setLinkStateId("10.226.165.164");
lsaHeader.setLsCheckSum(222);
lsaHeader.setLsPacketLen(48);
lsaHeader.setLsSequenceNo(2020);
lsaHeader.setLsType(5);
lsaHeader.setOptions(2);
lsaHeader.setAdvertisingRouter(Ip4Address.valueOf("10.226.165.165"));
return lsaHeader;
}
示例2: createLsaHeader
import org.onosproject.ospf.protocol.lsa.LsaHeader; //导入方法依赖的package包/类
/**
* Utility method used by junit methods.
*/
private LsaHeader createLsaHeader() {
lsaHeader = new LsaHeader();
lsaHeader.setAge(10);
lsaHeader.setLinkStateId("10.226.165.164");
lsaHeader.setLsCheckSum(222);
lsaHeader.setLsPacketLen(48);
lsaHeader.setLsSequenceNo(2020);
lsaHeader.setLsType(2);
lsaHeader.setOptions(2);
lsaHeader.setAdvertisingRouter(Ip4Address.valueOf("10.226.165.165"));
return lsaHeader;
}
示例3: createLsaHeader
import org.onosproject.ospf.protocol.lsa.LsaHeader; //导入方法依赖的package包/类
/**
* Utility method used by junit methods.
*/
private LsaHeader createLsaHeader() {
lsaHeader = new LsaHeader();
lsaHeader.setLsType(1);
lsaHeader.setLsPacketLen(48);
lsaHeader.setLsCheckSum(10);
lsaHeader.setAge(4);
lsaHeader.setLinkStateId("10.226.165.164");
lsaHeader.setLsSequenceNo(250);
lsaHeader.setAdvertisingRouter(Ip4Address.valueOf("100.226.165.165"));
lsaHeader.setOptions(2);
return lsaHeader;
}
示例4: createLsaHeader
import org.onosproject.ospf.protocol.lsa.LsaHeader; //导入方法依赖的package包/类
/**
* Utility method used by junit methods.
*/
private LsaHeader createLsaHeader() {
lsaHeader = new LsaHeader();
lsaHeader.setLsType(3);
lsaHeader.setLsPacketLen(48);
lsaHeader.setLsCheckSum(10);
lsaHeader.setAge(4);
lsaHeader.setLinkStateId("10.226.165.164");
lsaHeader.setLsSequenceNo(250);
lsaHeader.setAdvertisingRouter(Ip4Address.valueOf("100.226.165.165"));
lsaHeader.setOptions(2);
return lsaHeader;
}
示例5: createLsaHeader
import org.onosproject.ospf.protocol.lsa.LsaHeader; //导入方法依赖的package包/类
/**
* Utility method used by junit methods.
*/
private LsaHeader createLsaHeader() {
lsaHeader = new LsaHeader();
lsaHeader.setLsType(2);
lsaHeader.setLsPacketLen(48);
lsaHeader.setLsCheckSum(10);
lsaHeader.setAge(4);
lsaHeader.setLinkStateId("10.226.165.164");
lsaHeader.setLsSequenceNo(250);
lsaHeader.setAdvertisingRouter(Ip4Address.valueOf("100.226.165.165"));
lsaHeader.setOptions(2);
return lsaHeader;
}