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
4db87432
Commit
4db87432
authored
Sep 06, 2009
by
Mike Frysinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
handle raw "IP" masqinfo
parent
b1c865cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
lib/masq_info.c
lib/masq_info.c
+4
-2
No files found.
lib/masq_info.c
View file @
4db87432
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
* NET-3 Networking Distribution for the LINUX operating
* NET-3 Networking Distribution for the LINUX operating
* system. (net-tools, net-drivers)
* system. (net-tools, net-drivers)
*
*
* Version: $Id: masq_info.c,v 1.
7 2000/10/08 01:00:44 ecki
Exp $
* Version: $Id: masq_info.c,v 1.
8 2009/09/06 22:52:01 vapier
Exp $
*
*
* Author: Bernd 'eckes' Eckenfels <net-tools@lina.inka.de>
* Author: Bernd 'eckes' Eckenfels <net-tools@lina.inka.de>
* Copyright 1999 Bernd Eckenfels, Germany
* Copyright 1999 Bernd Eckenfels, Germany
...
@@ -119,7 +119,9 @@ static int read_masqinfo(FILE * f, struct masq *mslist, int nmslist)
...
@@ -119,7 +119,9 @@ static int read_masqinfo(FILE * f, struct masq *mslist, int nmslist)
ms
->
src
.
sin_family
=
AF_INET
;
ms
->
src
.
sin_family
=
AF_INET
;
ms
->
dst
.
sin_family
=
AF_INET
;
ms
->
dst
.
sin_family
=
AF_INET
;
if
(
strcmp
(
"TCP"
,
buf
)
==
0
)
if
(
strcmp
(
"IP"
,
buf
)
==
0
)
ms
->
proto
=
"ip"
;
else
if
(
strcmp
(
"TCP"
,
buf
)
==
0
)
ms
->
proto
=
"tcp"
;
ms
->
proto
=
"tcp"
;
else
if
(
strcmp
(
"UDP"
,
buf
)
==
0
)
else
if
(
strcmp
(
"UDP"
,
buf
)
==
0
)
ms
->
proto
=
"udp"
;
ms
->
proto
=
"udp"
;
...
...
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