hping.paketlendi
This commit is contained in:
parent
40e996e9ef
commit
cc51038574
|
@ -0,0 +1,30 @@
|
|||
diff -Naur hping3-20051105/Makefile hping3-20051105-new/Makefile
|
||||
--- hping3-20051105/Makefile 2005-11-05 05:31:41.000000000 -0500
|
||||
+++ hping3-20051105-new/Makefile 2009-02-26 03:21:46.000000000 -0500
|
||||
@@ -72,16 +72,18 @@
|
||||
rm -rf hping3 *.o byteorder byteorder.h systype.h Makefile libars.a .depend
|
||||
|
||||
install: hping3
|
||||
- cp -f hping3 /usr/sbin/
|
||||
- chmod 755 /usr/sbin/hping3
|
||||
- ln -s /usr/sbin/hping3 /usr/sbin/hping
|
||||
- ln -s /usr/sbin/hping3 /usr/sbin/hping2
|
||||
- @if [ -d ${INSTALL_MANPATH}/man8 ]; then \
|
||||
- cp ./docs/hping3.8 ${INSTALL_MANPATH}/man8; \
|
||||
- chmod 644 ${INSTALL_MANPATH}/man8/hping3.8; \
|
||||
+ @[ ! -d ${DESTDIR}/usr/bin ] && install -d ${DESTDIR}/usr/bin
|
||||
+ cp -f hping3 ${DESTDIR}/usr/bin/
|
||||
+ chmod 755 ${DESTDIR}/usr/bin/hping3
|
||||
+ ln -s hping3 ${DESTDIR}/usr/bin/hping
|
||||
+ ln -s hping3 ${DESTDIR}/usr/bin/hping2
|
||||
+ @[ ! -d ${DESTDIR}${INSTALL_MANPATH}/man8 ] && install -d ${DESTDIR}${INSTALL_MANPATH}/man8
|
||||
+ @if [ -d ${DESTDIR}${INSTALL_MANPATH}/man8 ]; then \
|
||||
+ cp ./docs/hping3.8 ${DESTDIR}${INSTALL_MANPATH}/man8; \
|
||||
+ chmod 644 ${DESTDIR}${INSTALL_MANPATH}/man8/hping3.8; \
|
||||
else \
|
||||
echo "@@@@@@ WARNING @@@@@@"; \
|
||||
- echo "Can't install the man page: ${INSTALL_MANPATH}/man8 does not exist"; \
|
||||
+ echo "Can't install the man page: ${DESTDIR}${INSTALL_MANPATH}/man8 does not exist"; \
|
||||
fi
|
||||
|
||||
strip: hping3
|
|
@ -0,0 +1,21 @@
|
|||
# Description: Ping for TCP/IP
|
||||
# URL: https://github.com/antirez/hping
|
||||
# Packager: milisarge
|
||||
# Depends on: libpcap
|
||||
|
||||
name=hping
|
||||
version=git
|
||||
release=1
|
||||
source=(tshzset.patch Makefile.patch)
|
||||
|
||||
build() {
|
||||
git clone https://github.com/antirez/hping
|
||||
|
||||
cd $name
|
||||
patch -Np1 -i $SRC/tshzset.patch
|
||||
MANPATH=/usr/share/man
|
||||
./configure --prefix=/usr --no-tcl
|
||||
make
|
||||
patch -p1 < $SRC/Makefile.patch
|
||||
make DESTDIR=$PKG install
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
diff --git a/waitpacket.c b/waitpacket.c
|
||||
index a6c20f0..6e6acfb 100644
|
||||
--- a/waitpacket.c
|
||||
+++ b/waitpacket.c
|
||||
@@ -656,7 +656,7 @@ found:
|
||||
printf(" TCP timestamp: tcpts=%u\n", tstamp);
|
||||
if (first_tstamp) {
|
||||
int tsdiff;
|
||||
- int hz_set[] = { 2, 10, 100, 1000, 0 };
|
||||
+ int hz_set[] = { 1, 2, 10, 20, 25, 30, 40, 50, 60, 70, 80, 90, 100, 150, 200, 250, 300, 400, 500, 600, 700, 750, 800, 1000, 2000, 9000, 0 };
|
||||
int hzdiff = -1;
|
||||
int hz = 0, sec;
|
||||
int days, hours, minutes;
|
Loading…
Reference in New Issue