Searched refs:linkMsg (Results 1 – 2 of 2) sorted by relevance
69 final RtNetlinkLinkMessage linkMsg = (RtNetlinkLinkMessage) msg; in testParseRtmNewLink() local71 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() local123 assertTrue(linkMsg.getInterfaceName().equals("トン0")); in testParseRtmNewLink_utf8Ifname()140 final RtNetlinkLinkMessage linkMsg = (RtNetlinkLinkMessage) msg; in testPackRtmNewLink() local144 linkMsg.pack(packBuffer); in testPackRtmNewLink()[all …]
94 final RtNetlinkLinkMessage linkMsg = new RtNetlinkLinkMessage(header); in parse() local96 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()