libnl: /data/src/libnl3/include/netlink/fib_lookup/request.h Source File

libnl 3.7.0

request.h
1 /* SPDX-License-Identifier: LGPL-2.1-only */
2 /*
3 * Copyright (c) 2003-2006 Thomas Graf <tgraf@suug.ch>
4 */
5
6 #ifndef NETLINK_FIB_LOOKUP_REQUEST_H_
7 #define NETLINK_FIB_LOOKUP_REQUEST_H_
8
9 #include <netlink/netlink.h>
10 #include <netlink/addr.h>
11
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15
16 struct flnl_request;
17
18 #define REQUEST_CAST(ptr) ((struct flnl_request *) (ptr))
19
20 extern struct flnl_request * flnl_request_alloc(void);
21
22 extern void flnl_request_set_fwmark(struct flnl_request *,
23 uint64_t);
24 extern uint64_t flnl_request_get_fwmark(struct flnl_request *);
25 extern void flnl_request_set_tos(struct flnl_request *,
26 int);
27 extern int flnl_request_get_tos(struct flnl_request *);
28 extern void flnl_request_set_scope(struct flnl_request *,
29 int);
30 extern int flnl_request_get_scope(struct flnl_request *);
31 extern void flnl_request_set_table(struct flnl_request *,
32 int);
33 extern int flnl_request_get_table(struct flnl_request *);
34 extern int flnl_request_set_addr(struct flnl_request *,
35 struct nl_addr *);
36 extern struct nl_addr * flnl_request_get_addr(struct flnl_request *);
37
38 extern int flnl_request_cmp(struct flnl_request *,
39 struct flnl_request *);
40
41 #ifdef __cplusplus
42 }
43 #endif
44
45 #endif