Staging
v0.5.1
https://github.com/torvalds/linux
Raw File
Tip revision: bce7f793daec3e65ec5c5705d2457b81fe7b5725 authored by Linus Torvalds on 13 July 2008, 21:51:29 UTC
Linux 2.6.26
Tip revision: bce7f79
nf_conntrack_tftp.h
#ifndef _NF_CONNTRACK_TFTP_H
#define _NF_CONNTRACK_TFTP_H

#define TFTP_PORT 69

struct tftphdr {
	__be16 opcode;
};

#define TFTP_OPCODE_READ	1
#define TFTP_OPCODE_WRITE	2
#define TFTP_OPCODE_DATA	3
#define TFTP_OPCODE_ACK		4
#define TFTP_OPCODE_ERROR	5

extern unsigned int (*nf_nat_tftp_hook)(struct sk_buff *skb,
				        enum ip_conntrack_info ctinfo,
				        struct nf_conntrack_expect *exp);

#endif /* _NF_CONNTRACK_TFTP_H */
back to top