]>
Commit | Line | Data |
---|---|---|
acddc0ed | 1 | // SPDX-License-Identifier: GPL-2.0-or-later |
aed07011 | 2 | /* |
247dcce2 | 3 | * NHRP-specific error messages. |
aed07011 DS |
4 | * Copyright (C) 2018 Cumulus Networks, Inc. |
5 | * Donald Sharp | |
aed07011 | 6 | */ |
247dcce2 | 7 | |
aed07011 DS |
8 | #include <zebra.h> |
9 | ||
247dcce2 | 10 | #include "lib/ferr.h" |
aed07011 DS |
11 | #include "nhrp_errors.h" |
12 | ||
247dcce2 | 13 | /* clang-format off */ |
85cd2f9f | 14 | static struct log_ref ferr_nhrp_err[] = { |
aed07011 | 15 | { |
2b84a521 | 16 | .code = EC_NHRP_SWAN, |
aed07011 DS |
17 | .title = "NHRP Strong Swan Error", |
18 | .description = "NHRP has detected a error with the Strongswan code", | |
19 | .suggestion = "Ensure that StrongSwan is configured correctly. Restart StrongSwan and FRR" | |
20 | }, | |
aed07011 DS |
21 | { |
22 | .code = END_FERR, | |
23 | } | |
24 | }; | |
247dcce2 | 25 | /* clang-format on */ |
aed07011 DS |
26 | |
27 | void nhrp_error_init(void) | |
28 | { | |
85cd2f9f | 29 | log_ref_add(ferr_nhrp_err); |
aed07011 | 30 | } |