Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
d23f682e
Commit
d23f682e
authored
Apr 09, 2004
by
Harald Welte
Committed by
David S. Miller
Apr 09, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[NETFILTER]: Add more debug info to TFTP helper.
From Vineet Mehta <extreme@zayanionline.com>
parent
7ae47691
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
include/linux/netfilter_ipv4/ip_conntrack_tftp.h
include/linux/netfilter_ipv4/ip_conntrack_tftp.h
+3
-0
net/ipv4/netfilter/ip_conntrack_tftp.c
net/ipv4/netfilter/ip_conntrack_tftp.c
+7
-0
No files found.
include/linux/netfilter_ipv4/ip_conntrack_tftp.h
View file @
d23f682e
...
...
@@ -9,5 +9,8 @@ struct tftphdr {
#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
#endif
/* _IP_CT_TFTP */
net/ipv4/netfilter/ip_conntrack_tftp.c
View file @
d23f682e
...
...
@@ -71,6 +71,13 @@ static int tftp_help(struct sk_buff *skb,
DUMP_TUPLE
(
&
exp
.
mask
);
ip_conntrack_expect_related
(
ct
,
&
exp
);
break
;
case
TFTP_OPCODE_DATA
:
case
TFTP_OPCODE_ACK
:
DEBUGP
(
"Data/ACK opcode
\n
"
);
break
;
case
TFTP_OPCODE_ERROR
:
DEBUGP
(
"Error opcode
\n
"
);
break
;
default:
DEBUGP
(
"Unknown opcode
\n
"
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment