aboutsummaryrefslogtreecommitdiff
path: root/net/ipsorc/files
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2002-11-11 17:54:14 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2002-11-11 17:54:14 +0000
commit314d439acce28a026f28922e436102ae146db1de (patch)
tree27198a8a711a35a0db4e4183aca377f5f6f34add /net/ipsorc/files
parent98f24324d4238f837d1eef766ff514f54dbb861d (diff)
Notes
Diffstat (limited to 'net/ipsorc/files')
-rw-r--r--net/ipsorc/files/patch-aa25
-rw-r--r--net/ipsorc/files/patch-sorcery.c11
2 files changed, 22 insertions, 14 deletions
diff --git a/net/ipsorc/files/patch-aa b/net/ipsorc/files/patch-aa
index 7108ddcc64b1..91d19cce8fcf 100644
--- a/net/ipsorc/files/patch-aa
+++ b/net/ipsorc/files/patch-aa
@@ -1,31 +1,28 @@
---- Makefile.orig Fri Mar 29 16:12:20 2002
-+++ Makefile Mon Apr 1 12:15:29 2002
+--- Makefile.orig Sun Nov 10 19:38:17 2002
++++ Makefile Sun Nov 10 21:08:50 2002
@@ -1,6 +1,5 @@
- ## Makefile for IPMagic ##
+ ## Makefile for IP Sorcery ##
-CC = cc
SPELL = magic
SRC = ipmagic.c spellbook.c cauldron.c spells.c tcp.c icmp.c udp.c
- CON = sorcery.c spells.c ipsorcery.c icmp.c
-@@ -9,16 +8,18 @@
- default:
- @echo "Usage: make[gtk|con] then make [gtk-install|con-install]"
+ CON = sorcery.c spells.c route.c ip.c tcp.c udp.c ipsorcery.c icmp.c
+@@ -12,15 +11,15 @@
+ all: con gtk
-+all: con gtk
-+
con:
-- $(CC) -g -O2 -Wall -ansi -D_CON_ $(CON) -o ipmagic
-+ $(CC) $(CFLAGS) -Wall -ansi -D_CON_ $(CON) -o ipmagic
+- $(CC) -g -O2 -Wall -ansi -D_VERSION_=\"1.7.5\" -D_CON_ $(CON) -o ipmagic
++ $(CC) $(CFLAGS) -Wall -ansi -D_VERSION_=\"1.7.5\" -D_CON_ $(CON) -o ipmagic
gtk:
- $(CC) -g -O2 -Wall -ansi -D_GTK_ $(SRC) -o $(SPELL) `gtk-config --cflags --libs`
-+ $(CC) $(CFLAGS) -Wall -ansi -D_GTK_ $(SRC) -o $(SPELL) `/usr/X11R6/bin/gtk12-config --cflags --libs`
++ $(CC) $(CFLAGS) -Wall -ansi -D_GTK_ $(SRC) -o $(SPELL) `$(GTK_CONFIG) --cflags --libs`
solaris:
-- $(CC) -g -O2 -Wall -ansi -D_CON_ $(CON) -o $(SPELL) -lsocket -lnsl
-+ $(CC) $(CFLAGS) -Wall -ansi -D_CON_ $(CON) -o $(SPELL) -lsocket -lnsl
+- $(CC) -g -O2 -Wall -ansi -D_CON_ $(CON) -o $(SPELL) -lsocket -lnsl
++ $(CC) $(CFLAGS) -Wall -ansi -D_CON_ $(CON) -o $(SPELL) -lsocket -lnsl
install: con-install
diff --git a/net/ipsorc/files/patch-sorcery.c b/net/ipsorc/files/patch-sorcery.c
new file mode 100644
index 000000000000..74eed0338ca4
--- /dev/null
+++ b/net/ipsorc/files/patch-sorcery.c
@@ -0,0 +1,11 @@
+--- sorcery.c.orig Sun Nov 10 21:13:36 2002
++++ sorcery.c Sun Nov 10 21:14:18 2002
+@@ -152,7 +152,7 @@
+ if(exi.READ_IT) {
+
+ /* open second socket for snooping them packets */
+- if((snoop = socket(PF_PACKET, SOCK_PACKET, ETH_P_ALL)) == -1)
++ if((snoop = socket(PF_INET, SOCK_RAW, 0)) == -1)
+ {
+ perror("snoop socket");
+ exit(snoop);