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

libnl 3.12.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
13extern "C" {
14#endif
15
16struct flnl_request;
17
18#define REQUEST_CAST(ptr) ((struct flnl_request *) (ptr))
19
20extern struct flnl_request * flnl_request_alloc(void);
21
22extern void flnl_request_set_fwmark(struct flnl_request *,
23 uint64_t);
24extern uint64_t flnl_request_get_fwmark(struct flnl_request *);
25extern void flnl_request_set_tos(struct flnl_request *,
26 int);
27extern int flnl_request_get_tos(struct flnl_request *);
28extern void flnl_request_set_scope(struct flnl_request *,
29 int);
30extern int flnl_request_get_scope(struct flnl_request *);
31extern void flnl_request_set_table(struct flnl_request *,
32 int);
33extern int flnl_request_get_table(struct flnl_request *);
34extern int flnl_request_set_addr(struct flnl_request *,
35 struct nl_addr *);
36extern struct nl_addr * flnl_request_get_addr(struct flnl_request *);
37
38extern int flnl_request_cmp(struct flnl_request *,
39 struct flnl_request *);
40
41#ifdef __cplusplus
42}
43#endif
44
45#endif