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

Function ipsec6_in_reject

freebsd/netipsec/ipsec.c:801–813  ·  view source on GitHub ↗

* Check IPv6 packet against inbound security policy. * This function is called from tcp6_input(), udp6_input(), * rip6_input() and sctp_input(). */

Source from the content-addressed store, hash-verified

799 * rip6_input() and sctp_input().
800 */
801int
802ipsec6_in_reject(const struct mbuf *m, struct inpcb *inp)
803{
804 struct secpolicy *sp;
805 int result;
806
807 sp = ipsec6_getpolicy(m, inp, IPSEC_DIR_INBOUND, 0);
808 result = ipsec_in_reject(sp, inp, m);
809 key_freesp(&sp);
810 if (result)
811 IPSEC6STAT_INC(ips_in_polvio);
812 return (result);
813}
814
815/*
816 * IPSEC_CAP() method implementation for IPv6.

Callers 3

ipsec6_inputFunction · 0.85
ipsec_input.cFile · 0.85
ipsec6_forwardFunction · 0.85

Calls 3

ipsec6_getpolicyFunction · 0.85
ipsec_in_rejectFunction · 0.85
key_freespFunction · 0.85

Tested by

no test coverage detected