Searched refs:packetLen (Results 1 – 2 of 2) sorted by relevance
292 int packetLen = 0; in allocate() local293 if (hasEther) packetLen += Struct.getSize(EthernetHeader.class); in allocate()294 packetLen += (l3proto == IPPROTO_IP) ? Struct.getSize(Ipv4Header.class) in allocate()296 packetLen += (l4proto == IPPROTO_TCP) ? Struct.getSize(TcpHeader.class) in allocate()298 packetLen += payloadLen; in allocate()300 return ByteBuffer.allocate(packetLen); in allocate()
876 IkeHeader fragIkeHeader, int packetLen, DecodeResultPartial collectedFragments) { in validateFragmentHeader() argument878 fragIkeHeader.validateInboundHeader(packetLen); in validateFragmentHeader()