blob: 303716e99626740a142643fcd0833b35359e4785 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001--- a/oor/data-plane/tun/tun.c
2+++ b/oor/data-plane/tun/tun.c
3@@ -53,6 +53,8 @@ int tun_rm_fwd_from_entry(lisp_addr_t *e
4 tun_dplane_data_t * tun_dplane_data_new_init(oor_encap_t encap_type, glist_t *allowed_dst_eids);
5 void tun_dplane_data_free(tun_dplane_data_t *data);
6
7+int tun_receive_fd;
8+int tun_ifindex;
9
10 data_plane_struct_t dplane_tun = {
11 .datap_init = tun_configure_data_plane,
12--- a/oor/data-plane/tun/tun.h
13+++ b/oor/data-plane/tun/tun.h
14@@ -60,9 +60,9 @@
15
16 /* Tun MN variables */
17
18-int tun_receive_fd;
19-int tun_ifindex;
20-uint8_t *tun_receive_buf;
21+extern int tun_receive_fd;
22+extern int tun_ifindex;
23+extern uint8_t *tun_receive_buf;
24
25 lisp_addr_t * tun_get_default_output_address(int afi);
26 int tun_get_default_output_socket(int);