* packet checks for tunnel mode: * - same as for transport mode * - esp tail next proto contains expected for that SA value */
| 478 | * - esp tail next proto contains expected for that SA value |
| 479 | */ |
| 480 | static inline int32_t |
| 481 | tun_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: |
no test coverage detected