Home
last modified time | relevance | path

Searched refs:seqh (Results 1 – 3 of 3) sorted by relevance

/freebsd-14.2/sys/netipsec/
H A Dxform_esp.c280 uint32_t seqh; in esp_input() local
350 seqh = htonl(seqh); in esp_input()
387 crp->crp_aad_length += sizeof(seqh); in esp_input()
400 bcopy(&seqh, (char *)crp->crp_aad + aad_skip, sizeof(seqh)); in esp_input()
401 aad_skip += sizeof(seqh); in esp_input()
413 memcpy(crp->crp_esn, &seqh, sizeof(seqh)); in esp_input()
711 uint32_t seqh; in esp_output() local
940 crp->crp_aad_length += sizeof(seqh); in esp_output()
953 bcopy(&seqh, (char *)crp->crp_aad + aad_skip, sizeof(seqh)); in esp_output()
954 aad_skip += sizeof(seqh); in esp_output()
[all …]
H A Dipsec.c1257 uint32_t seqh; in ipsec_chkreplay() local
1336 seqh = th - 1; in ipsec_chkreplay()
1350 seqh = th + 1; in ipsec_chkreplay()
1353 if (seqh == 0) { in ipsec_chkreplay()
1386 uint32_t seqh; in ipsec_updatereplay() local
1418 seqh = th; in ipsec_updatereplay()
1429 replay->last = ((uint64_t)seqh << 32) | seq; in ipsec_updatereplay()
1469 seqh = th + 1; in ipsec_updatereplay()
1472 if (seqh == 0) { in ipsec_updatereplay()
1477 advance_window(replay, ((uint64_t)seqh << 32) | seq); in ipsec_updatereplay()
[all …]
H A Dxform_ah.c544 uint32_t seqh; in ah_input() local
570 ipsec_chkreplay(ntohl(ah->ah_seq), &seqh, sav) == 0) { in ah_input()
666 seqh = htonl(seqh); in ah_input()
667 memcpy(crp->crp_esn, &seqh, sizeof(seqh)); in ah_input()
855 uint32_t seqh; in ah_output() local
1058 seqh = htonl((uint32_t)(sav->replay->count >> IPSEC_SEQH_SHIFT)); in ah_output()
1059 memcpy(crp->crp_esn, &seqh, sizeof(seqh)); in ah_output()