| 338 | } |
| 339 | |
| 340 | static struct secasindex * |
| 341 | ipsec_getsaidx(struct ipsec_softc *sc, int dir, sa_family_t af) |
| 342 | { |
| 343 | struct secpolicy *sp; |
| 344 | |
| 345 | sp = ipsec_getpolicy(sc, dir, af); |
| 346 | if (sp == NULL) |
| 347 | return (NULL); |
| 348 | return (&sp->req[0]->saidx); |
| 349 | } |
| 350 | |
| 351 | static int |
| 352 | ipsec_transmit(struct ifnet *ifp, struct mbuf *m) |
no test coverage detected