Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
net-tools
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
Kirill Smelkov
net-tools
Commits
ba96e164
Commit
ba96e164
authored
Feb 23, 1999
by
Phil Blundell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle ICMP masquerade properly. (From Debian net-tools
maintainer, Anthony Towns <aj@azure.humbug.org.au>)
parent
ca6a9548
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
lib/masq_info.c
lib/masq_info.c
+3
-1
No files found.
lib/masq_info.c
View file @
ba96e164
...
...
@@ -6,7 +6,7 @@
* NET-3 Networking Distribution for the LINUX operating
* system. (net-tools, net-drivers)
*
* Version: $Id: masq_info.c,v 1.
4 1998/12/06 16:17:55
philip Exp $
* Version: $Id: masq_info.c,v 1.
5 1999/02/23 12:46:31
philip Exp $
*
* Author: Bernd 'eckes' Eckenfels <net-tools@lina.inka.de>
* Copyright 1999 Bernd Eckenfels, Germany
...
...
@@ -122,6 +122,8 @@ static int read_masqinfo(FILE * f, struct masq *mslist, int nmslist)
ms
->
proto
=
"tcp"
;
else
if
(
strcmp
(
"UDP"
,
buf
)
==
0
)
ms
->
proto
=
"udp"
;
else
if
(
strcmp
(
"ICMP"
,
buf
)
==
0
)
ms
->
proto
=
"icmp"
;
else
{
EINTERN
(
"masq_info.c"
,
"ip_masquerade unknown type"
);
return
(
-
1
);
...
...
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