aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/netfilter/nf_nat_l4proto.h
blob: 95a4655bd1ad2a45ed038ff953959245c1bd5bff (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* SPDX-License-Identifier: GPL-2.0 */
/* Header for use in defining a given protocol. */
#ifndef _NF_NAT_L4PROTO_H
#define _NF_NAT_L4PROTO_H
#include <net/netfilter/nf_nat.h>
#include <linux/netfilter/nfnetlink_conntrack.h>

struct nf_nat_l3proto;

/* Translate a packet to the target according to manip type.  Return on success. */
bool nf_nat_l4proto_manip_pkt(struct sk_buff *skb,
			      const struct nf_nat_l3proto *l3proto,
			      unsigned int iphdroff, unsigned int hdroff,
			      const struct nf_conntrack_tuple *tuple,
			      enum nf_nat_manip_type maniptype);
#endif /*_NF_NAT_L4PROTO_H*/