aboutsummaryrefslogtreecommitdiff
path: root/net/apinger
diff options
context:
space:
mode:
authorMichael Landin <mich@FreeBSD.org>2008-07-10 20:43:55 +0000
committerMichael Landin <mich@FreeBSD.org>2008-07-10 20:43:55 +0000
commit1a670bfca1e33380d90d4bc935203409309263c8 (patch)
tree7f8ce2712aa135d3f1070739c49087215f1beb6e /net/apinger
parentf321455850db2cfda7c611361d7d2f10afc3597a (diff)
downloadports-1a670bfca1e33380d90d4bc935203409309263c8.tar.gz
ports-1a670bfca1e33380d90d4bc935203409309263c8.zip
Notes
Diffstat (limited to 'net/apinger')
-rw-r--r--net/apinger/files/patch-src_apinger.h11
-rw-r--r--net/apinger/files/patch-src_main.c20
2 files changed, 31 insertions, 0 deletions
diff --git a/net/apinger/files/patch-src_apinger.h b/net/apinger/files/patch-src_apinger.h
new file mode 100644
index 000000000000..417fa0908be2
--- /dev/null
+++ b/net/apinger/files/patch-src_apinger.h
@@ -0,0 +1,11 @@
+--- src/apinger.h.old 2008-07-10 22:38:08.000000000 +0200
++++ src/apinger.h 2008-07-10 22:38:29.000000000 +0200
+@@ -119,7 +119,7 @@
+
+ extern int icmp_sock;
+ extern int icmp6_sock;
+-extern int ident;
++extern uint16_t ident;
+
+ extern struct timeval next_probe;
+
diff --git a/net/apinger/files/patch-src_main.c b/net/apinger/files/patch-src_main.c
new file mode 100644
index 000000000000..7902e4a0b53d
--- /dev/null
+++ b/net/apinger/files/patch-src_main.c
@@ -0,0 +1,20 @@
+--- src/main.c.old 2008-07-10 22:36:21.000000000 +0200
++++ src/main.c 2008-07-10 22:36:53.000000000 +0200
+@@ -96,7 +96,7 @@
+
+ int icmp_sock;
+ int icmp6_sock;
+-int ident;
++uint16_t ident;
+
+ struct timeval next_probe={0,0};
+
+@@ -277,7 +277,7 @@
+ return 1;
+ }
+
+- ident=getpid();
++ ident=getpid() & 0xFFFF;
+ signal(SIGTERM,signal_handler);
+ signal(SIGINT,signal_handler);
+ signal(SIGHUP,signal_handler);