Home
last modified time | relevance | path

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

/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/netlink/
DStructNlMsgHdr.java108 struct.nlmsg_len = byteBuffer.getInt(); in parse()
114 if (struct.nlmsg_len < STRUCT_SIZE) { in parse()
121 public int nlmsg_len; field in StructNlMsgHdr
128 nlmsg_len = 0; in StructNlMsgHdr()
136 nlmsg_len = StructNlMsgHdr.STRUCT_SIZE + payloadLen; in StructNlMsgHdr()
150 byteBuffer.putInt(nlmsg_len); in pack()
179 + "nlmsg_len{" + nlmsg_len + "}, " in toString()
DRtNetlinkNeighborMessage.java96 neighMsg.mHeader.nlmsg_len - kMinConsumed); in parse()
116 nlmsghdr.nlmsg_len = length; in newGetNeighborsRequest()
149 nlmsghdr.nlmsg_len = bytes.length; in newNewNeighborMessage()
DRtNetlinkAddressMessage.java211 nlmsghdr.nlmsg_len = bytes.length; in newRtmNewAddressMessage()
234 nlmsghdr.nlmsg_len = length; in newRtmDelAddressMessage()
DNetlinkUtils.java112 final int messageLength = NetlinkConstants.alignedLengthOf(nlmsghdr.nlmsg_len); in parseNetlinkErrorMessage()
431 nlmsghdr.nlmsg_len = spaceRequired; in newIpv6MulticastRouteDumpRequest()
DConntrackMessage.java210 ctmsg.mHeader.nlmsg_len = bytes.length; in newIPv4TimeoutUpdateRequest()
274 header.nlmsg_len - kMinConsumed); in parse()
DInetDiagMessage.java148 nlMsgHdr.nlmsg_len = bytes.length; in inetDiagReqV2()
179 final int payloadLength = header.nlmsg_len - SOCKDIAG_MSG_HEADER_SIZE; in parse()
DNetlinkMessage.java59 final int messageLength = NetlinkConstants.alignedLengthOf(nlmsghdr.nlmsg_len); in parse()
/packages/modules/Connectivity/staticlibs/native/tcutils/
Dtcutils.cpp172 .nlmsg_len = sizeof(mRequest), in IngressPoliceFilterBuilder()
436 if (resp.h.nlmsg_len != (unsigned)rv) { in sendAndProcessNetlinkResponse()
438 resp.h.nlmsg_len, rv); in sendAndProcessNetlinkResponse()
539 .nlmsg_len = sizeof(req), in doTcQdiscClsact()
603 .nlmsg_len = sizeof(req), in tcAddBpfFilter()
712 .nlmsg_len = sizeof(req), in tcDeleteFilter()
/packages/modules/Connectivity/staticlibs/netd/libnetdutils/
DNetlink.cpp32 const auto len = std::max<size_t>(hdr.nlmsg_len, sizeof(hdr)); in forEachNetlinkMessage()
64 << "len: 0x" << hdr.nlmsg_len << ", type: 0x" << hdr.nlmsg_type << ", flags: 0x" in operator <<()
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/netlink/
DNetlinkErrorMessageTest.java75 assertEquals(36, hdr.nlmsg_len); in testParseNlmErrorOk()
85 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.java88 assertEquals(76, hdr.nlmsg_len); in testParseRtmDelNeigh()
115 assertEquals(88, hdr.nlmsg_len); in testParseRtmNewNeigh()
DRtNetlinkRouteMessageTest.java72 assertEquals(136, hdr.nlmsg_len); in assertRtmRouteMessage()
160 assertEquals(136, hdr.nlmsg_len); in testParseRtmNewRoute_MulticastIpv6()
DStructNlMsgHdrTest.java57 struct.nlmsg_len = TEST_NLMSG_LEN; in makeStructNlMsgHdr()
DRtNetlinkLinkMessageTest.java73 assertEquals(100, hdr.nlmsg_len); in testParseRtmNewLink()
DRtNetlinkAddressMessageTest.java81 assertEquals(72, hdr.nlmsg_len); in testParseRtmNewAddress()
DNetlinkUtilsTest.java186 nlmsghdr.nlmsg_len = length; in newGetAddrRequest()
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/netlink/xfrm/
DXfrmNetlinkNewSaMessage.java93 final int payloadLen = nlmsghdr.nlmsg_len - StructNlMsgHdr.STRUCT_SIZE; in parseInternal()
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DOffloadHardwareInterface.java250 nlh.nlmsg_len = length; in sendIpv4NfGenMsg()
/packages/modules/Connectivity/thread/service/java/com/android/server/thread/
DTunInterfaceController.java405 header.nlmsg_len = msgLength; in setAddrGenModeToNone()
/packages/modules/NetworkStack/src/com/android/networkstack/netlink/
DTcpSocketTracker.java418 return nlmsghdr.nlmsg_len; in getLengthAndVerifyMsgHeader()