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