From b7171f3e8a16766e1543e3e3ca797371466cbf87 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 14 Apr 2008 00:35:59 -0400 Subject: [PATCH] handle just raw "IP" info --- lib/masq_info.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/lib/masq_info.c b/lib/masq_info.c index 45ca689..93eb04f 100644 --- a/lib/masq_info.c +++ b/lib/masq_info.c @@ -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"; -- 1.5.5