9#include <netlink/netlink.h>
10#include <netlink/cache.h>
11#include <netlink/route/action.h>
12#include <linux/tc_act/tc_nat.h>
14#include <netinet/in.h>
21extern int rtnl_nat_get_old_addr(
struct rtnl_act *act, in_addr_t *addr);
23extern int rtnl_nat_get_new_addr(
struct rtnl_act *act, in_addr_t *addr);
25extern int rtnl_nat_get_mask(
struct rtnl_act *act, in_addr_t *bitmask);
27extern int rtnl_nat_get_flags(
struct rtnl_act *act, uint32_t *flags);
28extern int rtnl_nat_set_action(
struct rtnl_act *act,
int action);
29extern int rtnl_nat_get_action(
struct rtnl_act *act,
int *action);
int rtnl_nat_set_new_addr(struct rtnl_act *act, in_addr_t addr)
Set new IPv4 address on a netlink NAT action object.
int rtnl_nat_set_flags(struct rtnl_act *act, uint32_t flags)
Set flags for a netlink NAT action object.
int rtnl_nat_set_old_addr(struct rtnl_act *act, in_addr_t addr)
Set old IPv4 address on a netlink NAT action object.
int rtnl_nat_set_mask(struct rtnl_act *act, in_addr_t bitmask)
Set IPv4 address mask on a netlink NAT action object.