Linux 4.19-rc7
[linux-2.6/btrfs-unstable.git] / include / linux / netfilter / nf_conntrack_tftp.h
blob5769e12dd0a2abdfdc89c189b23217fe6a6e3ab0
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _NF_CONNTRACK_TFTP_H
3 #define _NF_CONNTRACK_TFTP_H
5 #define TFTP_PORT 69
7 struct tftphdr {
8 __be16 opcode;
9 };
11 #define TFTP_OPCODE_READ 1
12 #define TFTP_OPCODE_WRITE 2
13 #define TFTP_OPCODE_DATA 3
14 #define TFTP_OPCODE_ACK 4
15 #define TFTP_OPCODE_ERROR 5
17 extern unsigned int (*nf_nat_tftp_hook)(struct sk_buff *skb,
18 enum ip_conntrack_info ctinfo,
19 struct nf_conntrack_expect *exp);
21 #endif /* _NF_CONNTRACK_TFTP_H */