]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - pkgs/net-tools/patches/net-tools-1.60-masqinfo-raw-ip.patch
Move packages to pkgs subdirectory.
[people/ms/ipfire-3.x.git] / pkgs / net-tools / patches / net-tools-1.60-masqinfo-raw-ip.patch
CommitLineData
236898d6
MT
1diff -up net-tools-1.60/lib/masq_info.c.masqinfo-raw-ip net-tools-1.60/lib/masq_info.c
2--- net-tools-1.60/lib/masq_info.c.masqinfo-raw-ip 2000-10-28 12:59:42.000000000 +0200
3+++ net-tools-1.60/lib/masq_info.c 2009-09-15 17:05:24.000000000 +0200
4@@ -119,7 +119,9 @@ static int read_masqinfo(FILE * f, struc
5 ms->src.sin_family = AF_INET;
6 ms->dst.sin_family = AF_INET;
7
8- if (strcmp("TCP", buf) == 0)
9+ if (strcmp("IP", buf) == 0)
10+ ms->proto = "ip";
11+ else if (strcmp("TCP", buf) == 0)
12 ms->proto = "tcp";
13 else if (strcmp("UDP", buf) == 0)
14 ms->proto = "udp";