1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #ifndef _NF_CONNTRACK_TFTP_H 3 #define _NF_CONNTRACK_TFTP_H 4 5 #define TFTP_PORT 69 6 7 struct tftphdr { 8 __be16 opcode; 9 }; 10 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 16 17 extern unsigned int (*nf_nat_tftp_hook)(struct sk_buff *skb, 18 enum ip_conntrack_info ctinfo, 19 struct nf_conntrack_expect *exp); 20 21 #endif /* _NF_CONNTRACK_TFTP_H */ 22