Commit 4db87432 authored by Mike Frysinger's avatar Mike Frysinger

handle raw "IP" masqinfo

parent b1c865cd
...@@ -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";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment