Merge pull request #114 from ertugerata/master
iputils, dosfstools python-lxml in main
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Licensed under the GNU General Public License, version 3.
|
||||
# See the file http://www.gnu.org/licenses/gpl.txt
|
||||
|
||||
from pisi.actionsapi import get
|
||||
from pisi.actionsapi import autotools
|
||||
|
||||
def build():
|
||||
autotools.make("CFLAGS='%s -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fno-strict-aliasing'" % get.CFLAGS())
|
||||
|
||||
def install():
|
||||
autotools.rawInstall("DESTDIR=%s install-bin install-man PREFIX=%s SBINDIR=/sbin" % (get.installDIR(), get.defaultprefixDIR()))
|
||||
@@ -0,0 +1,64 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>dosfstools</Name>
|
||||
<Homepage>http://www.daniel-baumann.ch/software/dosfstools/</Homepage>
|
||||
<Packager>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>GPLv3</License>
|
||||
<IsA>app:console</IsA>
|
||||
<Summary>Tools to create and check DOS and VFAT filesystems</Summary>
|
||||
<Description>The dosfstools package includes the DOS and VFAT filesystem utilities like mkdosfs, mkfs.msdos, mkfs.vfat, dosfsck, dosfslabel. You can create and check MS-DOS FAT filesystems on hard drives or on floppies</Description>
|
||||
<Archive type="tarxz" sha1sum="1385f707b7ff93cb521e8158e60276c531c1b0a6">http://daniel-baumann.ch/files/software/dosfstools/dosfstools-3.0.26.tar.xz</Archive>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>dosfstools</Name>
|
||||
<Files>
|
||||
<Path fileType="executable">/sbin</Path>
|
||||
<Path fileType="doc">/usr/share/doc</Path>
|
||||
<Path fileType="man">/usr/share/man</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="5">
|
||||
<Date>2014-04-03</Date>
|
||||
<Version>3.0.26</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Marcin Bojara</Name>
|
||||
<Email>marcin@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="4">
|
||||
<Date>2014-01-18</Date>
|
||||
<Version>3.0.25</Version>
|
||||
<Comment>Version bump</Comment>
|
||||
<Name>Richard de Bruin</Name>
|
||||
<Email>richdb@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="3">
|
||||
<Date>2013-10-21</Date>
|
||||
<Version>3.0.23</Version>
|
||||
<Comment>Version bump</Comment>
|
||||
<Name>Richard de Bruin</Name>
|
||||
<Email>richdb@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="2">
|
||||
<Date>2013-06-13</Date>
|
||||
<Version>3.0.20</Version>
|
||||
<Comment>Version bump</Comment>
|
||||
<Name>Marcin Bojara</Name>
|
||||
<Email>marcin@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="1">
|
||||
<Date>2012-11-13</Date>
|
||||
<Version>3.0.13</Version>
|
||||
<Comment>First release</Comment>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" ?>
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>dosfstools</Name>
|
||||
<Description xml:lang="tr">Dosfstools paketi, mkdosfs, mkfs.msdos, mkfs.vfat, dosfsck, dosfslabel gibi, DOS ve VFAT dosyasistemleri yaratmaya ve kontrol etmeye yarayan araçları içerir.</Description>
|
||||
<Summary xml:lang="tr">DOS dosya sistemi oluşturmaya ve kontrol etmeye yarayan komutlar</Summary>
|
||||
</Source>
|
||||
</PISI>
|
||||
@@ -0,0 +1,28 @@
|
||||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Licensed under the GNU General Public License, version 3.
|
||||
# See the file http://www.gnu.org/licenses/gpl.txt
|
||||
|
||||
from pisi.actionsapi import shelltools
|
||||
from pisi.actionsapi import autotools
|
||||
from pisi.actionsapi import pisitools
|
||||
from pisi.actionsapi import get
|
||||
|
||||
def build():
|
||||
autotools.make("CCOPT='%s -fpie' CC=%s" % (get.CFLAGS(), get.CC()))
|
||||
|
||||
autotools.compile("ifenslave.c -o ifenslave")
|
||||
|
||||
def install():
|
||||
for app in ["ping", "ping6"]:
|
||||
pisitools.dobin(app)
|
||||
|
||||
for app in ["clockdiff", "arping", "rdisc", "tracepath", "tracepath6", "traceroute6", "ifenslave"]:
|
||||
pisitools.dosbin(app)
|
||||
|
||||
# We will not need these if we set cap on postInstall like Fedora
|
||||
shelltools.chmod("%s/usr/bin/ping" % get.installDIR(), 04711)
|
||||
shelltools.chmod("%s/usr/bin/ping6" % get.installDIR(), 04711)
|
||||
|
||||
pisitools.dodoc("RELNOTES")
|
||||
@@ -0,0 +1,24 @@
|
||||
--- iputils/rarpd.c.mps 2004-06-10 15:27:01.000000000 +0200
|
||||
+++ iputils/rarpd.c 2004-06-10 15:26:29.000000000 +0200
|
||||
@@ -42,7 +42,9 @@ int listen_arp;
|
||||
char *ifname;
|
||||
char *tftp_dir = "/etc/tftpboot";
|
||||
|
||||
+#ifndef __UCLIBC__
|
||||
extern int ether_ntohost(char *name, unsigned char *ea);
|
||||
+#endif
|
||||
void usage(void) __attribute__((noreturn));
|
||||
|
||||
struct iflink
|
||||
@@ -305,7 +307,11 @@ struct rarp_map *rarp_lookup(int ifindex
|
||||
6,
|
||||
};
|
||||
|
||||
+#ifndef __UCLIBC__
|
||||
if (ether_ntohost(ename, lladdr) != 0 ||
|
||||
+#else
|
||||
+ if (
|
||||
+#endif
|
||||
(hp = gethostbyname(ename)) == NULL) {
|
||||
if (verbose)
|
||||
syslog(LOG_INFO, "not found in /etc/ethers");
|
||||
@@ -0,0 +1,31 @@
|
||||
--- a/doc/Makefile 2007-11-27 02:57:27.000000000 +0200
|
||||
+++ b/doc/Makefile 2007-11-27 04:55:23.000000000 +0200
|
||||
@@ -13,25 +13,17 @@
|
||||
# So, scope it to a temporary dir and clean all after each run.
|
||||
|
||||
$(HTMLFILES): index.db
|
||||
- @-rm -rf tmp.db2html
|
||||
- @mkdir tmp.db2html
|
||||
- @set -e; cd tmp.db2html; docbook2html ../$< ; mv *.html ..
|
||||
- @-rm -rf tmp.db2html
|
||||
+ @docbook2html $<
|
||||
|
||||
iputils.html: iputils.db
|
||||
- @-rm -rf tmp.db2html
|
||||
- @mkdir tmp.db2html
|
||||
- @set -e; cd tmp.db2html; docbook2html -u -o html ../$< ; mv html/$@ ..
|
||||
- @-rm -rf tmp.db2html
|
||||
+ @docbook2html -u $<
|
||||
|
||||
# docbook2man produces utterly ugly output and I did not find
|
||||
# any way to customize this but hacking backend perl script a little.
|
||||
# Well, hence...
|
||||
|
||||
$(MANFILES): index.db
|
||||
- @-mkdir tmp.db2man
|
||||
- @set -e; cd tmp.db2man; nsgmls ../$< | sgmlspl ../docbook2man-spec.pl ; mv $@ ..
|
||||
- @-rm -rf tmp.db2man
|
||||
+ @nsgmls $< |sgmlspl docbook2man-spec.pl
|
||||
|
||||
clean:
|
||||
@rm -rf $(MANFILES) $(HTMLFILES) iputils.html tmp.db2html tmp.db2man
|
||||
@@ -0,0 +1,12 @@
|
||||
--- iputils/ping_common.c.countermeasures Tue May 21 10:06:05 2002
|
||||
+++ iputils/ping_common.c Tue May 21 10:12:42 2002
|
||||
@@ -628,7 +628,8 @@
|
||||
tvsub(tv, &tmp_tv);
|
||||
triptime = tv->tv_sec * 1000000 + tv->tv_usec;
|
||||
if (triptime < 0) {
|
||||
- fprintf(stderr, "Warning: time of day goes back (%ldus), taking countermeasures.\n", triptime);
|
||||
+ if (options & F_VERBOSE)
|
||||
+ fprintf(stderr, "Warning: time of day goes back (%ldus), taking countermeasures.\n", triptime);
|
||||
triptime = 0;
|
||||
if (!(options & F_LATENCY)) {
|
||||
gettimeofday(tv, NULL);
|
||||
@@ -0,0 +1,12 @@
|
||||
--- iputils-ss021109-vanilla/ping.c Thu Nov 7 23:53:21 2002
|
||||
+++ iputils/ping.c Sun Jan 12 03:39:24 2003
|
||||
@@ -285,6 +285,9 @@
|
||||
perror("ping: IP_MULTICAST_IF");
|
||||
exit(2);
|
||||
}
|
||||
+ } else if (icmp_sock >= 0) {
|
||||
+ /* We possible tried to SO_BINDTODEVICE() a subinterface like 'eth0:1' */
|
||||
+ perror("Warning: cannot bind to specified iface, falling back");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
diff -up iputils-s20070202/ping6.c.flowlabel iputils-s20070202/ping6.c
|
||||
--- iputils-s20070202/ping6.c.flowlabel 2008-02-01 11:10:53.000000000 +0100
|
||||
+++ iputils-s20070202/ping6.c 2008-02-01 11:16:47.000000000 +0100
|
||||
@@ -86,6 +86,10 @@ char copyright[] =
|
||||
#define SOL_ICMPV6 IPPROTO_ICMPV6
|
||||
#endif
|
||||
|
||||
+#ifndef IVP6_FLOWINFO_SEND
|
||||
+#define IPV6_FLOWINFO_SEND 33
|
||||
+#endif
|
||||
+
|
||||
/* RFC3542 */
|
||||
#ifndef ICMP6_DST_UNREACH_BEYONDSCOPE
|
||||
#define ICMP6_DST_UNREACH_BEYONDSCOPE ICMP6_DST_UNREACH_NOTNEIGHBOR
|
||||
@@ -0,0 +1,24 @@
|
||||
diff -up iputils-s20100418/tracepath6.c.convtoint iputils-s20100418/tracepath6.c
|
||||
--- iputils-s20100418/tracepath6.c.convtoint 2010-04-23 11:28:15.294593391 +0200
|
||||
+++ iputils-s20100418/tracepath6.c 2010-04-23 11:28:23.544605551 +0200
|
||||
@@ -89,7 +89,7 @@ void print_host(const char *a, const cha
|
||||
}
|
||||
if (plen >= HOST_COLUMN_SIZE)
|
||||
plen = HOST_COLUMN_SIZE - 1;
|
||||
- printf("%*s", HOST_COLUMN_SIZE - plen, "");
|
||||
+ printf("%*s", HOST_COLUMN_SIZE - (int)plen, "");
|
||||
}
|
||||
|
||||
int recverr(int fd, int ttl)
|
||||
diff -up iputils-s20100418/tracepath.c.convtoint iputils-s20100418/tracepath.c
|
||||
--- iputils-s20100418/tracepath.c.convtoint 2010-04-23 11:26:20.273555629 +0200
|
||||
+++ iputils-s20100418/tracepath.c 2010-04-23 11:26:20.281562493 +0200
|
||||
@@ -77,7 +77,7 @@ void print_host(const char *a, const cha
|
||||
}
|
||||
if (plen >= HOST_COLUMN_SIZE)
|
||||
plen = HOST_COLUMN_SIZE - 1;
|
||||
- printf("%*s", HOST_COLUMN_SIZE - plen, "");
|
||||
+ printf("%*s", HOST_COLUMN_SIZE - (int)plen, "");
|
||||
}
|
||||
|
||||
int recverr(int fd, int ttl)
|
||||
@@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=rdisc daemon which discovers routers on the local subnet
|
||||
After=syslog.target network.target
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
EnvironmentFile=/etc/conf.d/rdisc
|
||||
ExecStart=/sbin/rdisc $RDISCOPTS
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -0,0 +1 @@
|
||||
RDISCOPTS="-s"
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,68 @@
|
||||
.Dd 2004-04-09
|
||||
.Dt IFENSLAVE 8
|
||||
.\" Manual page created by Guus Sliepen <guus@debian.org>
|
||||
.Sh NAME
|
||||
.Nm ifenslave
|
||||
.Nd Attach and detach slave network devices to a bonding device.
|
||||
.Sh SYNOPSIS
|
||||
.Nm
|
||||
.Op Fl acdfhuvV
|
||||
.Op Fl -all-interfaces
|
||||
.Op Fl -change-active
|
||||
.Op Fl -detach
|
||||
.Op Fl -force
|
||||
.Op Fl -help
|
||||
.Op Fl -usage
|
||||
.Op Fl -verbose
|
||||
.Op Fl -version
|
||||
.Ar master
|
||||
.Ar slave
|
||||
.No ...
|
||||
.Sh DESCRIPTION
|
||||
.Nm
|
||||
is a tool to attach and detach slave network devices to a bonding device.
|
||||
A bonding device will act like a normal Ethernet network device to the kernel,
|
||||
but will send out the packets via the slave devices using a simple round-robin scheduler.
|
||||
This allows for simple load-balancing,
|
||||
identical to "channel bonding" or "trunking" techniques used in switches.
|
||||
.Pp
|
||||
The kernel must have support for bonding devices for
|
||||
.Nm
|
||||
to be useful.
|
||||
.Sh OPTIONS
|
||||
.Bl -tag -width indent
|
||||
.It Fl a, -all-interfaces
|
||||
Show information about all interfaces.
|
||||
.It Fl c, -change-active
|
||||
Change active slave.
|
||||
.It Fl d, -detach
|
||||
Removes slave interfaces from the bonding device.
|
||||
.It Fl f, -force
|
||||
Force actions to be taken if one of the specified interfaces appears not to belong to an Ethernet device.
|
||||
.It Fl h, -help
|
||||
Display a help message and exit.
|
||||
.It Fl u, -usage
|
||||
Show usage information and exit.
|
||||
.It Fl v, -verbose
|
||||
Print warning and debug messages.
|
||||
.It Fl V, -version
|
||||
Show version information and exit.
|
||||
.El
|
||||
If not options are given, the default action will be to enslave interfaces.
|
||||
.Sh EXAMPLE
|
||||
The following example shows how to setup a bonding device and
|
||||
enslave two real Ethernet devices to it:
|
||||
.Bd -literal
|
||||
# modprobe bonding
|
||||
# ifconfig bond0 192.168.0.1 netmask 255.255.0.0
|
||||
# ifenslave bond0 eth0 eth1
|
||||
.Ed
|
||||
.Sh AUTHOR
|
||||
.Nm
|
||||
was originally written by
|
||||
.An Donald Becker Aq becker@cesdis.gsfc.nasa.gov ,
|
||||
and has since been updated by various kernel developers.
|
||||
.Pp
|
||||
This manual page was written by
|
||||
.An Guus Sliepen Aq guus@debian.org
|
||||
for the Debian GNU/Linux system.
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,55 @@
|
||||
--- a/rarpd.c
|
||||
+++ b/rarpd.c
|
||||
@@ -55,10 +55,10 @@ struct iflink
|
||||
unsigned char lladdr[16];
|
||||
char name[IFNAMSIZ];
|
||||
- struct ifaddr *ifa_list;
|
||||
+ struct kern_ifaddr *ifa_list;
|
||||
} *ifl_list;
|
||||
|
||||
-struct ifaddr
|
||||
+struct kern_ifaddr
|
||||
{
|
||||
- struct ifaddr *next;
|
||||
+ struct kern_ifaddr *next;
|
||||
__u32 prefix;
|
||||
__u32 mask;
|
||||
@@ -92,5 +92,5 @@ void load_if(void)
|
||||
struct ifreq *ifrp, *ifend;
|
||||
struct iflink *ifl;
|
||||
- struct ifaddr *ifa;
|
||||
+ struct kern_ifaddr *ifa;
|
||||
struct ifconf ifc;
|
||||
struct ifreq ibuf[256];
|
||||
@@ -183,5 +183,5 @@ void load_if(void)
|
||||
if (mask == 0 || prefix == 0)
|
||||
continue;
|
||||
- ifa = (struct ifaddr*)malloc(sizeof(*ifa));
|
||||
+ ifa = (struct kern_ifaddr*)malloc(sizeof(*ifa));
|
||||
memset(ifa, 0, sizeof(*ifa));
|
||||
ifa->local = addr;
|
||||
@@ -239,8 +239,8 @@ int bootable(__u32 addr)
|
||||
}
|
||||
|
||||
-struct ifaddr *select_ipaddr(int ifindex, __u32 *sel_addr, __u32 **alist)
|
||||
+struct kern_ifaddr *select_ipaddr(int ifindex, __u32 *sel_addr, __u32 **alist)
|
||||
{
|
||||
struct iflink *ifl;
|
||||
- struct ifaddr *ifa;
|
||||
+ struct kern_ifaddr *ifa;
|
||||
int retry = 0;
|
||||
int i;
|
||||
@@ -298,5 +298,5 @@ struct rarp_map *rarp_lookup(int ifindex
|
||||
if (r == NULL) {
|
||||
if (hatype == ARPHRD_ETHER && halen == 6) {
|
||||
- struct ifaddr *ifa;
|
||||
+ struct kern_ifaddr *ifa;
|
||||
struct hostent *hp;
|
||||
char ename[256];
|
||||
@@ -371,5 +371,5 @@ int put_myipaddr(unsigned char **ptr_p,
|
||||
__u32 laddr = 0;
|
||||
struct iflink *ifl;
|
||||
- struct ifaddr *ifa;
|
||||
+ struct kern_ifaddr *ifa;
|
||||
|
||||
for (ifl=ifl_list; ifl; ifl = ifl->next)
|
||||
@@ -0,0 +1,11 @@
|
||||
--- iputils-s20071127/ping_common.h.orig 2008-06-10 11:16:06.000000000 +0100
|
||||
+++ iputils-s20071127/ping_common.h 2008-06-10 11:16:18.000000000 +0100
|
||||
@@ -28,7 +28,7 @@
|
||||
|
||||
#define MAXWAIT 10 /* max seconds to wait for response */
|
||||
#define MININTERVAL 10 /* Minimal interpacket gap */
|
||||
-#define MINUSERINTERVAL 200 /* Minimal allowed interval for non-root */
|
||||
+#define MINUSERINTERVAL 0 /* Minimal allowed interval for non-root */
|
||||
|
||||
#define SCHINT(a) (((a) <= MININTERVAL) ? MININTERVAL : (a))
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
https://bugs.gentoo.org/335347
|
||||
|
||||
fix building with older linux headers that don't define SO_MARK
|
||||
|
||||
--- ping_common.c.org
|
||||
+++ ping_common.c
|
||||
@@ -485,6 +485,7 @@
|
||||
fprintf(stderr, "Warning: no SO_TIMESTAMP support, falling back to SIOCGSTAMP\n");
|
||||
}
|
||||
#endif
|
||||
+#ifdef SO_MARK
|
||||
if (options & F_MARK) {
|
||||
if (setsockopt(icmp_sock, SOL_SOCKET, SO_MARK,
|
||||
&mark, sizeof(mark)) == -1) {
|
||||
@@ -494,6 +495,7 @@
|
||||
fprintf(stderr, "Warning: Failed to set mark %d\n", mark);
|
||||
}
|
||||
}
|
||||
+#endif
|
||||
|
||||
/* Set some SNDTIMEO to prevent blocking forever
|
||||
* on sends, when device is too slow or stalls. Just put limit
|
||||
@@ -0,0 +1,35 @@
|
||||
From 568e990d30fc7e9416e0a6f8c74ea5013921eaec Mon Sep 17 00:00:00 2001
|
||||
From: Arjan van de Ven <arjanvandeven@gmail.com>
|
||||
Date: Wed, 16 Jan 2013 03:12:15 +0900
|
||||
Subject: [PATCH [iputils]] ping6: Fix build command line argument with gnutls.
|
||||
|
||||
The ping6 command can use either openssl or gnutls...
|
||||
and the Makefile has a bunch of setup for defining which of the two to use.
|
||||
|
||||
Unfortunately, the final -D define on the commandline to enable gnutls
|
||||
inside the ping6.c file didn't actually make it onto the gcc
|
||||
commandline.
|
||||
This patch adds the $(DEF_CRYPTO) Makefile variable to fix this gap.
|
||||
|
||||
Signed-off-by: Arjan van de Ven <arjanvandeven@gmail.com>
|
||||
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
|
||||
---
|
||||
Makefile | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index c62d9df..89249f5 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -149,7 +149,7 @@ LIB_clockdiff = $(LIB_CAP)
|
||||
DEF_ping_common = $(DEF_CAP) $(DEF_IDN)
|
||||
DEF_ping = $(DEF_CAP) $(DEF_IDN) $(DEF_WITHOUT_IFADDRS)
|
||||
LIB_ping = $(LIB_CAP) $(LIB_IDN)
|
||||
-DEF_ping6 = $(DEF_CAP) $(DEF_IDN) $(DEF_WITHOUT_IFADDRS) $(DEF_ENABLE_PING6_RTHDR)
|
||||
+DEF_ping6 = $(DEF_CAP) $(DEF_IDN) $(DEF_WITHOUT_IFADDRS) $(DEF_ENABLE_PING6_RTHDR) $(DEF_CRYPTO)
|
||||
LIB_ping6 = $(LIB_CAP) $(LIB_IDN) $(LIB_RESOLV) $(LIB_CRYPTO)
|
||||
|
||||
ping: ping_common.o
|
||||
--
|
||||
1.8.0.2
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
From c66609d2c830d6fe06f48f5d38c54eb5cc6f2975 Mon Sep 17 00:00:00 2001
|
||||
From: Mike Frysinger <vapier@gentoo.org>
|
||||
Date: Thu, 24 Jan 2013 23:36:16 -0500
|
||||
Subject: [PATCH [iputils]] fix handling of CFLAGS
|
||||
|
||||
This defaults CFLAGS to -O3 without clobbering settings people have set
|
||||
up in the environment already.
|
||||
|
||||
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
|
||||
---
|
||||
Makefile | 13 +++++--------
|
||||
1 file changed, 5 insertions(+), 8 deletions(-)
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 2c49940..ecabac3 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -2,8 +2,6 @@
|
||||
# Configuration
|
||||
#
|
||||
|
||||
-# CC
|
||||
-CC=gcc
|
||||
# Path to parent kernel include files directory
|
||||
LIBC_INCLUDE=/usr/include
|
||||
# Libraries
|
||||
@@ -48,11 +46,10 @@ ENABLE_RDISC_SERVER=no
|
||||
|
||||
# -------------------------------------
|
||||
# What a pity, all new gccs are buggy and -Werror does not work. Sigh.
|
||||
-# CCOPT=-fno-strict-aliasing -Wstrict-prototypes -Wall -Werror -g
|
||||
-CCOPT=-fno-strict-aliasing -Wstrict-prototypes -Wall -g
|
||||
-CCOPTOPT=-O3
|
||||
-GLIBCFIX=-D_GNU_SOURCE
|
||||
-DEFINES=
|
||||
+# CFLAGS+=-fno-strict-aliasing -Wstrict-prototypes -Wall -Werror -g
|
||||
+CFLAGS?=-O3 -g
|
||||
+CFLAGS+=-fno-strict-aliasing -Wstrict-prototypes -Wall
|
||||
+CPPFLAGS+=-D_GNU_SOURCE
|
||||
LDLIB=
|
||||
|
||||
FUNC_LIB = $(if $(filter static,$(1)),$(LDFLAG_STATIC) $(2) $(LDFLAG_DYNAMIC),$(2))
|
||||
@@ -113,7 +110,6 @@ IPV4_TARGETS=tracepath ping clockdiff rdisc arping tftpd rarpd
|
||||
IPV6_TARGETS=tracepath6 traceroute6 ping6
|
||||
TARGETS=$(IPV4_TARGETS) $(IPV6_TARGETS)
|
||||
|
||||
-CFLAGS=$(CCOPTOPT) $(CCOPT) $(GLIBCFIX) $(DEFINES)
|
||||
LDLIBS=$(LDLIB) $(ADDLIB)
|
||||
|
||||
UNAME_N:=$(shell uname -n)
|
||||
@@ -132,6 +128,7 @@ all: $(TARGETS)
|
||||
$(COMPILE.c) $< $(DEF_$(patsubst %.o,%,$@)) -S -o $@
|
||||
%.o: %.c
|
||||
$(COMPILE.c) $< $(DEF_$(patsubst %.o,%,$@)) -o $@
|
||||
+LINK.o += $(CFLAGS)
|
||||
$(TARGETS): %: %.o
|
||||
$(LINK.o) $^ $(LIB_$@) $(LDLIBS) -o $@
|
||||
|
||||
--
|
||||
1.8.0.2
|
||||
|
||||
@@ -0,0 +1,92 @@
|
||||
From b57d77dcfa5cb363b7eba5b331324669a8505ac4 Mon Sep 17 00:00:00 2001
|
||||
From: Mike Frysinger <vapier@gentoo.org>
|
||||
Date: Thu, 24 Jan 2013 23:32:39 -0500
|
||||
Subject: [PATCH [iputils]] ping6: allow disabling of openssl support
|
||||
|
||||
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
|
||||
---
|
||||
Makefile | 5 ++++-
|
||||
ping6.c | 14 +++++++++++++-
|
||||
2 files changed, 17 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 89249f5..2c49940 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -36,7 +36,7 @@ ARPING_DEFAULT_DEVICE=
|
||||
|
||||
# GNU TLS library for ping6 [yes|no|static]
|
||||
USE_GNUTLS=yes
|
||||
-# Crypto library for ping6 [shared|static]
|
||||
+# Crypto library for ping6 [shared|static|no]
|
||||
USE_CRYPTO=shared
|
||||
# Resolv library for ping6 [yes|static]
|
||||
USE_RESOLV=yes
|
||||
@@ -63,7 +63,10 @@ ifneq ($(USE_GNUTLS),no)
|
||||
LIB_CRYPTO = $(call FUNC_LIB,$(USE_GNUTLS),$(LDFLAG_GNUTLS))
|
||||
DEF_CRYPTO = -DUSE_GNUTLS
|
||||
else
|
||||
+ifneq ($(USE_CRYPTO),no)
|
||||
LIB_CRYPTO = $(call FUNC_LIB,$(USE_CRYPTO),$(LDFLAG_CRYPTO))
|
||||
+ DEF_CRYPTO = -DUSE_OPENSSL
|
||||
+endif
|
||||
endif
|
||||
|
||||
# USE_RESOLV: LIB_RESOLV
|
||||
diff --git a/ping6.c b/ping6.c
|
||||
index c39864d..f2f90af 100644
|
||||
--- a/ping6.c
|
||||
+++ b/ping6.c
|
||||
@@ -168,8 +168,10 @@ static int icmp_sock;
|
||||
|
||||
#ifdef USE_GNUTLS
|
||||
# include <gnutls/openssl.h>
|
||||
-#else
|
||||
+# define USE_CRYPTO
|
||||
+#elif defined USE_OPENSSL
|
||||
# include <openssl/md5.h>
|
||||
+# define USE_CRYPTO
|
||||
#endif
|
||||
|
||||
/* Node Information query */
|
||||
@@ -326,6 +328,7 @@ static void niquery_init_nonce(void)
|
||||
#if !PING6_NONCE_MEMORY
|
||||
static int niquery_nonce(__u8 *nonce, int fill)
|
||||
{
|
||||
+# ifdef USE_CRYPTO
|
||||
static __u8 digest[MD5_DIGEST_LENGTH];
|
||||
static int seq = -1;
|
||||
|
||||
@@ -348,6 +351,10 @@ static int niquery_nonce(__u8 *nonce, int fill)
|
||||
return -1;
|
||||
return ntohsp((__u16 *)nonce);
|
||||
}
|
||||
+# else
|
||||
+ fprintf(stderr, "ping6: function not available; crypto disabled\n");
|
||||
+ exit(3);
|
||||
+# endif
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -502,6 +509,7 @@ static int niquery_option_subject_addr_handler(int index, const char *arg)
|
||||
|
||||
static int niquery_option_subject_name_handler(int index, const char *arg)
|
||||
{
|
||||
+#ifdef USE_CRYPTO
|
||||
static char nigroup_buf[INET6_ADDRSTRLEN + 1 + IFNAMSIZ];
|
||||
unsigned char *dnptrs[2], **dpp, **lastdnptr;
|
||||
int n;
|
||||
@@ -627,6 +635,10 @@ errexit:
|
||||
free(idn);
|
||||
free(name);
|
||||
exit(1);
|
||||
+#else
|
||||
+ fprintf(stderr, "ping6: function not available; crypto disabled\n");
|
||||
+ exit(3);
|
||||
+#endif
|
||||
}
|
||||
|
||||
int niquery_option_help_handler(int index, const char *arg)
|
||||
--
|
||||
1.8.0.2
|
||||
|
||||
@@ -0,0 +1,224 @@
|
||||
http://openwall.info/wiki/people/segoon/ping
|
||||
|
||||
--- iputils-s20101006/ping.c
|
||||
+++ iputils-s20101006/ping.c
|
||||
@@ -88,6 +88,7 @@ struct sockaddr_in whereto; /* who to pi
|
||||
int optlen = 0;
|
||||
int settos = 0; /* Set TOS, Precendence or other QOS options */
|
||||
int icmp_sock; /* socket file descriptor */
|
||||
+int using_ping_socket = 0;
|
||||
u_char outpack[0x10000];
|
||||
int maxpacket = sizeof(outpack);
|
||||
|
||||
@@ -123,7 +124,11 @@ main(int argc, char **argv)
|
||||
char *target, hnamebuf[MAX_HOSTNAMELEN];
|
||||
char rspace[3 + 4 * NROUTES + 1]; /* record route space */
|
||||
|
||||
- icmp_sock = socket(AF_INET, SOCK_RAW, IPPROTO_ICMP);
|
||||
+ icmp_sock = socket(AF_INET, SOCK_DGRAM, IPPROTO_ICMP);
|
||||
+ if (icmp_sock != -1)
|
||||
+ using_ping_socket = 1;
|
||||
+ else
|
||||
+ icmp_sock = socket(AF_INET, SOCK_RAW, IPPROTO_ICMP);
|
||||
socket_errno = errno;
|
||||
|
||||
uid = getuid();
|
||||
@@ -377,13 +382,35 @@ main(int argc, char **argv)
|
||||
}
|
||||
}
|
||||
|
||||
- if ((options&F_STRICTSOURCE) &&
|
||||
- bind(icmp_sock, (struct sockaddr*)&source, sizeof(source)) == -1) {
|
||||
- perror("bind");
|
||||
- exit(2);
|
||||
+ if (!using_ping_socket) {
|
||||
+ if ((options&F_STRICTSOURCE) &&
|
||||
+ bind(icmp_sock, (struct sockaddr*)&source, sizeof(source)) == -1) {
|
||||
+ perror("bind");
|
||||
+ exit(2);
|
||||
+ }
|
||||
+ } else {
|
||||
+ struct sockaddr_in sa;
|
||||
+ socklen_t sl;
|
||||
+
|
||||
+ sa.sin_family = AF_INET;
|
||||
+ sa.sin_port = 0;
|
||||
+ sa.sin_addr.s_addr = (options&F_STRICTSOURCE) ?
|
||||
+ source.sin_addr.s_addr : 0;
|
||||
+ sl = sizeof(sa);
|
||||
+
|
||||
+ if (bind(icmp_sock, (struct sockaddr *) &sa, sl) == -1) {
|
||||
+ perror("bind");
|
||||
+ exit(2);
|
||||
+ }
|
||||
+
|
||||
+ if (getsockname(icmp_sock, (struct sockaddr *) &sa, &sl) == -1) {
|
||||
+ perror("getsockname");
|
||||
+ exit(2);
|
||||
+ }
|
||||
+ ident = sa.sin_port;
|
||||
}
|
||||
|
||||
- if (1) {
|
||||
+ if (!using_ping_socket) {
|
||||
struct icmp_filter filt;
|
||||
filt.data = ~((1<<ICMP_SOURCE_QUENCH)|
|
||||
(1<<ICMP_DEST_UNREACH)|
|
||||
@@ -398,6 +425,12 @@ main(int argc, char **argv)
|
||||
hold = 1;
|
||||
if (setsockopt(icmp_sock, SOL_IP, IP_RECVERR, (char *)&hold, sizeof(hold)))
|
||||
fprintf(stderr, "WARNING: your kernel is veeery old. No problems.\n");
|
||||
+ if (using_ping_socket) {
|
||||
+ if (setsockopt(icmp_sock, SOL_IP, IP_RECVTTL, (char *)&hold, sizeof(hold)))
|
||||
+ perror("WARNING: setsockopt(IP_RECVTTL)");
|
||||
+ if (setsockopt(icmp_sock, SOL_IP, IP_RETOPTS, (char *)&hold, sizeof(hold)))
|
||||
+ perror("WARNING: setsockopt(IP_RETOPTS)");
|
||||
+ }
|
||||
|
||||
/* record route option */
|
||||
if (options & F_RROUTE) {
|
||||
@@ -566,6 +599,7 @@ int receive_error_msg()
|
||||
nerrors++;
|
||||
} else if (e->ee_origin == SO_EE_ORIGIN_ICMP) {
|
||||
struct sockaddr_in *sin = (struct sockaddr_in*)(e+1);
|
||||
+ int error_pkt;
|
||||
|
||||
if (res < sizeof(icmph) ||
|
||||
target.sin_addr.s_addr != whereto.sin_addr.s_addr ||
|
||||
@@ -576,9 +610,18 @@ int receive_error_msg()
|
||||
goto out;
|
||||
}
|
||||
|
||||
- acknowledge(ntohs(icmph.un.echo.sequence));
|
||||
+ error_pkt = (e->ee_type != ICMP_REDIRECT &&
|
||||
+ e->ee_type != ICMP_SOURCE_QUENCH);
|
||||
+ if (error_pkt) {
|
||||
+ acknowledge(ntohs(icmph.un.echo.sequence));
|
||||
+ net_errors++;
|
||||
+ nerrors++;
|
||||
+ }
|
||||
+ else {
|
||||
+ saved_errno = 0;
|
||||
+ }
|
||||
|
||||
- if (!working_recverr) {
|
||||
+ if (!using_ping_socket && !working_recverr) {
|
||||
struct icmp_filter filt;
|
||||
working_recverr = 1;
|
||||
/* OK, it works. Add stronger filter. */
|
||||
@@ -589,15 +632,14 @@ int receive_error_msg()
|
||||
perror("\rWARNING: setsockopt(ICMP_FILTER)");
|
||||
}
|
||||
|
||||
- net_errors++;
|
||||
- nerrors++;
|
||||
if (options & F_QUIET)
|
||||
goto out;
|
||||
if (options & F_FLOOD) {
|
||||
- write_stdout("\bE", 2);
|
||||
+ if (error_pkt)
|
||||
+ write_stdout("\bE", 2);
|
||||
} else {
|
||||
print_timestamp();
|
||||
- printf("From %s icmp_seq=%u ", pr_addr(sin->sin_addr.s_addr), ntohs(icmph.un.echo.sequence));
|
||||
+ printf("From %s: icmp_seq=%u ", pr_addr(sin->sin_addr.s_addr), ntohs(icmph.un.echo.sequence));
|
||||
pr_icmph(e->ee_type, e->ee_code, e->ee_info, NULL);
|
||||
fflush(stdout);
|
||||
}
|
||||
@@ -695,15 +737,41 @@ parse_reply(struct msghdr *msg, int cc,
|
||||
struct iphdr *ip;
|
||||
int hlen;
|
||||
int csfailed;
|
||||
+ struct cmsghdr *cmsg;
|
||||
+ int ttl;
|
||||
+ __u8 *opts;
|
||||
+ int optlen;
|
||||
|
||||
/* Check the IP header */
|
||||
ip = (struct iphdr *)buf;
|
||||
- hlen = ip->ihl*4;
|
||||
- if (cc < hlen + 8 || ip->ihl < 5) {
|
||||
- if (options & F_VERBOSE)
|
||||
- fprintf(stderr, "ping: packet too short (%d bytes) from %s\n", cc,
|
||||
- pr_addr(from->sin_addr.s_addr));
|
||||
- return 1;
|
||||
+ if (!using_ping_socket) {
|
||||
+ hlen = ip->ihl*4;
|
||||
+ if (cc < hlen + 8 || ip->ihl < 5) {
|
||||
+ if (options & F_VERBOSE)
|
||||
+ fprintf(stderr, "ping: packet too short (%d bytes) from %s\n", cc,
|
||||
+ pr_addr(from->sin_addr.s_addr));
|
||||
+ return 1;
|
||||
+ }
|
||||
+ ttl = ip->ttl;
|
||||
+ opts = buf + sizeof(struct iphdr);
|
||||
+ optlen = hlen - sizeof(struct iphdr);
|
||||
+ } else {
|
||||
+ hlen = 0;
|
||||
+ ttl = 0;
|
||||
+ opts = buf;
|
||||
+ optlen = 0;
|
||||
+ for (cmsg = CMSG_FIRSTHDR(msg); cmsg; cmsg = CMSG_NXTHDR(msg, cmsg)) {
|
||||
+ if (cmsg->cmsg_level != SOL_IP)
|
||||
+ continue;
|
||||
+ if (cmsg->cmsg_type == IP_TTL) {
|
||||
+ if (cmsg->cmsg_len < sizeof(int))
|
||||
+ continue;
|
||||
+ ttl = *(int *) CMSG_DATA(cmsg);
|
||||
+ } else if (cmsg->cmsg_type == IP_RETOPTS) {
|
||||
+ opts = (__u8 *) CMSG_DATA(cmsg);
|
||||
+ optlen = cmsg->cmsg_len;
|
||||
+ }
|
||||
+ }
|
||||
}
|
||||
|
||||
/* Now the ICMP part */
|
||||
@@ -716,7 +784,7 @@ parse_reply(struct msghdr *msg, int cc,
|
||||
return 1; /* 'Twas not our ECHO */
|
||||
if (gather_statistics((__u8*)icp, sizeof(*icp), cc,
|
||||
ntohs(icp->un.echo.sequence),
|
||||
- ip->ttl, 0, tv, pr_addr(from->sin_addr.s_addr),
|
||||
+ ttl, 0, tv, pr_addr(from->sin_addr.s_addr),
|
||||
pr_echo_reply))
|
||||
return 0;
|
||||
} else {
|
||||
@@ -807,7 +875,7 @@ parse_reply(struct msghdr *msg, int cc,
|
||||
}
|
||||
|
||||
if (!(options & F_FLOOD)) {
|
||||
- pr_options(buf + sizeof(struct iphdr), hlen);
|
||||
+ pr_options(opts, optlen + sizeof(struct iphdr));
|
||||
|
||||
if (options & F_AUDIBLE)
|
||||
putchar('\a');
|
||||
@@ -916,8 +984,7 @@ void pr_icmph(__u8 type, __u8 code, __u3
|
||||
printf("Redirect, Bad Code: %d", code);
|
||||
break;
|
||||
}
|
||||
- if (icp)
|
||||
- printf("(New nexthop: %s)\n", pr_addr(icp->un.gateway));
|
||||
+ printf("(New nexthop: %s)\n", pr_addr(icp ? icp->un.gateway : info));
|
||||
if (icp && (options & F_VERBOSE))
|
||||
pr_iph((struct iphdr*)(icp + 1));
|
||||
break;
|
||||
@@ -1217,7 +1284,7 @@ void install_filter(void)
|
||||
insns
|
||||
};
|
||||
|
||||
- if (once)
|
||||
+ if (once || using_ping_socket)
|
||||
return;
|
||||
once = 1;
|
||||
|
||||
--- iputils-s20101006/ping_common.c
|
||||
+++ iputils-s20101006/ping_common.c
|
||||
@@ -515,7 +515,8 @@ void setup(int icmp_sock)
|
||||
*p++ = i;
|
||||
}
|
||||
|
||||
- ident = htons(getpid() & 0xFFFF);
|
||||
+ if (!ident)
|
||||
+ ident = htons(getpid() & 0xFFFF);
|
||||
|
||||
set_signal(SIGINT, sigexit);
|
||||
set_signal(SIGALRM, sigexit);
|
||||
@@ -0,0 +1,64 @@
|
||||
From 23fcb10ae15a96aa9e5a823cfe0b612d9522691c Mon Sep 17 00:00:00 2001
|
||||
From: Mike Frysinger <vapier@gentoo.org>
|
||||
Date: Sat, 14 Aug 2010 01:16:42 -0400
|
||||
Subject: [PATCH [iputils]] tracepath: re-use printf return in print_host
|
||||
|
||||
Since the printf funcs already return the length of chars displayed,
|
||||
use that value instead of re-calculating the length with strlen.
|
||||
|
||||
This also fixes the handling of the strlen return -- it's a size_t,
|
||||
not an int.
|
||||
|
||||
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
|
||||
---
|
||||
tracepath.c | 11 ++++-------
|
||||
tracepath6.c | 11 ++++-------
|
||||
2 files changed, 8 insertions(+), 14 deletions(-)
|
||||
|
||||
diff --git a/tracepath.c b/tracepath.c
|
||||
index 8a08f1d..f155816 100644
|
||||
--- a/tracepath.c
|
||||
+++ b/tracepath.c
|
||||
@@ -73,13 +73,10 @@ void data_wait(int fd)
|
||||
|
||||
void print_host(const char *a, const char *b, int both)
|
||||
{
|
||||
- int plen = 0;
|
||||
- printf("%s", a);
|
||||
- plen = strlen(a);
|
||||
- if (both) {
|
||||
- printf(" (%s)", b);
|
||||
- plen += strlen(b) + 3;
|
||||
- }
|
||||
+ int plen;
|
||||
+ plen = printf("%s", a);
|
||||
+ if (both)
|
||||
+ plen += printf(" (%s)", b);
|
||||
if (plen >= HOST_COLUMN_SIZE)
|
||||
plen = HOST_COLUMN_SIZE - 1;
|
||||
printf("%*s", HOST_COLUMN_SIZE - plen, "");
|
||||
diff --git a/tracepath6.c b/tracepath6.c
|
||||
index 126fadf..bee95c3 100644
|
||||
--- a/tracepath6.c
|
||||
+++ b/tracepath6.c
|
||||
@@ -86,13 +86,10 @@ void data_wait(int fd)
|
||||
|
||||
void print_host(const char *a, const char *b, int both)
|
||||
{
|
||||
- int plen = 0;
|
||||
- printf("%s", a);
|
||||
- plen = strlen(a);
|
||||
- if (both) {
|
||||
- printf(" (%s)", b);
|
||||
- plen += strlen(b) + 3;
|
||||
- }
|
||||
+ int plen;
|
||||
+ plen = printf("%s", a);
|
||||
+ if (both)
|
||||
+ plen += printf(" (%s)", b);
|
||||
if (plen >= HOST_COLUMN_SIZE)
|
||||
plen = HOST_COLUMN_SIZE - 1;
|
||||
printf("%*s", HOST_COLUMN_SIZE - plen, "");
|
||||
--
|
||||
1.8.0.2
|
||||
|
||||
@@ -0,0 +1,110 @@
|
||||
.\" This manpage has been automatically generated by docbook2man
|
||||
.\" from a DocBook document. This tool can be found at:
|
||||
.\" <http://shell.ipoline.com/~elmert/comp/docbook2X/>
|
||||
.\" Please send any bug reports, improvements, comments, patches,
|
||||
.\" etc. to Steve Cheng <steve@ggi-project.org>.
|
||||
.TH "ARPING" "8" "24 Mayıs 2011" "iputils-101006" "System Manager's Manual: iputils"
|
||||
.SH NAME
|
||||
arping \- send ARP REQUEST to a neighbour host
|
||||
.SH SYNOPSIS
|
||||
|
||||
\fBarping\fR [ \fB-AbDfhqUV\fR] [ \fB-c \fIcount\fB\fR] [ \fB-w \fIdeadline\fB\fR] [ \fB-s \fIsource\fB\fR] \fB-I \fIinterface\fB\fR \fB\fIdestination\fB\fR
|
||||
|
||||
.SH "DESCRIPTION"
|
||||
.PP
|
||||
Ping \fIdestination\fR on device \fIinterface\fR by ARP packets,
|
||||
using source address \fIsource\fR.
|
||||
.SH "OPTIONS"
|
||||
.TP
|
||||
\fB-A\fR
|
||||
The same as \fB-U\fR, but ARP REPLY packets used instead
|
||||
of ARP REQUEST.
|
||||
.TP
|
||||
\fB-b\fR
|
||||
Send only MAC level broadcasts. Normally \fBarping\fR starts
|
||||
from sending broadcast, and switch to unicast after reply received.
|
||||
.TP
|
||||
\fB-c \fIcount\fB\fR
|
||||
Stop after sending \fIcount\fR ARP REQUEST
|
||||
packets. With
|
||||
\fIdeadline\fR
|
||||
option, \fBarping\fR waits for
|
||||
\fIcount\fR ARP REPLY packets, until the timeout expires.
|
||||
.TP
|
||||
\fB-D\fR
|
||||
Duplicate address detection mode (DAD). See
|
||||
RFC2131, 4.4.1.
|
||||
Returns 0, if DAD succeeded i.e. no replies are received
|
||||
.TP
|
||||
\fB-f\fR
|
||||
Finish after the first reply confirming that target is alive.
|
||||
.TP
|
||||
\fB-I \fIinterface\fB\fR
|
||||
Name of network device where to send ARP REQUEST packets. This option
|
||||
is required.
|
||||
.TP
|
||||
\fB-h\fR
|
||||
Print help page and exit.
|
||||
.TP
|
||||
\fB-q\fR
|
||||
Quiet output. Nothing is displayed.
|
||||
.TP
|
||||
\fB-s \fIsource\fB\fR
|
||||
IP source address to use in ARP packets.
|
||||
If this option is absent, source address is:
|
||||
.RS
|
||||
.TP 0.2i
|
||||
\(bu
|
||||
In DAD mode (with option \fB-D\fR) set to 0.0.0.0.
|
||||
.TP 0.2i
|
||||
\(bu
|
||||
In Unsolicited ARP mode (with options \fB-U\fR or \fB-A\fR)
|
||||
set to \fIdestination\fR.
|
||||
.TP 0.2i
|
||||
\(bu
|
||||
Otherwise, it is calculated from routing tables.
|
||||
.RE
|
||||
.TP
|
||||
\fB-U\fR
|
||||
Unsolicited ARP mode to update neighbours' ARP caches.
|
||||
No replies are expected.
|
||||
.TP
|
||||
\fB-V\fR
|
||||
Print version of the program and exit.
|
||||
.TP
|
||||
\fB-w \fIdeadline\fB\fR
|
||||
Specify a timeout, in seconds, before
|
||||
\fBarping\fR
|
||||
exits regardless of how many
|
||||
packets have been sent or received. In this case
|
||||
\fBarping\fR
|
||||
does not stop after
|
||||
\fIcount\fR
|
||||
packet are sent, it waits either for
|
||||
\fIdeadline\fR
|
||||
expire or until
|
||||
\fIcount\fR
|
||||
probes are answered.
|
||||
.SH "SEE ALSO"
|
||||
.PP
|
||||
\fBping\fR(8),
|
||||
\fBclockdiff\fR(8),
|
||||
\fBtracepath\fR(8).
|
||||
.SH "AUTHOR"
|
||||
.PP
|
||||
\fBarping\fR was written by
|
||||
Alexey Kuznetsov
|
||||
<kuznet@ms2.inr.ac.ru>.
|
||||
It is now maintained by
|
||||
YOSHIFUJI Hideaki
|
||||
<yoshfuji@skbuff.net>.
|
||||
.SH "SECURITY"
|
||||
.PP
|
||||
\fBarping\fR requires CAP_NET_RAWIO capability
|
||||
to be executed. It is not recommended to be used as set-uid root,
|
||||
because it allows user to modify ARP caches of neighbour hosts.
|
||||
.SH "AVAILABILITY"
|
||||
.PP
|
||||
\fBarping\fR is part of \fIiputils\fR package
|
||||
and the latest versions are available in source form at
|
||||
http://www.skbuff.net/iputils/iputils-current.tar.bz2.
|
||||
@@ -0,0 +1,81 @@
|
||||
.\" This manpage has been automatically generated by docbook2man
|
||||
.\" from a DocBook document. This tool can be found at:
|
||||
.\" <http://shell.ipoline.com/~elmert/comp/docbook2X/>
|
||||
.\" Please send any bug reports, improvements, comments, patches,
|
||||
.\" etc. to Steve Cheng <steve@ggi-project.org>.
|
||||
.TH "CLOCKDIFF" "8" "24 Mayıs 2011" "iputils-101006" "System Manager's Manual: iputils"
|
||||
.SH NAME
|
||||
clockdiff \- measure clock difference between hosts
|
||||
.SH SYNOPSIS
|
||||
|
||||
\fBclockdiff\fR [ \fB-o\fR] [ \fB-o1\fR] \fB\fIdestination\fB\fR
|
||||
|
||||
.SH "DESCRIPTION"
|
||||
.PP
|
||||
\fBclockdiff\fR Measures clock difference between us and
|
||||
\fIdestination\fR with 1 msec resolution using ICMP TIMESTAMP
|
||||
[2]
|
||||
packets or, optionally, IP TIMESTAMP option
|
||||
[3]
|
||||
option added to ICMP ECHO.
|
||||
[1]
|
||||
.SH "OPTIONS"
|
||||
.TP
|
||||
\fB-o\fR
|
||||
Use IP TIMESTAMP with ICMP ECHO instead of ICMP TIMESTAMP
|
||||
messages. It is useful with some destinations, which do not support
|
||||
ICMP TIMESTAMP (f.e. Solaris <2.4).
|
||||
.TP
|
||||
\fB-o1\fR
|
||||
Slightly different form of \fB-o\fR, namely it uses three-term
|
||||
IP TIMESTAMP with prespecified hop addresses instead of four term one.
|
||||
What flavor works better depends on target host. Particularly,
|
||||
\fB-o\fR is better for Linux.
|
||||
.SH "WARNINGS"
|
||||
.TP 0.2i
|
||||
\(bu
|
||||
Some nodes (Cisco) use non-standard timestamps, which is allowed
|
||||
by RFC, but makes timestamps mostly useless.
|
||||
.TP 0.2i
|
||||
\(bu
|
||||
Some nodes generate messed timestamps (Solaris>2.4), when
|
||||
run \fBxntpd\fR. Seems, its IP stack uses a corrupted clock source,
|
||||
which is synchronized to time-of-day clock periodically and jumps
|
||||
randomly making timestamps mostly useless. Good news is that you can
|
||||
use NTP in this case, which is even better.
|
||||
.TP 0.2i
|
||||
\(bu
|
||||
\fBclockdiff\fR shows difference in time modulo 24 days.
|
||||
.SH "SEE ALSO"
|
||||
.PP
|
||||
\fBping\fR(8),
|
||||
\fBarping\fR(8),
|
||||
\fBtracepath\fR(8).
|
||||
.SH "REFERENCES"
|
||||
.PP
|
||||
[1] ICMP ECHO,
|
||||
RFC0792, page 14.
|
||||
.PP
|
||||
[2] ICMP TIMESTAMP,
|
||||
RFC0792, page 16.
|
||||
.PP
|
||||
[3] IP TIMESTAMP option,
|
||||
RFC0791, 3.1, page 16.
|
||||
.SH "AUTHOR"
|
||||
.PP
|
||||
\fBclockdiff\fR was compiled by
|
||||
Alexey Kuznetsov
|
||||
<kuznet@ms2.inr.ac.ru>. It was based on code borrowed
|
||||
from BSD \fBtimed\fR daemon.
|
||||
It is now maintained by
|
||||
YOSHIFUJI Hideaki
|
||||
<yoshfuji@skbuff.net>.
|
||||
.SH "SECURITY"
|
||||
.PP
|
||||
\fBclockdiff\fR requires CAP_NET_RAWIO capability
|
||||
to be executed. It is safe to be used as set-uid root.
|
||||
.SH "AVAILABILITY"
|
||||
.PP
|
||||
\fBclockdiff\fR is part of \fIiputils\fR package
|
||||
and the latest versions are available in source form at
|
||||
http://www.skbuff.net/iputils/iputils-current.tar.bz2.
|
||||
@@ -0,0 +1,408 @@
|
||||
.\" This manpage has been automatically generated by docbook2man
|
||||
.\" from a DocBook document. This tool can be found at:
|
||||
.\" <http://shell.ipoline.com/~elmert/comp/docbook2X/>
|
||||
.\" Please send any bug reports, improvements, comments, patches,
|
||||
.\" etc. to Steve Cheng <steve@ggi-project.org>.
|
||||
.TH "PING" "8" "24 Mayıs 2011" "iputils-101006" "System Manager's Manual: iputils"
|
||||
.SH NAME
|
||||
ping, ping6 \- send ICMP ECHO_REQUEST to network hosts
|
||||
.SH SYNOPSIS
|
||||
|
||||
\fBping\fR [ \fB-LRUbdfnqrvVaAB\fR] [ \fB-c \fIcount\fB\fR] [ \fB-m \fImark\fB\fR] [ \fB-i \fIinterval\fB\fR] [ \fB-l \fIpreload\fB\fR] [ \fB-p \fIpattern\fB\fR] [ \fB-s \fIpacketsize\fB\fR] [ \fB-t \fIttl\fB\fR] [ \fB-w \fIdeadline\fB\fR] [ \fB-F \fIflowlabel\fB\fR] [ \fB-I \fIinterface\fB\fR] [ \fB-M \fIhint\fB\fR] [ \fB-N \fInioption\fB\fR] [ \fB-Q \fItos\fB\fR] [ \fB-S \fIsndbuf\fB\fR] [ \fB-T \fItimestamp option\fB\fR] [ \fB-W \fItimeout\fB\fR] [ \fB\fIhop\fB\fR\fI ...\fR] \fB\fIdestination\fB\fR
|
||||
|
||||
.SH "DESCRIPTION"
|
||||
.PP
|
||||
\fBping\fR uses the ICMP protocol's mandatory ECHO_REQUEST
|
||||
datagram to elicit an ICMP ECHO_RESPONSE from a host or gateway.
|
||||
ECHO_REQUEST datagrams (``pings'') have an IP and ICMP
|
||||
header, followed by a struct timeval and then an arbitrary
|
||||
number of ``pad'' bytes used to fill out the packet.
|
||||
.PP
|
||||
\fBping6\fR can also send Node Information Queries (RFC4620).
|
||||
.SH "OPTIONS"
|
||||
.TP
|
||||
\fB-a\fR
|
||||
Audible ping.
|
||||
.TP
|
||||
\fB-A\fR
|
||||
Adaptive ping. Interpacket interval adapts to round-trip time, so that
|
||||
effectively not more than one (or more, if preload is set) unanswered probe
|
||||
is present in the network. Minimal interval is 200msec for not super-user.
|
||||
On networks with low rtt this mode is essentially equivalent to flood mode.
|
||||
.TP
|
||||
\fB-b\fR
|
||||
Allow pinging a broadcast address.
|
||||
.TP
|
||||
\fB-B\fR
|
||||
Do not allow \fBping\fR to change source address of probes.
|
||||
The address is bound to one selected when \fBping\fR starts.
|
||||
.TP
|
||||
\fB-m \fImark\fB\fR
|
||||
use \fImark\fR to tag the packets going out. This is useful
|
||||
for variety of reasons within the kernel such as using policy
|
||||
routing to select specific outbound processing.
|
||||
.TP
|
||||
\fB-c \fIcount\fB\fR
|
||||
Stop after sending \fIcount\fR ECHO_REQUEST
|
||||
packets. With
|
||||
\fIdeadline\fR
|
||||
option, \fBping\fR waits for
|
||||
\fIcount\fR ECHO_REPLY packets, until the timeout expires.
|
||||
.TP
|
||||
\fB-d\fR
|
||||
Set the SO_DEBUG option on the socket being used.
|
||||
Essentially, this socket option is not used by Linux kernel.
|
||||
.TP
|
||||
\fB-F \fIflow label\fB\fR
|
||||
Allocate and set 20 bit flow label on echo request packets.
|
||||
(Only \fBping6\fR). If value is zero, kernel allocates random flow label.
|
||||
.TP
|
||||
\fB-f\fR
|
||||
Flood ping. For every ECHO_REQUEST sent a period ``.'' is printed,
|
||||
while for ever ECHO_REPLY received a backspace is printed.
|
||||
This provides a rapid display of how many packets are being dropped.
|
||||
If interval is not given, it sets interval to zero and
|
||||
outputs packets as fast as they come back or one hundred times per second,
|
||||
whichever is more.
|
||||
Only the super-user may use this option with zero interval.
|
||||
.TP
|
||||
\fB-i \fIinterval\fB\fR
|
||||
Wait \fIinterval\fR seconds between sending each packet.
|
||||
The default is to wait for one second between each packet normally,
|
||||
or not to wait in flood mode. Only super-user may set interval
|
||||
to values less 0.2 seconds.
|
||||
.TP
|
||||
\fB-I \fIinterface address\fB\fR
|
||||
Set source address to specified interface address. Argument
|
||||
may be numeric IP address or name of device. When pinging IPv6
|
||||
link-local address this option is required.
|
||||
.TP
|
||||
\fB-l \fIpreload\fB\fR
|
||||
If \fIpreload\fR is specified,
|
||||
\fBping\fR sends that many packets not waiting for reply.
|
||||
Only the super-user may select preload more than 3.
|
||||
.TP
|
||||
\fB-L\fR
|
||||
Suppress loopback of multicast packets. This flag only applies if the ping
|
||||
destination is a multicast address.
|
||||
.TP
|
||||
\fB-N \fInioption\fB\fR
|
||||
Send ICMPv6 Node Information Queries (RFC4620), instead of Echo Request.
|
||||
.RS
|
||||
.TP
|
||||
\fBname\fR
|
||||
Queries for Node Names.
|
||||
.RE
|
||||
.RS
|
||||
.TP
|
||||
\fBipv6\fR
|
||||
Queries for IPv6 Addresses. There are several IPv6 specific flags.
|
||||
.RS
|
||||
.TP
|
||||
\fBipv6-global\fR
|
||||
Request IPv6 global-scope addresses.
|
||||
.RE
|
||||
.RS
|
||||
.TP
|
||||
\fBipv6-sitelocal\fR
|
||||
Request IPv6 site-local addresses.
|
||||
.RE
|
||||
.RS
|
||||
.TP
|
||||
\fBipv6-linklocal\fR
|
||||
Request IPv6 link-local addresses.
|
||||
.RE
|
||||
.RS
|
||||
.TP
|
||||
\fBipv6-all\fR
|
||||
Request IPv6 addresses on other interfaces.
|
||||
.RE
|
||||
.RE
|
||||
.RS
|
||||
.TP
|
||||
\fBipv4\fR
|
||||
Queries for IPv4 Addresses. There is one IPv4 specific flag.
|
||||
.RS
|
||||
.TP
|
||||
\fBipv4-all\fR
|
||||
Request IPv4 addresses on other interfaces.
|
||||
.RE
|
||||
.RE
|
||||
.RS
|
||||
.TP
|
||||
\fBsubject-ipv6=\fIipv6addr\fB\fR
|
||||
IPv6 subject address.
|
||||
.RE
|
||||
.RS
|
||||
.TP
|
||||
\fBsubject-ipv4=\fIipv4addr\fB\fR
|
||||
IPv4 subject address.
|
||||
.RE
|
||||
.RS
|
||||
.TP
|
||||
\fBsubject-name=\fInodename\fB\fR
|
||||
Subject name. If it contains more than one dot,
|
||||
fully-qualified domain name is assumed.
|
||||
.RE
|
||||
.RS
|
||||
.TP
|
||||
\fBsubject-fqdn=\fInodename\fB\fR
|
||||
Subject name. Fully-qualified domain name is
|
||||
always assumed.
|
||||
.RE
|
||||
.TP
|
||||
\fB-n\fR
|
||||
Numeric output only.
|
||||
No attempt will be made to lookup symbolic names for host addresses.
|
||||
.TP
|
||||
\fB-p \fIpattern\fB\fR
|
||||
You may specify up to 16 ``pad'' bytes to fill out the packet you send.
|
||||
This is useful for diagnosing data-dependent problems in a network.
|
||||
For example, \fB-p ff\fR will cause the sent packet
|
||||
to be filled with all ones.
|
||||
.TP
|
||||
\fB-D\fR
|
||||
Print timestamp (unix time + microseconds as in gettimeofday) before
|
||||
each line.
|
||||
.TP
|
||||
\fB-Q \fItos\fB\fR
|
||||
Set Quality of Service -related bits in ICMP datagrams.
|
||||
\fItos\fR can be either decimal or hex number.
|
||||
Traditionally (RFC1349), these have been interpreted as: 0 for reserved
|
||||
(currently being redefined as congestion control), 1-4 for Type of Service
|
||||
and 5-7 for Precedence.
|
||||
Possible settings for Type of Service are: minimal cost: 0x02,
|
||||
reliability: 0x04, throughput: 0x08, low delay: 0x10. Multiple TOS bits
|
||||
should not be set simultaneously. Possible settings for
|
||||
special Precedence range from priority (0x20) to net control (0xe0). You
|
||||
must be root (CAP_NET_ADMIN capability) to use Critical or
|
||||
higher precedence value. You cannot set
|
||||
bit 0x01 (reserved) unless ECN has been enabled in the kernel.
|
||||
In RFC2474, these fields has been redefined as 8-bit Differentiated
|
||||
Services (DS), consisting of: bits 0-1 of separate data (ECN will be used,
|
||||
here), and bits 2-7 of Differentiated Services Codepoint (DSCP).
|
||||
.TP
|
||||
\fB-q\fR
|
||||
Quiet output.
|
||||
Nothing is displayed except the summary lines at startup time and
|
||||
when finished.
|
||||
.TP
|
||||
\fB-R\fR
|
||||
Record route.
|
||||
Includes the RECORD_ROUTE option in the ECHO_REQUEST
|
||||
packet and displays the route buffer on returned packets.
|
||||
Note that the IP header is only large enough for nine such routes.
|
||||
Many hosts ignore or discard this option.
|
||||
.TP
|
||||
\fB-r\fR
|
||||
Bypass the normal routing tables and send directly to a host on an attached
|
||||
interface.
|
||||
If the host is not on a directly-attached network, an error is returned.
|
||||
This option can be used to ping a local host through an interface
|
||||
that has no route through it provided the option \fB-I\fR is also
|
||||
used.
|
||||
.TP
|
||||
\fB-s \fIpacketsize\fB\fR
|
||||
Specifies the number of data bytes to be sent.
|
||||
The default is 56, which translates into 64 ICMP
|
||||
data bytes when combined with the 8 bytes of ICMP header data.
|
||||
.TP
|
||||
\fB-S \fIsndbuf\fB\fR
|
||||
Set socket sndbuf. If not specified, it is selected to buffer
|
||||
not more than one packet.
|
||||
.TP
|
||||
\fB-t \fIttl\fB\fR
|
||||
Set the IP Time to Live.
|
||||
.TP
|
||||
\fB-T \fItimestamp option\fB\fR
|
||||
Set special IP timestamp options.
|
||||
\fItimestamp option\fR may be either
|
||||
\fItsonly\fR (only timestamps),
|
||||
\fItsandaddr\fR (timestamps and addresses) or
|
||||
\fItsprespec host1 [host2 [host3 [host4]]]\fR
|
||||
(timestamp prespecified hops).
|
||||
.TP
|
||||
\fB-M \fIhint\fB\fR
|
||||
Select Path MTU Discovery strategy.
|
||||
\fIhint\fR may be either \fIdo\fR
|
||||
(prohibit fragmentation, even local one),
|
||||
\fIwant\fR (do PMTU discovery, fragment locally when packet size
|
||||
is large), or \fIdont\fR (do not set DF flag).
|
||||
.TP
|
||||
\fB-U\fR
|
||||
Print full user-to-user latency (the old behaviour). Normally
|
||||
\fBping\fR
|
||||
prints network round trip time, which can be different
|
||||
f.e. due to DNS failures.
|
||||
.TP
|
||||
\fB-v\fR
|
||||
Verbose output.
|
||||
.TP
|
||||
\fB-V\fR
|
||||
Show version and exit.
|
||||
.TP
|
||||
\fB-w \fIdeadline\fB\fR
|
||||
Specify a timeout, in seconds, before
|
||||
\fBping\fR
|
||||
exits regardless of how many
|
||||
packets have been sent or received. In this case
|
||||
\fBping\fR
|
||||
does not stop after
|
||||
\fIcount\fR
|
||||
packet are sent, it waits either for
|
||||
\fIdeadline\fR
|
||||
expire or until
|
||||
\fIcount\fR
|
||||
probes are answered or for some error notification from network.
|
||||
.TP
|
||||
\fB-W \fItimeout\fB\fR
|
||||
Time to wait for a response, in seconds. The option affects only timeout
|
||||
in absence of any responses, otherwise \fBping\fR waits for two RTTs.
|
||||
.PP
|
||||
When using \fBping\fR for fault isolation, it should first be run
|
||||
on the local host, to verify that the local network interface is up
|
||||
and running. Then, hosts and gateways further and further away should be
|
||||
``pinged''. Round-trip times and packet loss statistics are computed.
|
||||
If duplicate packets are received, they are not included in the packet
|
||||
loss calculation, although the round trip time of these packets is used
|
||||
in calculating the minimum/average/maximum round-trip time numbers.
|
||||
When the specified number of packets have been sent (and received) or
|
||||
if the program is terminated with a
|
||||
SIGINT, a brief summary is displayed. Shorter current statistics
|
||||
can be obtained without termination of process with signal
|
||||
SIGQUIT.
|
||||
.PP
|
||||
If \fBping\fR does not receive any reply packets at all it will
|
||||
exit with code 1. If a packet
|
||||
\fIcount\fR
|
||||
and
|
||||
\fIdeadline\fR
|
||||
are both specified, and fewer than
|
||||
\fIcount\fR
|
||||
packets are received by the time the
|
||||
\fIdeadline\fR
|
||||
has arrived, it will also exit with code 1.
|
||||
On other error it exits with code 2. Otherwise it exits with code 0. This
|
||||
makes it possible to use the exit code to see if a host is alive or
|
||||
not.
|
||||
.PP
|
||||
This program is intended for use in network testing, measurement and
|
||||
management.
|
||||
Because of the load it can impose on the network, it is unwise to use
|
||||
\fBping\fR during normal operations or from automated scripts.
|
||||
.SH "ICMP PACKET DETAILS"
|
||||
.PP
|
||||
An IP header without options is 20 bytes.
|
||||
An ICMP ECHO_REQUEST packet contains an additional 8 bytes worth
|
||||
of ICMP header followed by an arbitrary amount of data.
|
||||
When a \fIpacketsize\fR is given, this indicated the size of this
|
||||
extra piece of data (the default is 56). Thus the amount of data received
|
||||
inside of an IP packet of type ICMP ECHO_REPLY will always be 8 bytes
|
||||
more than the requested data space (the ICMP header).
|
||||
.PP
|
||||
If the data space is at least of size of struct timeval
|
||||
\fBping\fR uses the beginning bytes of this space to include
|
||||
a timestamp which it uses in the computation of round trip times.
|
||||
If the data space is shorter, no round trip times are given.
|
||||
.SH "DUPLICATE AND DAMAGED PACKETS"
|
||||
.PP
|
||||
\fBping\fR will report duplicate and damaged packets.
|
||||
Duplicate packets should never occur, and seem to be caused by
|
||||
inappropriate link-level retransmissions.
|
||||
Duplicates may occur in many situations and are rarely (if ever) a
|
||||
good sign, although the presence of low levels of duplicates may not
|
||||
always be cause for alarm.
|
||||
.PP
|
||||
Damaged packets are obviously serious cause for alarm and often
|
||||
indicate broken hardware somewhere in the
|
||||
\fBping\fR packet's path (in the network or in the hosts).
|
||||
.SH "TRYING DIFFERENT DATA PATTERNS"
|
||||
.PP
|
||||
The (inter)network layer should never treat packets differently depending
|
||||
on the data contained in the data portion.
|
||||
Unfortunately, data-dependent problems have been known to sneak into
|
||||
networks and remain undetected for long periods of time.
|
||||
In many cases the particular pattern that will have problems is something
|
||||
that doesn't have sufficient ``transitions'', such as all ones or all
|
||||
zeros, or a pattern right at the edge, such as almost all zeros.
|
||||
It isn't necessarily enough to specify a data pattern of all zeros (for
|
||||
example) on the command line because the pattern that is of interest is
|
||||
at the data link level, and the relationship between what you type and
|
||||
what the controllers transmit can be complicated.
|
||||
.PP
|
||||
This means that if you have a data-dependent problem you will probably
|
||||
have to do a lot of testing to find it.
|
||||
If you are lucky, you may manage to find a file that either can't be sent
|
||||
across your network or that takes much longer to transfer than other
|
||||
similar length files.
|
||||
You can then examine this file for repeated patterns that you can test
|
||||
using the \fB-p\fR option of \fBping\fR.
|
||||
.SH "TTL DETAILS"
|
||||
.PP
|
||||
The TTL value of an IP packet represents the maximum number of IP routers
|
||||
that the packet can go through before being thrown away.
|
||||
In current practice you can expect each router in the Internet to decrement
|
||||
the TTL field by exactly one.
|
||||
.PP
|
||||
The TCP/IP specification states that the TTL field for TCP
|
||||
packets should be set to 60, but many systems use smaller values
|
||||
(4.3 BSD uses 30, 4.2 used 15).
|
||||
.PP
|
||||
The maximum possible value of this field is 255, and most Unix systems set
|
||||
the TTL field of ICMP ECHO_REQUEST packets to 255.
|
||||
This is why you will find you can ``ping'' some hosts, but not reach them
|
||||
with
|
||||
\fBtelnet\fR(1)
|
||||
or
|
||||
\fBftp\fR(1).
|
||||
.PP
|
||||
In normal operation ping prints the TTL value from the packet it receives.
|
||||
When a remote system receives a ping packet, it can do one of three things
|
||||
with the TTL field in its response:
|
||||
.TP 0.2i
|
||||
\(bu
|
||||
Not change it; this is what Berkeley Unix systems did before the
|
||||
4.3BSD Tahoe release. In this case the TTL value in the received packet
|
||||
will be 255 minus the number of routers in the round-trip path.
|
||||
.TP 0.2i
|
||||
\(bu
|
||||
Set it to 255; this is what current Berkeley Unix systems do.
|
||||
In this case the TTL value in the received packet will be 255 minus the
|
||||
number of routers in the path \fBfrom\fR
|
||||
the remote system \fBto\fR the \fBping\fRing host.
|
||||
.TP 0.2i
|
||||
\(bu
|
||||
Set it to some other value. Some machines use the same value for
|
||||
ICMP packets that they use for TCP packets, for example either 30 or 60.
|
||||
Others may use completely wild values.
|
||||
.SH "BUGS"
|
||||
.TP 0.2i
|
||||
\(bu
|
||||
Many Hosts and Gateways ignore the RECORD_ROUTE option.
|
||||
.TP 0.2i
|
||||
\(bu
|
||||
The maximum IP header length is too small for options like
|
||||
RECORD_ROUTE to be completely useful.
|
||||
There's not much that that can be done about this, however.
|
||||
.TP 0.2i
|
||||
\(bu
|
||||
Flood pinging is not recommended in general, and flood pinging the
|
||||
broadcast address should only be done under very controlled conditions.
|
||||
.SH "SEE ALSO"
|
||||
.PP
|
||||
\fBnetstat\fR(1),
|
||||
\fBifconfig\fR(8).
|
||||
.SH "HISTORY"
|
||||
.PP
|
||||
The \fBping\fR command appeared in 4.3BSD.
|
||||
.PP
|
||||
The version described here is its descendant specific to Linux.
|
||||
.SH "SECURITY"
|
||||
.PP
|
||||
\fBping\fR requires CAP_NET_RAWIO capability
|
||||
to be executed. It may be used as set-uid root.
|
||||
.SH "AVAILABILITY"
|
||||
.PP
|
||||
\fBping\fR is part of \fIiputils\fR package
|
||||
and the latest versions are available in source form at
|
||||
http://www.skbuff.net/iputils/iputils-current.tar.bz2.
|
||||
@@ -0,0 +1,84 @@
|
||||
.\" This manpage has been automatically generated by docbook2man
|
||||
.\" from a DocBook document. This tool can be found at:
|
||||
.\" <http://shell.ipoline.com/~elmert/comp/docbook2X/>
|
||||
.\" Please send any bug reports, improvements, comments, patches,
|
||||
.\" etc. to Steve Cheng <steve@ggi-project.org>.
|
||||
.TH "RARPD" "8" "24 Mayıs 2011" "iputils-101006" "System Manager's Manual: iputils"
|
||||
.SH NAME
|
||||
rarpd \- answer RARP REQUESTs
|
||||
.SH SYNOPSIS
|
||||
|
||||
\fBarping\fR [ \fB-aAvde\fR] [ \fB-b \fIbootdir\fB\fR] [ \fB\fIinterface\fB\fR]
|
||||
|
||||
.SH "DESCRIPTION"
|
||||
.PP
|
||||
Listens
|
||||
RARP
|
||||
requests from clients. Provided MAC address of client
|
||||
is found in \fI/etc/ethers\fR database and
|
||||
obtained host name is resolvable to an IP address appropriate
|
||||
for attached network, \fBrarpd\fR answers to client with RARPD
|
||||
reply carrying an IP address.
|
||||
.PP
|
||||
To allow multiple boot servers on the network \fBrarpd\fR
|
||||
optionally checks for presence Sun-like bootable image in TFTP directory.
|
||||
It should have form \fBHexadecimal_IP.ARCH\fR, f.e. to load
|
||||
sparc 193.233.7.98 \fIC1E90762.SUN4M\fR is linked to
|
||||
an image appropriate for SUM4M in directory \fI/etc/tftpboot\fR.
|
||||
.SH "WARNING"
|
||||
.PP
|
||||
This facility is deeply obsoleted by
|
||||
BOOTP
|
||||
and later
|
||||
DHCP protocols.
|
||||
However, some clients really still need this to boot.
|
||||
.SH "OPTIONS"
|
||||
.TP
|
||||
\fB-a\fR
|
||||
Listen on all the interfaces. Currently it is an internal
|
||||
option, its function is overridden with \fIinterface\fR
|
||||
argument. It should not be used.
|
||||
.TP
|
||||
\fB-A\fR
|
||||
Listen not only RARP but also ARP messages, some rare clients
|
||||
use ARP by some unknown reason.
|
||||
.TP
|
||||
\fB-v\fR
|
||||
Be verbose.
|
||||
.TP
|
||||
\fB-d\fR
|
||||
Debug mode. Do not go to background.
|
||||
.TP
|
||||
\fB-e\fR
|
||||
Do not check for presence of a boot image, reply if MAC address
|
||||
resolves to a valid IP address using \fI/etc/ethers\fR
|
||||
database and DNS.
|
||||
.TP
|
||||
\fB-b \fIbootdir\fB\fR
|
||||
TFTP boot directory. Default is \fI/etc/tftpboot\fR
|
||||
.SH "SEE ALSO"
|
||||
.PP
|
||||
\fBarping\fR(8),
|
||||
\fBtftpd\fR(8).
|
||||
.SH "AUTHOR"
|
||||
.PP
|
||||
\fBrarpd\fR was written by
|
||||
Alexey Kuznetsov
|
||||
<kuznet@ms2.inr.ac.ru>.
|
||||
It is now maintained by
|
||||
YOSHIFUJI Hideaki
|
||||
<yoshfuji@skbuff.net>.
|
||||
.SH "SECURITY"
|
||||
.PP
|
||||
\fBrarpd\fR requires CAP_NET_RAWIO capability
|
||||
to listen and send RARP and ARP packets. It also needs CAP_NET_ADMIN
|
||||
to give to kernel hint for ARP resolution; this is not strictly required,
|
||||
but some (most of, to be more exact) clients are so badly broken that
|
||||
are not able to answer ARP before they are finally booted. This is
|
||||
not wonderful taking into account that clients using RARPD in 2002
|
||||
are all unsupported relic creatures of 90's and even earlier.
|
||||
.SH "AVAILABILITY"
|
||||
.PP
|
||||
\fBrarpd\fR is part of \fIiputils\fR package
|
||||
and the latest versions are available in source form at
|
||||
http://www.skbuff.net/iputils/iputils-current.tar.bz2.
|
||||
@@ -0,0 +1,110 @@
|
||||
.\" This manpage has been automatically generated by docbook2man
|
||||
.\" from a DocBook document. This tool can be found at:
|
||||
.\" <http://shell.ipoline.com/~elmert/comp/docbook2X/>
|
||||
.\" Please send any bug reports, improvements, comments, patches,
|
||||
.\" etc. to Steve Cheng <steve@ggi-project.org>.
|
||||
.TH "RDISC" "8" "24 Mayıs 2011" "iputils-101006" "System Manager's Manual: iputils"
|
||||
.SH NAME
|
||||
rdisc \- network router discovery daemon
|
||||
.SH SYNOPSIS
|
||||
|
||||
\fBrdisc\fR [ \fB-abdfstvV\fR] [ \fB\fIsend_address\fB\fR] [ \fB\fIreceive_address\fB\fR]
|
||||
|
||||
.SH "DESCRIPTION"
|
||||
.PP
|
||||
\fBrdisc\fR implements client side of the ICMP router discover protocol.
|
||||
\fBrdisc\fR is invoked at boot time to populate the network
|
||||
routing tables with default routes.
|
||||
.PP
|
||||
\fBrdisc\fR listens on the ALL_HOSTS (224.0.0.1) multicast address
|
||||
(or \fIreceive_address\fR provided it is given)
|
||||
for ROUTER_ADVERTISE messages from routers. The received
|
||||
messages are handled by first ignoring those listed router addresses
|
||||
with which the host does not share a network. Among the remaining addresses
|
||||
the ones with the highest preference are selected as default routers
|
||||
and a default route is entered in the kernel routing table
|
||||
for each one of them.
|
||||
.PP
|
||||
Optionally, \fBrdisc\fR can avoid waiting for routers to announce
|
||||
themselves by sending out a few ROUTER_SOLICITATION messages
|
||||
to the ALL_ROUTERS (224.0.0.2) multicast address
|
||||
(or \fIsend_address\fR provided it is given)
|
||||
when it is started.
|
||||
.PP
|
||||
A timer is associated with each router address and the address will
|
||||
no longer be considered for inclusion in the the routing tables if the
|
||||
timer expires before a new
|
||||
\fBadvertise\fR message is received from the router.
|
||||
The address will also be excluded from consideration if the host receives an
|
||||
\fBadvertise\fR
|
||||
message with the preference being maximally negative.
|
||||
.PP
|
||||
Server side of router discovery protocol is supported by Cisco IOS
|
||||
and by any more or less complete UNIX routing daemon, f.e \fBgated\fR.
|
||||
.SH "OPTIONS"
|
||||
.TP
|
||||
\fB-a\fR
|
||||
Accept all routers independently of the preference they have in their
|
||||
\fBadvertise\fR messages.
|
||||
Normally \fBrdisc\fR only accepts (and enters in the kernel routing
|
||||
tables) the router or routers with the highest preference.
|
||||
.TP
|
||||
\fB-b\fR
|
||||
Opposite to \fB-a\fR, i.e. install only router with the best
|
||||
preference value. It is default behaviour.
|
||||
.TP
|
||||
\fB-d\fR
|
||||
Send debugging messages to syslog.
|
||||
.TP
|
||||
\fB-f\fR
|
||||
Run \fBrdisc\fR forever even if no routers are found.
|
||||
Normally \fBrdisc\fR gives up if it has not received any
|
||||
\fBadvertise\fR message after after soliciting three times,
|
||||
in which case it exits with a non-zero exit code.
|
||||
If \fB-f\fR is not specified in the first form then
|
||||
\fB-s\fR must be specified.
|
||||
.TP
|
||||
\fB-s\fR
|
||||
Send three \fBsolicitation\fR messages initially to quickly discover
|
||||
the routers when the system is booted.
|
||||
When \fB-s\fR is specified \fBrdisc\fR
|
||||
exits with a non-zero exit code if it can not find any routers.
|
||||
This can be overridden with the \fB-f\fR option.
|
||||
.TP
|
||||
\fB-t\fR
|
||||
Test mode. Do not go to background.
|
||||
.TP
|
||||
\fB-v\fR
|
||||
Be verbose i.e. send lots of debugging messages to syslog.
|
||||
.TP
|
||||
\fB-V\fR
|
||||
Print version and exit.
|
||||
.SH "HISTORY"
|
||||
.PP
|
||||
This program was developed by Sun Microsystems (see copyright
|
||||
notice in source file). It was ported to Linux by
|
||||
Alexey Kuznetsov
|
||||
<kuznet@ms2.inr.ac.ru>.
|
||||
It is now maintained by
|
||||
YOSHIFUJI Hideaki
|
||||
<yoshfuji@skbuff.net>.
|
||||
.SH "SEE ALSO"
|
||||
.PP
|
||||
\fBicmp\fR(7),
|
||||
\fBinet\fR(7),
|
||||
\fBping\fR(8).
|
||||
.SH "REFERENCES"
|
||||
.PP
|
||||
Deering, S.E.,ed "ICMP Router Discovery Messages",
|
||||
RFC1256, Network Information Center, SRI International,
|
||||
Menlo Park, Calif., September 1991.
|
||||
.SH "SECURITY"
|
||||
.PP
|
||||
\fBrdisc\fR requires CAP_NET_RAWIO to listen
|
||||
and send ICMP messages and capability CAP_NET_ADMIN
|
||||
to update routing tables.
|
||||
.SH "AVAILABILITY"
|
||||
.PP
|
||||
\fBrdisc\fR is part of \fIiputils\fR package
|
||||
and the latest versions are available in source form at
|
||||
http://www.skbuff.net/iputils/iputils-current.tar.bz2.
|
||||
@@ -0,0 +1,97 @@
|
||||
.\" This manpage has been automatically generated by docbook2man
|
||||
.\" from a DocBook document. This tool can be found at:
|
||||
.\" <http://shell.ipoline.com/~elmert/comp/docbook2X/>
|
||||
.\" Please send any bug reports, improvements, comments, patches,
|
||||
.\" etc. to Steve Cheng <steve@ggi-project.org>.
|
||||
.TH "TRACEPATH" "8" "24 Mayıs 2011" "iputils-101006" "System Manager's Manual: iputils"
|
||||
.SH NAME
|
||||
tracepath, tracepath6 \- traces path to a network host discovering MTU along this path
|
||||
.SH SYNOPSIS
|
||||
|
||||
\fBtracepath\fR [ \fB-n\fR] [ \fB-b\fR] [ \fB-l \fIpktlen\fB\fR] \fB\fIdestination\fB\fR [ \fB\fIport\fB\fR]
|
||||
|
||||
.SH "DESCRIPTION"
|
||||
.PP
|
||||
It traces path to \fIdestination\fR discovering MTU along this path.
|
||||
It uses UDP port \fIport\fR or some random port.
|
||||
It is similar to \fBtraceroute\fR, only does not require superuser
|
||||
privileges and has no fancy options.
|
||||
.PP
|
||||
\fBtracepath6\fR is good replacement for \fBtraceroute6\fR
|
||||
and classic example of application of Linux error queues.
|
||||
The situation with IPv4 is worse, because commercial
|
||||
IP routers do not return enough information in ICMP error messages.
|
||||
Probably, it will change, when they will be updated.
|
||||
For now it uses Van Jacobson's trick, sweeping a range
|
||||
of UDP ports to maintain trace history.
|
||||
.SH "OPTIONS"
|
||||
.TP
|
||||
\fB-n\fR
|
||||
Print primarily IP addresses numerically.
|
||||
.TP
|
||||
\fB-b\fR
|
||||
Print both of host names and IP addresses.
|
||||
.TP
|
||||
\fB-l\fR
|
||||
Sets the initial packet length to \fIpktlen\fR instead of
|
||||
65536 for \fBtracepath\fR or 128000 for \fBtracepath6\fR.
|
||||
.SH "OUTPUT"
|
||||
.PP
|
||||
|
||||
.nf
|
||||
root@mops:~ # tracepath6 3ffe:2400:0:109::2
|
||||
1?: [LOCALHOST] pmtu 1500
|
||||
1: dust.inr.ac.ru 0.411ms
|
||||
2: dust.inr.ac.ru asymm 1 0.390ms pmtu 1480
|
||||
2: 3ffe:2400:0:109::2 463.514ms reached
|
||||
Resume: pmtu 1480 hops 2 back 2
|
||||
.fi
|
||||
.PP
|
||||
The first column shows TTL of the probe, followed by colon.
|
||||
Usually value of TTL is obtained from reply from network,
|
||||
but sometimes reply does not contain necessary information and
|
||||
we have to guess it. In this case the number is followed by ?.
|
||||
.PP
|
||||
The second column shows the network hop, which replied to the probe.
|
||||
It is either address of router or word [LOCALHOST], if
|
||||
the probe was not sent to the network.
|
||||
.PP
|
||||
The rest of line shows miscellaneous information about path to
|
||||
the correspinding network hop. As rule it contains value of RTT.
|
||||
Additionally, it can show Path MTU, when it changes.
|
||||
If the path is asymmetric
|
||||
or the probe finishes before it reach prescribed hop, difference
|
||||
between number of hops in forward and backward direction is shown
|
||||
following keyword async. This information is not reliable.
|
||||
F.e. the third line shows asymmetry of 1, it is because the first probe
|
||||
with TTL of 2 was rejected at the first hop due to Path MTU Discovery.
|
||||
.PP
|
||||
The last line summarizes information about all the path to the destination,
|
||||
it shows detected Path MTU, amount of hops to the destination and our
|
||||
guess about amount of hops from the destination to us, which can be
|
||||
different when the path is asymmetric.
|
||||
.SH "SEE ALSO"
|
||||
.PP
|
||||
\fBtraceroute\fR(8),
|
||||
\fBtraceroute6\fR(8),
|
||||
\fBping\fR(8).
|
||||
.SH "AUTHOR"
|
||||
.PP
|
||||
\fBtracepath\fR was written by
|
||||
Alexey Kuznetsov
|
||||
<kuznet@ms2.inr.ac.ru>.
|
||||
.SH "SECURITY"
|
||||
.PP
|
||||
No security issues.
|
||||
.PP
|
||||
This lapidary deserves to be elaborated.
|
||||
\fBtracepath\fR is not a privileged program, unlike
|
||||
\fBtraceroute\fR, \fBping\fR and other beasts of this kind.
|
||||
\fBtracepath\fR may be executed by everyone who has some access
|
||||
to network, enough to send UDP datagrams to investigated destination
|
||||
using given port.
|
||||
.SH "AVAILABILITY"
|
||||
.PP
|
||||
\fBtracepath\fR is part of \fIiputils\fR package
|
||||
and the latest versions are available in source form at
|
||||
http://www.skbuff.net/iputils/iputils-current.tar.bz2.
|
||||
@@ -0,0 +1,42 @@
|
||||
.\" This manpage has been automatically generated by docbook2man
|
||||
.\" from a DocBook document. This tool can be found at:
|
||||
.\" <http://shell.ipoline.com/~elmert/comp/docbook2X/>
|
||||
.\" Please send any bug reports, improvements, comments, patches,
|
||||
.\" etc. to Steve Cheng <steve@ggi-project.org>.
|
||||
.TH "TRACEROUTE6" "8" "24 Mayıs 2011" "iputils-101006" "System Manager's Manual: iputils"
|
||||
.SH NAME
|
||||
traceroute6 \- traces path to a network host
|
||||
.SH SYNOPSIS
|
||||
|
||||
\fBtraceroute6\fR [ \fB-dnrvV\fR] [ \fB-i \fIinterface\fB\fR] [ \fB-m \fImax_ttl\fB\fR] [ \fB-p \fIport\fB\fR] [ \fB-q \fImax_probes\fB\fR] [ \fB-s \fIsource\fB\fR] [ \fB-w \fIwait time\fB\fR] \fB\fIdestination\fB\fR [ \fB\fIsize\fB\fR]
|
||||
|
||||
.SH "DESCRIPTION"
|
||||
.PP
|
||||
Description can be found in
|
||||
\fBtraceroute\fR(8),
|
||||
all the references to IP replaced to IPv6. It is needless to copy
|
||||
the description from there.
|
||||
.SH "SEE ALSO"
|
||||
.PP
|
||||
\fBtraceroute\fR(8),
|
||||
\fBtracepath\fR(8),
|
||||
\fBping\fR(8).
|
||||
.SH "HISTORY"
|
||||
.PP
|
||||
This program has long history. Author of \fBtraceroute\fR
|
||||
is Van Jacobson and it first appeared in 1988. This clone is
|
||||
based on a port of \fBtraceroute\fR to IPv6 published
|
||||
in NRL IPv6 distribution in 1996. In turn, it was ported
|
||||
to Linux by Pedro Roque. After this it was kept in sync by
|
||||
Alexey Kuznetsov
|
||||
<kuznet@ms2.inr.ac.ru>. And eventually entered
|
||||
\fBiputils\fR package.
|
||||
.SH "SECURITY"
|
||||
.PP
|
||||
\fBtracepath6\fR requires CAP_NET_RAWIO capability
|
||||
to be executed. It is safe to be used as set-uid root.
|
||||
.SH "AVAILABILITY"
|
||||
.PP
|
||||
\fBtraceroute6\fR is part of \fIiputils\fR package
|
||||
and the latest versions are available in source form at
|
||||
http://www.skbuff.net/iputils/iputils-current.tar.bz2.
|
||||
@@ -0,0 +1,131 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>iputils</Name>
|
||||
<Homepage>http://www.linux-ipv6.org</Homepage>
|
||||
<Packager>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>BSD</License>
|
||||
<IsA>app:console</IsA>
|
||||
<Summary>Network monitoring tools including ping and ping6</Summary>
|
||||
<Description>iputils contains network monitoring tools including ping and ping6.</Description>
|
||||
<Archive sha1sum="4d56d8c75d6a5d58f052e4056e975f01ebab9ba9" type="tarbz2">http://www.skbuff.net/iputils/iputils-s20121221.tar.bz2</Archive>
|
||||
<AdditionalFiles>
|
||||
<!-- Taken from linux-2.6.git/Documentation/networking and applied fedora's iputils-ifenslave.patch on top of it -->
|
||||
<AdditionalFile target="ifenslave.c">ifenslave/ifenslave.c</AdditionalFile>
|
||||
</AdditionalFiles>
|
||||
<BuildDependencies>
|
||||
<Dependency>openssl-devel</Dependency>
|
||||
<Dependency>libidn-devel</Dependency>
|
||||
<Dependency>gnutls-devel</Dependency>
|
||||
<Dependency>libcap-devel</Dependency>
|
||||
<!-- needed for generating man pages, see below
|
||||
<Dependency>docbook-utils</Dependency>
|
||||
-->
|
||||
</BuildDependencies>
|
||||
<Patches>
|
||||
<Patch level="1">021109-uclibc-no-ether_ntohost.patch</Patch>
|
||||
<!--<Patch level="1">iputils-20100418-printf-size.patch</Patch>-->
|
||||
<Patch level="1">iputils-20121221-printf-size.patch</Patch>
|
||||
<Patch level="1">iputils-20121221-owl-pingsock.diff</Patch>
|
||||
<Patch level="1">iputils-20121221-openssl.patch</Patch>
|
||||
<Patch level="1">iputils-20121221-makefile.patch</Patch>
|
||||
<Patch level="1">iputils-20121221-crypto-build.patch</Patch>
|
||||
<Patch level="0">iputils-20100418-so_mark.patch</Patch>
|
||||
<Patch level="1">iputils-20071127-nonroot-floodping.patch</Patch>
|
||||
<Patch level="1">iputils-20071127-kernel-ifaddr.patch</Patch>
|
||||
|
||||
<!-- Fedora patches -->
|
||||
<!--<Patch level="1">fedora/iputils-20020927-rh.patch</Patch>-->
|
||||
<Patch level="1">fedora/iputils-20020124-countermeasures.patch</Patch>
|
||||
<!--<Patch level="1">fedora/iputils-20020927-addrcache.patch</Patch>-->
|
||||
<Patch level="1">fedora/iputils-20020927-ping-subint.patch</Patch>
|
||||
<!--<Patch level="1">fedora/iputils-ping_cleanup.patch</Patch>
|
||||
<Patch level="1">fedora/iputils-20070202-idn.patch</Patch>-->
|
||||
<Patch level="1">fedora/iputils-20070202-traffic_class.patch</Patch>
|
||||
<!--<Patch level="1">fedora/iputils-20070202-ia64_align.patch</Patch>
|
||||
<Patch level="1">fedora/iputils-20071127-warnings.patch</Patch>
|
||||
<Patch level="1">fedora/iputils-20071127-corr_type.patch</Patch>
|
||||
<Patch level="1">fedora/iputils-20071127-infiniband.patch</Patch>-->
|
||||
<Patch level="1">fedora/iputils-20100418-convtoint.patch</Patch>
|
||||
<!--<Patch level="1">fedora/iputils-20100418-flowlabel.patch</Patch>-->
|
||||
|
||||
<!-- We don't have capability setting support in PiSi, disable this
|
||||
<Patch level="1">fedora/iputils-20101006-drop_caps.patch</Patch>
|
||||
-->
|
||||
|
||||
<!--<Patch level="1">fedora/iputils-20101006-unused.patch</Patch>
|
||||
<Patch level="1">fedora/iputils-20101006-man.patch</Patch>-->
|
||||
|
||||
<Patch level="1">docs.patch</Patch>
|
||||
</Patches>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>iputils</Name>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>libcap</Dependency>
|
||||
<Dependency>gnutls</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="executable">/bin</Path>
|
||||
<Path fileType="executable">/usr/bin</Path>
|
||||
<Path fileType="executable">/usr/sbin</Path>
|
||||
<Path fileType="executable">/sbin</Path>
|
||||
<Path fileType="data">/lib/systemd/system</Path>
|
||||
<Path fileType="config">/etc/conf.d/rdisc</Path>
|
||||
<Path fileType="doc">/usr/share/doc</Path>
|
||||
<Path fileType="man">/usr/share/man</Path>
|
||||
</Files>
|
||||
<AdditionalFiles>
|
||||
<!-- pregenerated man pages, update if necessary. -->
|
||||
<AdditionalFile owner="root" permission="0644" target="/usr/share/man/man8/arping.8">man/arping.8</AdditionalFile>
|
||||
<AdditionalFile owner="root" permission="0644" target="/usr/share/man/man8/clockdiff.8">man/clockdiff.8</AdditionalFile>
|
||||
<AdditionalFile owner="root" permission="0644" target="/usr/share/man/man8/ping.8">man/ping.8</AdditionalFile>
|
||||
<AdditionalFile owner="root" permission="0644" target="/usr/share/man/man8/rarpd.8">man/rarpd.8</AdditionalFile>
|
||||
<AdditionalFile owner="root" permission="0644" target="/usr/share/man/man8/rdisc.8">man/rdisc.8</AdditionalFile>
|
||||
<AdditionalFile owner="root" permission="0644" target="/usr/share/man/man8/tracepath.8">man/tracepath.8</AdditionalFile>
|
||||
<AdditionalFile owner="root" permission="0644" target="/usr/share/man/man8/traceroute6.8">man/traceroute6.8</AdditionalFile>
|
||||
<AdditionalFile owner="root" permission="0644" target="/usr/share/man/man8/ifenslave.8">ifenslave/ifenslave.8</AdditionalFile>
|
||||
<AdditionalFile owner="root" permission="0644" target="/usr/share/doc/iputils/README.bonding">ifenslave/README.bonding</AdditionalFile>
|
||||
|
||||
<!-- Add systemd files for rdisc daemon -->
|
||||
<AdditionalFile owner="root" permission="0644" target="/etc/conf.d/rdisc">fedora/rdisc.sysconfig</AdditionalFile>
|
||||
<AdditionalFile owner="root" permission="0644" target="/lib/systemd/system/rdisc.service">fedora/rdisc.service</AdditionalFile>
|
||||
</AdditionalFiles>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="4">
|
||||
<Date>2014-05-11</Date>
|
||||
<Version>20121221</Version>
|
||||
<Comment>Release bump.</Comment>
|
||||
<Name>Marcin Bojara</Name>
|
||||
<Email>marcin@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="3">
|
||||
<Date>2013-07-26</Date>
|
||||
<Version>20121221</Version>
|
||||
<Comment>Fix dep, release bump.</Comment>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="2">
|
||||
<Date>2013-01-14</Date>
|
||||
<Version>20121221</Version>
|
||||
<Comment>New release</Comment>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="1">
|
||||
<Date>2012-08-23</Date>
|
||||
<Version>20101006</Version>
|
||||
<Comment>First release</Comment>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" ?>
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>iputils</Name>
|
||||
<Summary xml:lang="tr">ping ve ping6 uygulamalarını da içeren ağ izleme araçları</Summary>
|
||||
<Description xml:lang="tr">Iputils, ping ve ping6 gibi ağ izleme araçlarını içeren bir pakettir.</Description>
|
||||
<Description xml:lang="fr">Iputils contient les outils de surveillance réseau incluant ping et ping6.</Description>
|
||||
</Source>
|
||||
</PISI>
|
||||
@@ -0,0 +1,27 @@
|
||||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Licensed under the GNU General Public License, version 3.
|
||||
# See the file http://www.gnu.org/copyleft/gpl.txt.
|
||||
|
||||
from pisi.actionsapi import pythonmodules
|
||||
from pisi.actionsapi import shelltools
|
||||
from pisi.actionsapi import pisitools
|
||||
from pisi.actionsapi import get
|
||||
|
||||
WorkDir = "lxml-%s" % get.srcVERSION()
|
||||
|
||||
def build():
|
||||
# remove the C extension so that it will be rebuild using the latest Cython
|
||||
shelltools.unlink("src/lxml/lxml.etree.c")
|
||||
shelltools.unlink("src/lxml/lxml.etree_api.h")
|
||||
shelltools.unlink("src/lxml/lxml.objectify.c")
|
||||
|
||||
pythonmodules.compile()
|
||||
|
||||
def install():
|
||||
pythonmodules.install()
|
||||
|
||||
pisitools.insinto("%s/%s" % (get.docDIR(), get.srcNAME()),"doc/*")
|
||||
|
||||
pisitools.dodoc("CHANGES.txt", "LICENSES.txt", "TODO.txt")
|
||||
@@ -0,0 +1,81 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>python-lxml</Name>
|
||||
<Homepage>http://codespeak.net/lxml</Homepage>
|
||||
<Packager>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>GPLv2</License>
|
||||
<License>BSD</License>
|
||||
<IsA>library</IsA>
|
||||
<Summary>lxml is the most feature-rich and easy-to-use library</Summary>
|
||||
<Description>lxml is the most feature-rich and easy-to-use library for working with XML and HTML in the Python language.</Description>
|
||||
<Archive sha1sum="7a6e92f8ca482aab79835e1c9cd8410400792cd9" type="targz">http://lxml.de/files/lxml-3.3.5.tgz</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency>libxml2-devel</Dependency>
|
||||
<Dependency>python-devel</Dependency>
|
||||
<Dependency>cython</Dependency>
|
||||
<Dependency>libxslt-devel</Dependency>
|
||||
</BuildDependencies>
|
||||
<Patches>
|
||||
<!--<Patch level="1">python-lxml-2.2.6-fix-2to3.patch</Patch>-->
|
||||
</Patches>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>python-lxml</Name>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>libxslt</Dependency>
|
||||
<Dependency>libxml2</Dependency>
|
||||
<Dependency>python</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="library">/usr/lib</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>python-lxml-docs</Name>
|
||||
<Summary>API documentation of python-lxml</Summary>
|
||||
<RuntimeDependencies>
|
||||
<Dependency release="current">python-lxml</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="doc">/usr/share/doc</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="4">
|
||||
<Date>2014-07-05</Date>
|
||||
<Version>3.3.5</Version>
|
||||
<Comment>Version bump</Comment>
|
||||
<Name>Vedat Demir</Name>
|
||||
<Email>vedat@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="3">
|
||||
<Date>2013-11-07</Date>
|
||||
<Version>3.2.4</Version>
|
||||
<Comment>Version bump</Comment>
|
||||
<Name>Burak Fazıl Ertürk</Name>
|
||||
<Email>burakerturk@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="2">
|
||||
<Date>2013-07-28</Date>
|
||||
<Version>3.0.1</Version>
|
||||
<Comment>Dep Fixed</Comment>
|
||||
<Name>Osman Erkan</Name>
|
||||
<Email>osman.erkan@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="1">
|
||||
<Date>2012-10-24</Date>
|
||||
<Version>3.0.1</Version>
|
||||
<Comment>First release</Comment>
|
||||
<Name>Yusuf Aydemir</Name>
|
||||
<Email>yusuf.aydemir@pisilinux.org</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" ?>
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>python-lxml</Name>
|
||||
<Summary xml:lang="tr">Zengin içerikli ve kolay kullanımlı bir kütüphane.</Summary>
|
||||
<Description xml:lang="tr">Python dilinde xml ve html ile çalışmak için, zengin içerikli ve kolay kullanımlı bir kütüphane.</Description>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>python-lxml-docs</Name>
|
||||
<Summary xml:lang="tr">python-lxml paketine ait API belgeleri</Summary>
|
||||
</Package>
|
||||
</PISI>
|
||||
Reference in New Issue
Block a user