xfrm_register_type
int xfrm_register_type(const struct xfrm_type *type, unsigned short family);
if (xfrm_register_type(&ah_type, AF_INET) < 0) {
if (xfrm_register_type(&esp_type, AF_INET) < 0) {
if (xfrm_register_type(&ipcomp_type, AF_INET) < 0) {
if (xfrm_register_type(&ipip_type, AF_INET) < 0) {
if (xfrm_register_type(&ah6_type, AF_INET6) < 0) {
if (xfrm_register_type(&esp6_type, AF_INET6) < 0) {
if (xfrm_register_type(&ipcomp6_type, AF_INET6) < 0) {
if (xfrm_register_type(&mip6_destopt_type, AF_INET6) < 0) {
if (xfrm_register_type(&mip6_rthdr_type, AF_INET6) < 0) {
rv = xfrm_register_type(&xfrm6_tunnel_type, AF_INET6);
EXPORT_SYMBOL(xfrm_register_type);