1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _NF_CONNTRACK_TFTP_H
3 #define _NF_CONNTRACK_TFTP_H
7 #include <linux/netfilter.h>
8 #include <linux/skbuff.h>
9 #include <linux/types.h>
10 #include <net/netfilter/nf_conntrack_expect.h>
16 #define TFTP_OPCODE_READ 1
17 #define TFTP_OPCODE_WRITE 2
18 #define TFTP_OPCODE_DATA 3
19 #define TFTP_OPCODE_ACK 4
20 #define TFTP_OPCODE_ERROR 5
22 extern unsigned int (*nf_nat_tftp_hook)(struct sk_buff *skb,
23 enum ip_conntrack_info ctinfo,
24 struct nf_conntrack_expect *exp);
26 #endif /* _NF_CONNTRACK_TFTP_H */