Home | History | Annotate | Download | only in netipsec

Lines Matching defs:ah

72 #include <netipsec/ah.h>
93 sizeof(struct ah) : sizeof(struct ah) + sizeof(uint32_t))
104 int ah_enable = 1; /* control flow of packets with AH */
105 int ip4_ah_cleartos = 1; /* clear ip_tos when doing AH calc */
187 size = sizeof(struct ah) + sizeof(uint32_t) + ah_max_authsize;
283 * Massage IPv4/IPv6 headers for AH processing.
529 struct newah *ah;
544 M_REGION_GET(ah, struct newah *, m, skip, rplen);
545 if (ah == NULL) {
550 nxt = ah->ah_nxt;
553 if (sav->replay && !ipsec_chkreplay(ntohl(ah->ah_seq), sav)) {
562 /* Verify AH header length. */
563 hl = sizeof(struct ah) + (ah->ah_len * sizeof(uint32_t));
641 * and the AH header.
725 * AH input callback from the crypto driver.
844 * Remove the AH header and authenticator from the mbuf.
878 * AH output routine, called by ipsec[46]_process_packet().
893 struct newah *ah;
956 /* Inject AH header. */
959 DPRINTF("failed to inject %u byte AH header for SA "
969 * The AH header is guaranteed by m_makespace() to be in
972 ah = (struct newah *)(mtod(mi, char *) + roff);
974 /* Initialize the AH header. */
975 m_copydata(m, protoff, sizeof(uint8_t), &ah->ah_nxt);
976 ah->ah_len = (ahsize - sizeof(struct ah)) / sizeof(uint32_t);
977 ah->ah_reserve = 0;
978 ah->ah_spi = sav->spi;
1003 ah->ah_seq = htonl(sav->replay->count);
1124 * AH output callback from the crypto driver.
1215 .xf_name = "IPsec AH",
1257 sizeof(struct ah) + sizeof(uint32_t) + ah_max_authsize;