File Index
Files and directories
Sign in
FILE

nf_conntrack_tftp.h

File preview with syntax highlighting.

linux-6.19.14/include/linux/netfilter/nf_conntrack_tftp.h C
 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#include <linux/netfilter.h>
 8#include <linux/skbuff.h>
 9#include <linux/types.h>
10#include <net/netfilter/nf_conntrack_expect.h>
11
12struct tftphdr {
13	__be16 opcode;
14};
15
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
21
22extern unsigned int (*nf_nat_tftp_hook)(struct sk_buff *skb,
23				        enum ip_conntrack_info ctinfo,
24				        struct nf_conntrack_expect *exp);
25
26#endif /* _NF_CONNTRACK_TFTP_H */
~/ Read-only file preview.