Merge tag 'virtio-next-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-2.6-block.git] / include / net / tc_act / tc_nat.h
CommitLineData
b4219952
HX
1#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
86062033 16static inline struct tcf_nat *to_tcf_nat(struct tc_action *a)
b4219952 17{
86062033 18 return container_of(a->priv, struct tcf_nat, common);
b4219952
HX
19}
20
21#endif /* __NET_TC_NAT_H */