Home
last modified time | relevance | path

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

/freebsd/sys/netipsec/
H A Dxform_esp.c279 uint32_t seqh; in esp_input() local
341 if (ipsec_chkreplay(ntohl(esp->esp_seq), &seqh, sav) == 0) { in esp_input()
349 seqh = htonl(seqh); in esp_input()
386 crp->crp_aad_length += sizeof(seqh); in esp_input()
399 bcopy(&seqh, (char *)crp->crp_aad + aad_skip, sizeof(seqh)); in esp_input()
400 aad_skip += sizeof(seqh); in esp_input()
412 memcpy(crp->crp_esn, &seqh, sizeof(seqh)); in esp_input()
710 uint32_t seqh; in esp_output() local
822 seqh = htonl((uint32_t)(sav->replay->count >> IPSEC_SEQH_SHIFT)); in esp_output()
939 crp->crp_aad_length += sizeof(seqh); in esp_output()
[all …]
H A Dipsec.c1270 uint32_t seqh; in ipsec_chkreplay() local
1349 seqh = th - 1; in ipsec_chkreplay()
1363 seqh = th + 1; in ipsec_chkreplay()
1366 if (seqh == 0) { in ipsec_chkreplay()
1399 uint32_t seqh; in ipsec_updatereplay() local
1431 seqh = th; in ipsec_updatereplay()
1440 advance_window(replay, ((uint64_t)seqh << 32) | seq); in ipsec_updatereplay()
1442 replay->last = ((uint64_t)seqh << 32) | seq; in ipsec_updatereplay()
1482 seqh = th + 1; in ipsec_updatereplay()
1485 if (seqh == 0) { 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()