diff options
| author | David Lamparter <equinox@diac24.net> | 2019-08-02 17:42:06 +0200 |
|---|---|---|
| committer | David Lamparter <equinox@diac24.net> | 2020-03-29 10:45:46 +0200 |
| commit | 07ef3e34ae0a414cefed99488abcbc167a9c0f3d (patch) | |
| tree | d4e945a2c6e94d541e27d0a8bfef18f248a94f40 /lib/prefix.h | |
| parent | 47466c571f6468b8b8a92de4c451057bd96d1233 (diff) | |
lib: prepare for plugin-based frr_format check
Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'lib/prefix.h')
| -rw-r--r-- | lib/prefix.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/prefix.h b/lib/prefix.h index 51b3dacb8d..f2952c38c3 100644 --- a/lib/prefix.h +++ b/lib/prefix.h @@ -544,6 +544,22 @@ static inline int is_default_host_route(const struct prefix *p) return 0; } +#ifdef _FRR_ATTRIBUTE_PRINTFRR +#pragma FRR printfrr_ext "%pI4" (struct in_addr *) +#pragma FRR printfrr_ext "%pI4" (in_addr_t *) + +#pragma FRR printfrr_ext "%pI6" (struct in6_addr *) + +#pragma FRR printfrr_ext "%pFX" (struct prefix *) +#pragma FRR printfrr_ext "%pFX" (struct prefix_ipv4 *) +#pragma FRR printfrr_ext "%pFX" (struct prefix_ipv6 *) +#pragma FRR printfrr_ext "%pFX" (struct prefix_eth *) +#pragma FRR printfrr_ext "%pFX" (struct prefix_evpn *) +#pragma FRR printfrr_ext "%pFX" (struct prefix_fs *) + +#pragma FRR printfrr_ext "%pSG4" (struct prefix_sg *) +#endif + #ifdef __cplusplus } #endif |
