diff options
author | wiz <wiz@pkgsrc.org> | 2002-07-30 12:41:25 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2002-07-30 12:41:25 +0000 |
commit | b9d2501ad69c0e7f6cdaca7fe86c7c53561fbc0c (patch) | |
tree | a96b1d9f2083c6a314156ebe65ffe63594bc2f60 /net/choparp/patches | |
parent | 1fa0335e67a845495f20072c09f34556e83e0df8 (diff) | |
download | pkgsrc-b9d2501ad69c0e7f6cdaca7fe86c7c53561fbc0c.tar.gz |
Update to 971007nb1: Fix for sparc64, from Tomi Nylund in pkg/17759.
Diffstat (limited to 'net/choparp/patches')
-rw-r--r-- | net/choparp/patches/patch-ac | 15 |
1 files changed, 12 insertions, 3 deletions
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){ |