Home
last modified time | relevance | path

Searched refs:linkMsg (Results 1 – 2 of 2) sorted by relevance

/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/netlink/
DRtNetlinkLinkMessageTest.java69 final RtNetlinkLinkMessage linkMsg = (RtNetlinkLinkMessage) msg; in testParseRtmNewLink() local
71 final StructNlMsgHdr hdr = linkMsg.getHeader(); in testParseRtmNewLink()
79 final StructIfinfoMsg ifinfomsgHdr = linkMsg.getIfinfoHeader(); in testParseRtmNewLink()
86 assertEquals(ETHER_MTU, linkMsg.getMtu()); in testParseRtmNewLink()
87 assertEquals(MacAddress.fromString("92:C3:E3:C9:37:4E"), linkMsg.getHardwareAddress()); in testParseRtmNewLink()
88 assertTrue(linkMsg.getInterfaceName().equals("wlan0")); in testParseRtmNewLink()
121 final RtNetlinkLinkMessage linkMsg = (RtNetlinkLinkMessage) msg; in testParseRtmNewLink_utf8Ifname() local
123 assertTrue(linkMsg.getInterfaceName().equals("トン0")); in testParseRtmNewLink_utf8Ifname()
140 final RtNetlinkLinkMessage linkMsg = (RtNetlinkLinkMessage) msg; in testPackRtmNewLink() local
144 linkMsg.pack(packBuffer); in testPackRtmNewLink()
[all …]
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/netlink/
DRtNetlinkLinkMessage.java94 final RtNetlinkLinkMessage linkMsg = new RtNetlinkLinkMessage(header); in parse() local
96 linkMsg.mIfinfomsg = StructIfinfoMsg.parse(byteBuffer); in parse()
97 if (linkMsg.mIfinfomsg == null) return null; in parse()
103 linkMsg.mMtu = nlAttr.getValueAsInt(0 /* default value */); in parse()
110 linkMsg.mHardwareAddress = nlAttr.getValueAsMacAddress(); in parse()
117 linkMsg.mInterfaceName = nlAttr.getValueAsString(); in parse()
120 return linkMsg; in parse()