Home
last modified time | relevance | path

Searched refs:nlmsg_len (Results 1 – 12 of 12) sorted by relevance

/packages/modules/NetworkStack/common/netlinkclient/src/android/net/netlink/
DStructNlMsgHdr.java91 struct.nlmsg_len = byteBuffer.getInt(); in parse()
97 if (struct.nlmsg_len < STRUCT_SIZE) { in parse()
104 public int nlmsg_len; field in StructNlMsgHdr
111 nlmsg_len = 0; in StructNlMsgHdr()
122 byteBuffer.putInt(nlmsg_len); in pack()
151 + "nlmsg_len{" + nlmsg_len + "}, " in toString()
DRtNetlinkNeighborMessage.java86 neighMsg.mHeader.nlmsg_len - kMinConsumed); in parse()
106 nlmsghdr.nlmsg_len = length; in newGetNeighborsRequest()
139 nlmsghdr.nlmsg_len = bytes.length; in newNewNeighborMessage()
DConntrackMessage.java207 ctmsg.mHeader.nlmsg_len = bytes.length; in newIPv4TimeoutUpdateRequest()
269 header.nlmsg_len - kMinConsumed); in parse()
DNetlinkMessage.java54 int payloadLength = NetlinkConstants.alignedLengthOf(nlmsghdr.nlmsg_len); in parse()
DInetDiagMessage.java91 nlMsgHdr.nlmsg_len = bytes.length; in InetDiagReqV2()
/packages/modules/Connectivity/Tethering/jni/
Dcom_android_networkstack_tethering_BpfUtils.cpp118 if (resp.h.nlmsg_len != (unsigned)rv) { in sendAndProcessNetlinkResponse()
120 "recv() returned invalid header length: %d != %d", resp.h.nlmsg_len, in sendAndProcessNetlinkResponse()
233 .nlmsg_len = sizeof(req), in com_android_networkstack_tethering_BpfUtils_tcFilterAddDevBpf()
315 .nlmsg_len = sizeof(req), in com_android_networkstack_tethering_BpfUtils_tcFilterDelDev()
/packages/modules/NetworkStack/tests/unit/src/android/net/netlink/
DNetlinkErrorMessageTest.java79 assertEquals(36, hdr.nlmsg_len); in testParseNlmErrorOk()
89 assertEquals(48, err.msg.nlmsg_len); in testParseNlmErrorOk()
DConntrackMessageTest.java158 assertEquals(80, hdr.nlmsg_len); in testConntrackParseIPv4TcpTimeoutUpdate()
207 assertEquals(80, hdr.nlmsg_len); in testConntrackParseIPv4UdpTimeoutUpdate()
301 assertEquals(140, hdr.nlmsg_len); in testParseCtNew()
DRtNetlinkNeighborMessageTest.java92 assertEquals(76, hdr.nlmsg_len); in testParseRtmDelNeigh()
119 assertEquals(88, hdr.nlmsg_len); in testParseRtmNewNeigh()
DStructNlMsgHdrTest.java52 struct.nlmsg_len = TEST_NLMSG_LEN; in makeStructNlMsgHdr()
/packages/modules/NetworkStack/src/com/android/networkstack/netlink/
DTcpSocketTracker.java223 final int nlmsgLen = nlmsghdr.nlmsg_len; in pollSocketsInfo()
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DOffloadHardwareInterface.java335 nlh.nlmsg_len = length; in sendIpv4NfGenMsg()