blob: 63d8e9ca9d99e0bef223973a48d24229689de27e [file] [log] [blame]
Herbert Xub4219952007-09-27 12:48:05 -07001#ifndef __NET_TC_NAT_H
2#define __NET_TC_NAT_H
3
4#include <linux/types.h>
5#include <net/act_api.h>
6
7struct tcf_nat {
8 struct tcf_common common;
9
10 __be32 old_addr;
11 __be32 new_addr;
12 __be32 mask;
13 u32 flags;
14};
15
WANG Cong86062032014-02-11 17:07:31 -080016static inline struct tcf_nat *to_tcf_nat(struct tc_action *a)
Herbert Xub4219952007-09-27 12:48:05 -070017{
WANG Cong86062032014-02-11 17:07:31 -080018 return container_of(a->priv, struct tcf_nat, common);
Herbert Xub4219952007-09-27 12:48:05 -070019}
20
21#endif /* __NET_TC_NAT_H */