aboutsummaryrefslogtreecommitdiff
path: root/example/l3fwd/odp_l3fwd_lpm.h
blob: 4f2b9ad7f4a9cb5b1e02c2aea866fa5d8f34bca1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* Copyright (c) 2016-2018, Linaro Limited
 * All rights reserved.
 *
 * SPDX-License-Identifier:     BSD-3-Clause
 */

#ifndef _ODP_L3FWD_LPM_H_
#define _ODP_L3FWD_LPM_H_

#ifdef __cplusplus
extern "C" {
#endif
void fib_tbl_init(void);
void fib_tbl_insert(uint32_t ip, int port, int depth);
int fib_tbl_lookup(uint32_t ip, int *port);
#ifdef __cplusplus
}
#endif

#endif