Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | /* |
| 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 Xu | 36cf9ac | 2007-11-13 21:40:52 -0800 | [diff] [blame] | 12 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 13 | static struct xfrm_state_afinfo xfrm4_state_afinfo = { |
| 14 | .family = AF_INET, |
Herbert Xu | 36cf9ac | 2007-11-13 21:40:52 -0800 | [diff] [blame] | 15 | .proto = IPPROTO_IPIP, |
Miika Komu | cdca726 | 2007-02-06 14:24:56 -0800 | [diff] [blame] | 16 | .output = xfrm4_output, |
Herbert Xu | 716062f | 2007-11-13 21:44:23 -0800 | [diff] [blame] | 17 | .transport_finish = xfrm4_transport_finish, |
Hannes Frederic Sowa | 628e341 | 2013-08-14 13:05:23 +0200 | [diff] [blame] | 18 | .local_error = xfrm4_local_error, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 19 | }; |
| 20 | |
| 21 | void __init xfrm4_state_init(void) |
| 22 | { |
| 23 | xfrm_state_register_afinfo(&xfrm4_state_afinfo); |
| 24 | } |