root/include/linux/netfilter/nf_conntrack_tftp.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


   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 
  12 struct 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 
  22 extern 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 */

/* [<][>][^][v][top][bottom][index][help] */