Lines Matching refs:ah_optlen
1079 s = (u_char *)tcp + sizeof(*tcp) + canip->ah_optlen; in set_tcpopt()
1115 canip->ah_optlen++; in set_tcpopt()
1138 canip->ah_optlen += len; in set_tcpopt()
1152 s += sizeof(*tcp) + canip->ah_optlen; in end_tcpopt()
1157 if (canip->ah_optlen & 3) { in end_tcpopt()
1159 for (pad = 3 - (canip->ah_optlen & 3); pad; pad--) { in end_tcpopt()
1161 canip->ah_optlen++; in end_tcpopt()
1163 canip->ah_optlen++; in end_tcpopt()
1167 for (pad = 3 - (canip->ah_optlen & 3); pad; pad--) { in end_tcpopt()
1169 canip->ah_optlen++; in end_tcpopt()
1174 tcp->th_off = (sizeof(*tcp) + canip->ah_optlen) >> 2; in end_tcpopt()
1175 inc_anipheaders(canip->ah_optlen); in end_tcpopt()
1562 hlen = sizeof(ip_t) + canip->ah_optlen; in add_ipopt()
1580 canip->ah_optlen = hlen - sizeof(ip_t); in add_ipopt()
1601 buf[sizeof(*ip) + canip->ah_optlen - 1] = IPOPT_EOL; in end_ipopt()
1603 s = buf + sizeof(*ip) + canip->ah_optlen; in end_ipopt()
1605 for (pad = 3 - (canip->ah_optlen & 3); pad; pad--) { in end_ipopt()
1608 canip->ah_optlen++; in end_ipopt()
1610 canip->ah_optlen++; in end_ipopt()
1612 s = buf + sizeof(*ip) + canip->ah_optlen - 1; in end_ipopt()
1614 for (pad = 3 - (canip->ah_optlen & 3); pad; pad--) { in end_ipopt()
1617 canip->ah_optlen++; in end_ipopt()
1620 ip->ip_hl = (sizeof(*ip) + canip->ah_optlen) >> 2; in end_ipopt()
1621 inc_anipheaders(canip->ah_optlen); in end_ipopt()