diff options
author | 2009-09-06 22:52:01 +0000 | |
---|---|---|
committer | 2009-09-06 22:52:01 +0000 | |
commit | 4db87432d94824f2ea1da3424c33bb12d6293273 (patch) | |
tree | 7153fc0f49ebb62fd1a5aca941acceff820e72b5 | |
parent | move man/fr_FR/*.8 pages into the "administrator" section (diff) | |
download | net-tools-4db87432d94824f2ea1da3424c33bb12d6293273.tar.gz net-tools-4db87432d94824f2ea1da3424c33bb12d6293273.tar.bz2 net-tools-4db87432d94824f2ea1da3424c33bb12d6293273.zip |
handle raw "IP" masqinfo
-rw-r--r-- | lib/masq_info.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/masq_info.c b/lib/masq_info.c index 45ca689..b8960cd 100644 --- a/lib/masq_info.c +++ b/lib/masq_info.c @@ -6,7 +6,7 @@ * NET-3 Networking Distribution for the LINUX operating * 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> * Copyright 1999 Bernd Eckenfels, Germany @@ -119,7 +119,9 @@ static int read_masqinfo(FILE * f, struct masq *mslist, int nmslist) ms->src.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"; else if (strcmp("UDP", buf) == 0) ms->proto = "udp"; |