Home
last modified time | relevance | path

Searched refs:nlMsg (Results 1 – 6 of 6) sorted by relevance

/packages/modules/NetworkStack/common/moduleutils/src/android/net/ip/
DNetlinkMonitor.java112 final NetlinkMessage nlMsg = NetlinkMessage.parse(byteBuffer, mFamily); in handlePacket() local
113 if (nlMsg == null || nlMsg.getHeader() == null) { in handlePacket()
119 if (nlMsg instanceof NetlinkErrorMessage) { in handlePacket()
120 mLog.e("netlink error: " + nlMsg); in handlePacket()
124 processNetlinkMessage(nlMsg, whenMs); in handlePacket()
145 protected void processNetlinkMessage(NetlinkMessage nlMsg, long whenMs) { } in processNetlinkMessage() argument
DConntrackMonitor.java184 public void processNetlinkMessage(NetlinkMessage nlMsg, final long whenMs) { in processNetlinkMessage() argument
185 if (!(nlMsg instanceof ConntrackMessage)) { in processNetlinkMessage()
186 mLog.e("non-conntrack msg: " + nlMsg); in processNetlinkMessage()
190 final ConntrackMessage conntrackMsg = (ConntrackMessage) nlMsg; in processNetlinkMessage()
DIpNeighborMonitor.java131 public void processNetlinkMessage(NetlinkMessage nlMsg, final long whenMs) { in processNetlinkMessage() argument
132 if (!(nlMsg instanceof RtNetlinkNeighborMessage)) { in processNetlinkMessage()
133 mLog.e("non-rtnetlink neighbor msg: " + nlMsg); in processNetlinkMessage()
137 final RtNetlinkNeighborMessage neighMsg = (RtNetlinkNeighborMessage) nlMsg; in processNetlinkMessage()
/packages/modules/NetworkStack/tests/unit/src/android/net/netlink/
DNduseroptMessageTest.java98 NetlinkMessage nlMsg = NetlinkMessage.parse(buf, NETLINK_ROUTE); in testParseWithinNetlinkMessage() local
99 assertNotNull(nlMsg); in testParseWithinNetlinkMessage()
100 assertTrue(nlMsg instanceof NduseroptMessage); in testParseWithinNetlinkMessage()
102 NduseroptMessage msg = (NduseroptMessage) nlMsg; in testParseWithinNetlinkMessage()
127 NetlinkMessage nlMsg = NetlinkMessage.parse(buf, NETLINK_ROUTE); in testParseUnknownOptionWithinNetlinkMessage() local
128 assertNotNull(nlMsg); in testParseUnknownOptionWithinNetlinkMessage()
129 assertTrue(nlMsg instanceof NduseroptMessage); in testParseUnknownOptionWithinNetlinkMessage()
131 NduseroptMessage msg = (NduseroptMessage) nlMsg; in testParseUnknownOptionWithinNetlinkMessage()
/packages/modules/NetworkStack/common/netlinkclient/src/android/net/netlink/
DInetDiagMessage.java123 final NetlinkMessage nlMsg = NetlinkMessage.parse(response, NETLINK_INET_DIAG); in lookupUidByFamily() local
124 final StructNlMsgHdr hdr = nlMsg.getHeader(); in lookupUidByFamily()
128 if (nlMsg instanceof InetDiagMessage) { in lookupUidByFamily()
129 return ((InetDiagMessage) nlMsg).mStructInetDiagMsg.idiag_uid; in lookupUidByFamily()
/packages/modules/NetworkStack/src/android/net/ip/
DIpClientLinkObserver.java427 protected void processNetlinkMessage(NetlinkMessage nlMsg, long whenMs) { in processNetlinkMessage() argument
428 if (!(nlMsg instanceof NduseroptMessage)) return; in processNetlinkMessage()
429 processNduseroptMessage((NduseroptMessage) nlMsg, whenMs); in processNetlinkMessage()