Lines Matching refs:esphlen
259 size_t esphlen; /* sizeof(struct esp/newesp) + ivlen */ in esp_output() local
376 esphlen = esplen + ivlen; in esp_output()
510 esphlen += sizeof(struct udphdr); in esp_output()
519 if (M_LEADINGSPACE(md) < esphlen || (md->m_flags & M_EXT) != 0) { in esp_output()
526 VERIFY(esphlen <= INT32_MAX); in esp_output()
527 n->m_len = (int)esphlen; in esp_output()
530 m->m_pkthdr.len += esphlen; in esp_output()
538 md->m_len += esphlen; in esp_output()
539 md->m_data -= esphlen; in esp_output()
540 m->m_pkthdr.len += esphlen; in esp_output()
552 if (esphlen < (IP_MAXPACKET - ntohs(ip->ip_len))) { in esp_output()
553 ip->ip_len = htons(ntohs(ip->ip_len) + (u_short)esphlen); in esp_output()
902 VERIFY((plen + siz + extendsiz + esphlen) <= UINT16_MAX); in esp_output()
903 udp->uh_ulen = htons((u_int16_t)(plen + siz + extendsiz + esphlen)); in esp_output()
985 size_t iphlen = 0, esphlen = 0, padbound = 0, extendsiz = 0, plen = 0; in esp_kpipe_output() local
1087 esphlen = sizeof(struct newesp) + ivlen; in esp_kpipe_output()
1122 size_t total_len = iphlen + esphlen + plen + extendsiz + auth_size; in esp_kpipe_output()
1146 add_ip_len = esphlen + extendsiz + auth_size; in esp_kpipe_output()
1221 dst_payload = dbaddr + iphlen + esphlen; in esp_kpipe_output()
1244 esphlen + plen + extendsiz, auth_buf, auth_size)) != 0)) { in esp_kpipe_output()