Home | History | Annotate | Download | only in vpnfirewall

Lines Matching defs:headerLength

30     int headerLength;
45 headerLength = (versionIhl & 0x0F) * 4;
63 if (headerLength < HEADER_MIN_LENGTH) {
64 throw new IllegalArgumentException("Header length = " + headerLength
67 options = new byte[headerLength - HEADER_MIN_LENGTH];
70 if (totalLength < headerLength) {
72 + " is less than header length = " + headerLength);
74 data = new byte[totalLength - headerLength];
87 headerLength = HEADER_MIN_LENGTH + options.length;
92 totalLength = headerLength + data.length;
99 stream.writeByte((version << 4) | (headerLength / 4));
116 int checksum = Rfc1071.checksum(result, headerLength);
128 out.append("\n Header length: ").append(headerLength);