MCPcopy Create free account
hub / github.com/F-Stack/f-stack / tun_process_check

Function tun_process_check

dpdk/lib/ipsec/esp_inb.c:480–487  ·  view source on GitHub ↗

* packet checks for tunnel mode: * - same as for transport mode * - esp tail next proto contains expected for that SA value */

Source from the content-addressed store, hash-verified

478 * - esp tail next proto contains expected for that SA value
479 */
480static inline int32_t
481tun_process_check(struct rte_mbuf *mb, struct rte_mbuf **ml,
482 uint32_t *tofs, struct rte_esp_tail espt, uint32_t hlen, uint32_t tlen,
483 uint8_t proto)
484{
485 return (trs_process_check(mb, ml, tofs, espt, hlen, tlen) ||
486 espt.next_proto != proto);
487}
488
489/*
490 * step two for tunnel mode:

Callers 1

tun_processFunction · 0.85

Calls 1

trs_process_checkFunction · 0.85

Tested by

no test coverage detected