- update to new HOMEPAGE/MASTER_SITES

- plug off-by-ones in ip address handling
- bump PKGNAME
patches submitted to author
This commit is contained in:
avsm 2003-06-17 15:28:55 +00:00
parent 1fbc2f72ce
commit c2ac238c02
3 changed files with 61 additions and 3 deletions

View File

@ -1,9 +1,11 @@
# $OpenBSD: Makefile,v 1.16 2002/12/23 08:40:58 pvalchev Exp $
# $OpenBSD: Makefile,v 1.17 2003/06/17 15:28:55 avsm Exp $
# $FreeBSD: ports/net/pchar/Makefile,v 1.1.1.1 1999/11/04 08:33:26 obrien Exp $
COMMENT= "Sandia Internet path characterization tool"
DISTNAME= pchar-1.4
V= 1.4
DISTNAME= pchar-${V}
PKGNAME= pchar-${V}p1
CATEGORIES= net
MASTER_SITES= ${HOMEPAGE}
@ -13,7 +15,7 @@ PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
HOMEPAGE= http://www.ca.sandia.gov/~bmah/Software/pchar/
HOMEPAGE= http://www.employees.org/~bmah/Software/pchar/
CONFIGURE_STYLE=gnu
CONFIGURE_ARGS= --with-ipv6 --with-pcap

View File

@ -0,0 +1,28 @@
$OpenBSD: patch-PctestIpv4File_cc,v 1.1 2003/06/17 15:28:55 avsm Exp $
--- PctestIpv4File.cc.orig Tue Jun 17 16:20:42 2003
+++ PctestIpv4File.cc Tue Jun 17 16:21:11 2003
@@ -195,13 +195,13 @@ int PctestIpv4File::SetTargetName(char *
else if (strncasecmp(s, "src ", 4) == 0) {
char t[128];
- sscanf(s, "src %128s", t);
+ sscanf(s, "src %127s", t);
originAddress.s_addr = inet_addr(t);
}
else if (strncasecmp(s, "dest ", 5) == 0) {
char t[128];
- sscanf(s, "dest %128s", t);
+ sscanf(s, "dest %127s", t);
targetAddress.s_addr = inet_addr(t);
}
@@ -236,7 +236,7 @@ int PctestIpv4File::SetTargetName(char *
else if (strncasecmp(s, "targethost ", 11) == 0) {
char t[128];
- sscanf(s, "targethost %128s", t);
+ sscanf(s, "targethost %127s", t);
PctestIpv4::SetTargetName(t);
}

View File

@ -0,0 +1,28 @@
$OpenBSD: patch-PctestIpv6File_cc,v 1.1 2003/06/17 15:28:55 avsm Exp $
--- PctestIpv6File.cc.orig Tue Jun 17 16:21:21 2003
+++ PctestIpv6File.cc Tue Jun 17 16:21:45 2003
@@ -212,13 +212,13 @@ int PctestIpv6File::SetTargetName(char *
else if (strncasecmp(s, "src ", 4) == 0) {
char t[128];
- sscanf(s, "src %128s", t);
+ sscanf(s, "src %127s", t);
inet_pton(AF_INET6, t, (void *) &originAddress);
}
else if (strncasecmp(s, "dest ", 5) == 0) {
char t[128];
- sscanf(s, "dest %128s", t);
+ sscanf(s, "dest %127s", t);
inet_pton(AF_INET6, t, (void *) &targetAddress);
}
@@ -253,7 +253,7 @@ int PctestIpv6File::SetTargetName(char *
else if (strncasecmp(s, "targethost ", 11) == 0) {
char t[128];
- sscanf(s, "targethost %128s", t);
+ sscanf(s, "targethost %127s", t);
PctestIpv6::SetTargetName(t);
}