]>
Commit | Line | Data |
---|---|---|
acddc0ed | 1 | // SPDX-License-Identifier: GPL-2.0-or-later |
718e3744 | 2 | /* |
3 | * Interface's address and mask. | |
4 | * Copyright (C) 1997 Kunihiro Ishiguro | |
718e3744 | 5 | */ |
6 | ||
7 | #ifndef _ZEBRA_CONNECTED_H | |
8 | #define _ZEBRA_CONNECTED_H | |
9 | ||
43e52561 QY |
10 | #include <zebra.h> |
11 | #include <stdint.h> | |
12 | ||
13 | #include "lib/if.h" | |
14 | #include "lib/prefix.h" | |
15 | ||
51e94aa7 EDP |
16 | #ifdef __cplusplus |
17 | extern "C" { | |
18 | #endif | |
19 | ||
d62a17ae | 20 | extern struct connected *connected_check(struct interface *ifp, |
abffde07 DL |
21 | union prefixconstptr p); |
22 | extern struct connected *connected_check_ptp(struct interface *ifp, | |
23 | union prefixconstptr p, | |
24 | union prefixconstptr d); | |
718e3744 | 25 | |
d62a17ae | 26 | extern void connected_add_ipv4(struct interface *ifp, int flags, |
9c86ee1e MS |
27 | const struct in_addr *addr, uint16_t prefixlen, |
28 | const struct in_addr *dest, const char *label, | |
cde1af84 | 29 | uint32_t metric); |
718e3744 | 30 | |
d62a17ae | 31 | extern void connected_delete_ipv4(struct interface *ifp, int flags, |
9c86ee1e MS |
32 | const struct in_addr *addr, |
33 | uint16_t prefixlen, | |
34 | const struct in_addr *dest); | |
718e3744 | 35 | |
d62a17ae | 36 | extern void connected_delete_ipv4_unnumbered(struct connected *ifc); |
525c1839 | 37 | |
ae87977c | 38 | extern void connected_up(struct interface *ifp, struct connected *ifc); |
11461c63 | 39 | extern void connected_down(struct interface *ifp, struct connected *ifc); |
718e3744 | 40 | |
d62a17ae | 41 | extern void connected_add_ipv6(struct interface *ifp, int flags, |
9c86ee1e MS |
42 | const struct in6_addr *address, |
43 | const struct in6_addr *dest, uint16_t prefixlen, | |
44 | const char *label, uint32_t metric); | |
d62a17ae | 45 | extern void connected_delete_ipv6(struct interface *ifp, |
9c86ee1e MS |
46 | const struct in6_addr *address, |
47 | const struct in6_addr *dest, | |
48 | uint16_t prefixlen); | |
718e3744 | 49 | |
d62a17ae | 50 | extern int connected_is_unnumbered(struct interface *); |
d44ca835 | 51 | |
51e94aa7 EDP |
52 | #ifdef __cplusplus |
53 | } | |
54 | #endif | |
718e3744 | 55 | #endif /*_ZEBRA_CONNECTED_H */ |