summaryrefslogtreecommitdiff
path: root/net/choparp
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2002-07-30 12:41:25 +0000
committerwiz <wiz@pkgsrc.org>2002-07-30 12:41:25 +0000
commitb9d2501ad69c0e7f6cdaca7fe86c7c53561fbc0c (patch)
treea96b1d9f2083c6a314156ebe65ffe63594bc2f60 /net/choparp
parent1fa0335e67a845495f20072c09f34556e83e0df8 (diff)
downloadpkgsrc-b9d2501ad69c0e7f6cdaca7fe86c7c53561fbc0c.tar.gz
Update to 971007nb1: Fix for sparc64, from Tomi Nylund in pkg/17759.
Diffstat (limited to 'net/choparp')
-rw-r--r--net/choparp/Makefile3
-rw-r--r--net/choparp/distinfo4
-rw-r--r--net/choparp/patches/patch-ac15
3 files changed, 16 insertions, 6 deletions
diff --git a/net/choparp/Makefile b/net/choparp/Makefile
index 52f52916d9d..b1f5f54aed9 100644
--- a/net/choparp/Makefile
+++ b/net/choparp/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2001/02/17 18:18:39 wiz Exp $
+# $NetBSD: Makefile,v 1.4 2002/07/30 12:41:25 wiz Exp $
# New ports collection makefile for: choparp
# Version required: 971007
# Date created: 7 October 1997
@@ -8,6 +8,7 @@
#
DISTNAME= choparp-971007
+PKGREVISION= 1
CATEGORIES= net
MASTER_SITES= http://delegate.uec.ac.jp:8081/club/mma/~tree/soft/choparp/
diff --git a/net/choparp/distinfo b/net/choparp/distinfo
index 1cd63f02b20..61d7c29d047 100644
--- a/net/choparp/distinfo
+++ b/net/choparp/distinfo
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.2 2001/04/21 11:23:11 wiz Exp $
+$NetBSD: distinfo,v 1.3 2002/07/30 12:41:26 wiz Exp $
SHA1 (choparp-971007.tar.gz) = 3d21072d36a28632a9bf2e5f4d2cdf24e51959a9
Size (choparp-971007.tar.gz) = 4462 bytes
SHA1 (patch-aa) = 352101cba36d4797a4f4026f05bc2134ef7d7eeb
SHA1 (patch-ab) = f84b37123897111c4b9e6f7ad4437c5ac7682b27
-SHA1 (patch-ac) = 219f40a301291135c8ab3dba25c8bca9ca60c0d2
+SHA1 (patch-ac) = 570fcb3f25cd037092b87377107ae6b7894333c2
diff --git a/net/choparp/patches/patch-ac b/net/choparp/patches/patch-ac
index 7c209f18776..cbdb03d7490 100644
--- a/net/choparp/patches/patch-ac
+++ b/net/choparp/patches/patch-ac
@@ -1,6 +1,6 @@
-$NetBSD: patch-ac,v 1.4 2000/10/03 01:29:19 hubertf Exp $
+$NetBSD: patch-ac,v 1.5 2002/07/30 12:41:26 wiz Exp $
---- choparp.c.orig Tue Oct 7 05:29:46 1997
+--- choparp.c.orig Tue Oct 7 11:29:46 1997
+++ choparp.c
@@ -12,6 +12,9 @@
#include <stdio.h>
@@ -20,7 +20,16 @@ $NetBSD: patch-ac,v 1.4 2000/10/03 01:29:19 hubertf Exp $
#define BPFFILENAME "/dev/bpf%d" /* bpf file template */
#ifndef NBPFILTER /* number of available bpf */
-@@ -217,20 +221,35 @@
+@@ -180,7 +184,7 @@ checkarp(char *arpbuf){
+ fprintf(stderr,"checkarp: WARNING: received unknown type ARP request.\n");
+ return(0);
+ }
+- target_ip = ntohl(*(u_long *)(arp->arp_tpa));
++ target_ip = ntohl(*(u_int32_t *)(arp->arp_tpa));
+ if ((target_ip & target_mask) == target_net)
+ return(-1); /* OK */
+ return(0);
+@@ -217,20 +221,35 @@ gen_arpreply(char *arpbuf, size_t *rlen)
void
loop(int fd, char *buf, size_t buflen){