blob: 87d4db5914880cf594ba4982cb16f8980debfb4a [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001// SPDX-License-Identifier: GPL-2.0
Linus Torvalds1da177e2005-04-16 15:20:36 -07002/*
3 * xfrm4_state.c
4 *
5 * Changes:
6 * YOSHIFUJI Hideaki @USAGI
7 * Split up af-specific portion
8 *
9 */
10
11#include <net/xfrm.h>
Herbert Xu36cf9ac2007-11-13 21:40:52 -080012
Linus Torvalds1da177e2005-04-16 15:20:36 -070013static struct xfrm_state_afinfo xfrm4_state_afinfo = {
14 .family = AF_INET,
Herbert Xu36cf9ac2007-11-13 21:40:52 -080015 .proto = IPPROTO_IPIP,
Miika Komucdca7262007-02-06 14:24:56 -080016 .output = xfrm4_output,
Herbert Xu716062f2007-11-13 21:44:23 -080017 .transport_finish = xfrm4_transport_finish,
Hannes Frederic Sowa628e3412013-08-14 13:05:23 +020018 .local_error = xfrm4_local_error,
Linus Torvalds1da177e2005-04-16 15:20:36 -070019};
20
21void __init xfrm4_state_init(void)
22{
23 xfrm_state_register_afinfo(&xfrm4_state_afinfo);
24}