1*bd1f8aebSAndroid Build Coastguard Worker<refentry id="arping"> 2*bd1f8aebSAndroid Build Coastguard Worker 3*bd1f8aebSAndroid Build Coastguard Worker<refmeta> 4*bd1f8aebSAndroid Build Coastguard Worker<refentrytitle>arping</refentrytitle> 5*bd1f8aebSAndroid Build Coastguard Worker<manvolnum>8</manvolnum> 6*bd1f8aebSAndroid Build Coastguard Worker<refmiscinfo>iputils-&snapshot;</refmiscinfo> 7*bd1f8aebSAndroid Build Coastguard Worker</refmeta> 8*bd1f8aebSAndroid Build Coastguard Worker 9*bd1f8aebSAndroid Build Coastguard Worker 10*bd1f8aebSAndroid Build Coastguard Worker<refnamediv> 11*bd1f8aebSAndroid Build Coastguard Worker<refname>arping</refname> 12*bd1f8aebSAndroid Build Coastguard Worker<refpurpose>send ARP REQUEST to a neighbour host</refpurpose> 13*bd1f8aebSAndroid Build Coastguard Worker</refnamediv> 14*bd1f8aebSAndroid Build Coastguard Worker 15*bd1f8aebSAndroid Build Coastguard Worker<refsynopsisdiv> 16*bd1f8aebSAndroid Build Coastguard Worker<cmdsynopsis> 17*bd1f8aebSAndroid Build Coastguard Worker<command>arping</command> 18*bd1f8aebSAndroid Build Coastguard Worker<arg choice="opt"><option>-AbDfhqUV</option></arg> 19*bd1f8aebSAndroid Build Coastguard Worker<arg choice="opt">-c <replaceable/count/</arg> 20*bd1f8aebSAndroid Build Coastguard Worker<arg choice="opt">-w <replaceable/deadline/</arg> 21*bd1f8aebSAndroid Build Coastguard Worker<arg choice="opt">-s <replaceable/source/</arg> 22*bd1f8aebSAndroid Build Coastguard Worker<arg choice="req">-I <replaceable/interface/</arg> 23*bd1f8aebSAndroid Build Coastguard Worker<arg choice="req"><replaceable/destination/</arg> 24*bd1f8aebSAndroid Build Coastguard Worker</cmdsynopsis> 25*bd1f8aebSAndroid Build Coastguard Worker</refsynopsisdiv> 26*bd1f8aebSAndroid Build Coastguard Worker 27*bd1f8aebSAndroid Build Coastguard Worker<refsect1><title>DESCRIPTION</title> 28*bd1f8aebSAndroid Build Coastguard Worker<para> 29*bd1f8aebSAndroid Build Coastguard WorkerPing <replaceable/destination/ on device <replaceable/interface/ by ARP packets, 30*bd1f8aebSAndroid Build Coastguard Workerusing source address <replaceable/source/. 31*bd1f8aebSAndroid Build Coastguard Worker</para> 32*bd1f8aebSAndroid Build Coastguard Worker</refsect1> 33*bd1f8aebSAndroid Build Coastguard Worker 34*bd1f8aebSAndroid Build Coastguard Worker<refsect1><title>OPTIONS</title> 35*bd1f8aebSAndroid Build Coastguard Worker 36*bd1f8aebSAndroid Build Coastguard Worker<variablelist> 37*bd1f8aebSAndroid Build Coastguard Worker 38*bd1f8aebSAndroid Build Coastguard Worker <varlistentry> 39*bd1f8aebSAndroid Build Coastguard Worker <term><option/-A/</term> 40*bd1f8aebSAndroid Build Coastguard Worker <listitem><para> 41*bd1f8aebSAndroid Build Coastguard WorkerThe same as <option/-U/, but ARP REPLY packets used instead 42*bd1f8aebSAndroid Build Coastguard Workerof ARP REQUEST. 43*bd1f8aebSAndroid Build Coastguard Worker </para></listitem> 44*bd1f8aebSAndroid Build Coastguard Worker </varlistentry> 45*bd1f8aebSAndroid Build Coastguard Worker 46*bd1f8aebSAndroid Build Coastguard Worker <varlistentry> 47*bd1f8aebSAndroid Build Coastguard Worker <term><option>-b</option></term> 48*bd1f8aebSAndroid Build Coastguard Worker <listitem><para> 49*bd1f8aebSAndroid Build Coastguard WorkerSend only MAC level broadcasts. Normally <command/arping/ starts 50*bd1f8aebSAndroid Build Coastguard Workerfrom sending broadcast, and switch to unicast after reply received. 51*bd1f8aebSAndroid Build Coastguard Worker </para></listitem> 52*bd1f8aebSAndroid Build Coastguard Worker </varlistentry> 53*bd1f8aebSAndroid Build Coastguard Worker 54*bd1f8aebSAndroid Build Coastguard Worker 55*bd1f8aebSAndroid Build Coastguard Worker <varlistentry> 56*bd1f8aebSAndroid Build Coastguard Worker <term><option><anchor id="arping.count">-c <replaceable/count/</option></term> 57*bd1f8aebSAndroid Build Coastguard Worker <listitem><para> 58*bd1f8aebSAndroid Build Coastguard WorkerStop after sending <replaceable/count/ ARP REQUEST 59*bd1f8aebSAndroid Build Coastguard Workerpackets. With 60*bd1f8aebSAndroid Build Coastguard Worker<link linkend="arping.deadline"><replaceable/deadline/</link> 61*bd1f8aebSAndroid Build Coastguard Workeroption, <command/arping/ waits for 62*bd1f8aebSAndroid Build Coastguard Worker<replaceable/count/ ARP REPLY packets, until the timeout expires. 63*bd1f8aebSAndroid Build Coastguard Worker </para></listitem> 64*bd1f8aebSAndroid Build Coastguard Worker </varlistentry> 65*bd1f8aebSAndroid Build Coastguard Worker 66*bd1f8aebSAndroid Build Coastguard Worker <varlistentry> 67*bd1f8aebSAndroid Build Coastguard Worker <term><option/-D/</term> 68*bd1f8aebSAndroid Build Coastguard Worker <listitem><para> 69*bd1f8aebSAndroid Build Coastguard WorkerDuplicate address detection mode (DAD). See 70*bd1f8aebSAndroid Build Coastguard Worker<ulink url="http://tools.ietf.org/rfc/rfc2131.txt">RFC2131, 4.4.1</ulink>. 71*bd1f8aebSAndroid Build Coastguard WorkerReturns 0, if DAD succeeded i.e. no replies are received 72*bd1f8aebSAndroid Build Coastguard Worker </para></listitem> 73*bd1f8aebSAndroid Build Coastguard Worker </varlistentry> 74*bd1f8aebSAndroid Build Coastguard Worker 75*bd1f8aebSAndroid Build Coastguard Worker <varlistentry> 76*bd1f8aebSAndroid Build Coastguard Worker <term><option>-f</option></term> 77*bd1f8aebSAndroid Build Coastguard Worker <listitem><para> 78*bd1f8aebSAndroid Build Coastguard WorkerFinish after the first reply confirming that target is alive. 79*bd1f8aebSAndroid Build Coastguard Worker </para></listitem> 80*bd1f8aebSAndroid Build Coastguard Worker </varlistentry> 81*bd1f8aebSAndroid Build Coastguard Worker 82*bd1f8aebSAndroid Build Coastguard Worker <varlistentry> 83*bd1f8aebSAndroid Build Coastguard Worker <term><option><anchor id="opt.interface">-I <replaceable/interface/</option></term> 84*bd1f8aebSAndroid Build Coastguard Worker <listitem><para> 85*bd1f8aebSAndroid Build Coastguard WorkerName of network device where to send ARP REQUEST packets. 86*bd1f8aebSAndroid Build Coastguard Worker </para></listitem> 87*bd1f8aebSAndroid Build Coastguard Worker </varlistentry> 88*bd1f8aebSAndroid Build Coastguard Worker 89*bd1f8aebSAndroid Build Coastguard Worker <varlistentry> 90*bd1f8aebSAndroid Build Coastguard Worker <term><option>-h</option></term> 91*bd1f8aebSAndroid Build Coastguard Worker <listitem><para> 92*bd1f8aebSAndroid Build Coastguard WorkerPrint help page and exit. 93*bd1f8aebSAndroid Build Coastguard Worker </para></listitem> 94*bd1f8aebSAndroid Build Coastguard Worker </varlistentry> 95*bd1f8aebSAndroid Build Coastguard Worker 96*bd1f8aebSAndroid Build Coastguard Worker 97*bd1f8aebSAndroid Build Coastguard Worker <varlistentry> 98*bd1f8aebSAndroid Build Coastguard Worker <term><option/-q/</term> 99*bd1f8aebSAndroid Build Coastguard Worker <listitem><para> 100*bd1f8aebSAndroid Build Coastguard WorkerQuiet output. Nothing is displayed. 101*bd1f8aebSAndroid Build Coastguard Worker </para></listitem> 102*bd1f8aebSAndroid Build Coastguard Worker </varlistentry> 103*bd1f8aebSAndroid Build Coastguard Worker 104*bd1f8aebSAndroid Build Coastguard Worker <varlistentry> 105*bd1f8aebSAndroid Build Coastguard Worker <term><option><anchor id="opt.source">-s <replaceable/source/</option></term> 106*bd1f8aebSAndroid Build Coastguard Worker <listitem><para> 107*bd1f8aebSAndroid Build Coastguard WorkerIP source address to use in ARP packets. 108*bd1f8aebSAndroid Build Coastguard WorkerIf this option is absent, source address is: 109*bd1f8aebSAndroid Build Coastguard Worker <itemizedlist> 110*bd1f8aebSAndroid Build Coastguard Worker <listitem><para> 111*bd1f8aebSAndroid Build Coastguard WorkerIn DAD mode (with option <option/-D/) set to 0.0.0.0. 112*bd1f8aebSAndroid Build Coastguard Worker </para></listitem> 113*bd1f8aebSAndroid Build Coastguard Worker <listitem><para> 114*bd1f8aebSAndroid Build Coastguard WorkerIn Unsolicited ARP mode (with options <option/-U/ or <option/-A/) 115*bd1f8aebSAndroid Build Coastguard Workerset to <replaceable/destination/. 116*bd1f8aebSAndroid Build Coastguard Worker </para></listitem> 117*bd1f8aebSAndroid Build Coastguard Worker <listitem><para> 118*bd1f8aebSAndroid Build Coastguard WorkerOtherwise, it is calculated from routing tables. 119*bd1f8aebSAndroid Build Coastguard Worker </para></listitem> 120*bd1f8aebSAndroid Build Coastguard Worker </itemizedlist> 121*bd1f8aebSAndroid Build Coastguard Worker </para></listitem> 122*bd1f8aebSAndroid Build Coastguard Worker </varlistentry> 123*bd1f8aebSAndroid Build Coastguard Worker 124*bd1f8aebSAndroid Build Coastguard Worker <varlistentry> 125*bd1f8aebSAndroid Build Coastguard Worker <term><option/-U/</term> 126*bd1f8aebSAndroid Build Coastguard Worker <listitem><para> 127*bd1f8aebSAndroid Build Coastguard WorkerUnsolicited ARP mode to update neighbours' ARP caches. 128*bd1f8aebSAndroid Build Coastguard WorkerNo replies are expected. 129*bd1f8aebSAndroid Build Coastguard Worker </para></listitem> 130*bd1f8aebSAndroid Build Coastguard Worker </varlistentry> 131*bd1f8aebSAndroid Build Coastguard Worker 132*bd1f8aebSAndroid Build Coastguard Worker <varlistentry> 133*bd1f8aebSAndroid Build Coastguard Worker <term><option>-V</option></term> 134*bd1f8aebSAndroid Build Coastguard Worker <listitem><para> 135*bd1f8aebSAndroid Build Coastguard WorkerPrint version of the program and exit. 136*bd1f8aebSAndroid Build Coastguard Worker </para></listitem> 137*bd1f8aebSAndroid Build Coastguard Worker </varlistentry> 138*bd1f8aebSAndroid Build Coastguard Worker 139*bd1f8aebSAndroid Build Coastguard Worker 140*bd1f8aebSAndroid Build Coastguard Worker <varlistentry> 141*bd1f8aebSAndroid Build Coastguard Worker <term><option><anchor id="arping.deadline">-w <replaceable/deadline/</option></term> 142*bd1f8aebSAndroid Build Coastguard Worker <listitem><para> 143*bd1f8aebSAndroid Build Coastguard WorkerSpecify a timeout, in seconds, before 144*bd1f8aebSAndroid Build Coastguard Worker<command/arping/ 145*bd1f8aebSAndroid Build Coastguard Workerexits regardless of how many 146*bd1f8aebSAndroid Build Coastguard Workerpackets have been sent or received. In this case 147*bd1f8aebSAndroid Build Coastguard Worker<command/arping/ 148*bd1f8aebSAndroid Build Coastguard Workerdoes not stop after 149*bd1f8aebSAndroid Build Coastguard Worker<link linkend="arping.count"><replaceable/count/</link> 150*bd1f8aebSAndroid Build Coastguard Workerpacket are sent, it waits either for 151*bd1f8aebSAndroid Build Coastguard Worker<link linkend="arping.deadline"><replaceable/deadline/</link> 152*bd1f8aebSAndroid Build Coastguard Workerexpire or until 153*bd1f8aebSAndroid Build Coastguard Worker<link linkend="arping.count"><replaceable/count/</link> 154*bd1f8aebSAndroid Build Coastguard Workerprobes are answered. 155*bd1f8aebSAndroid Build Coastguard Worker </para></listitem> 156*bd1f8aebSAndroid Build Coastguard Worker </varlistentry> 157*bd1f8aebSAndroid Build Coastguard Worker</variablelist> 158*bd1f8aebSAndroid Build Coastguard Worker</refsect1> 159*bd1f8aebSAndroid Build Coastguard Worker 160*bd1f8aebSAndroid Build Coastguard Worker<refsect1><title>SEE ALSO</title> 161*bd1f8aebSAndroid Build Coastguard Worker<para> 162*bd1f8aebSAndroid Build Coastguard Worker<link linkend="ping"> 163*bd1f8aebSAndroid Build Coastguard Worker<citerefentry><refentrytitle/ping/<manvolnum/8/</citerefentry></link>, 164*bd1f8aebSAndroid Build Coastguard Worker<link linkend="clockdiff"> 165*bd1f8aebSAndroid Build Coastguard Worker<citerefentry><refentrytitle/clockdiff/<manvolnum/8/</citerefentry></link>, 166*bd1f8aebSAndroid Build Coastguard Worker<link linkend="tracepath"> 167*bd1f8aebSAndroid Build Coastguard Worker<citerefentry><refentrytitle/tracepath/<manvolnum/8/</citerefentry></link>. 168*bd1f8aebSAndroid Build Coastguard Worker</para> 169*bd1f8aebSAndroid Build Coastguard Worker</refsect1> 170*bd1f8aebSAndroid Build Coastguard Worker 171*bd1f8aebSAndroid Build Coastguard Worker<refsect1><title>AUTHOR</title> 172*bd1f8aebSAndroid Build Coastguard Worker<para> 173*bd1f8aebSAndroid Build Coastguard Worker<command/arping/ was written by 174*bd1f8aebSAndroid Build Coastguard Worker<ulink url="mailto:[email protected]">Alexey Kuznetsov 175*bd1f8aebSAndroid Build Coastguard Worker<[email protected]></ulink>. 176*bd1f8aebSAndroid Build Coastguard WorkerIt is now maintained by 177*bd1f8aebSAndroid Build Coastguard Worker<ulink url="mailto:[email protected]">YOSHIFUJI Hideaki 178*bd1f8aebSAndroid Build Coastguard Worker<[email protected]></ulink>. 179*bd1f8aebSAndroid Build Coastguard Worker</para> 180*bd1f8aebSAndroid Build Coastguard Worker</refsect1> 181*bd1f8aebSAndroid Build Coastguard Worker 182*bd1f8aebSAndroid Build Coastguard Worker<refsect1><title>SECURITY</title> 183*bd1f8aebSAndroid Build Coastguard Worker<para> 184*bd1f8aebSAndroid Build Coastguard Worker<command/arping/ requires <constant/CAP_NET_RAW/ capability 185*bd1f8aebSAndroid Build Coastguard Workerto be executed. It is not recommended to be used as set-uid root, 186*bd1f8aebSAndroid Build Coastguard Workerbecause it allows user to modify ARP caches of neighbour hosts. 187*bd1f8aebSAndroid Build Coastguard Worker</para> 188*bd1f8aebSAndroid Build Coastguard Worker</refsect1> 189*bd1f8aebSAndroid Build Coastguard Worker 190*bd1f8aebSAndroid Build Coastguard Worker<refsect1><title>AVAILABILITY</title> 191*bd1f8aebSAndroid Build Coastguard Worker<para> 192*bd1f8aebSAndroid Build Coastguard Worker<command/arping/ is part of <filename/iputils/ package 193*bd1f8aebSAndroid Build Coastguard Workerand the latest versions are available in source form at 194*bd1f8aebSAndroid Build Coastguard Worker<ulink url="http://www.skbuff.net/iputils/iputils-current.tar.bz2"> 195*bd1f8aebSAndroid Build Coastguard Workerhttp://www.skbuff.net/iputils/iputils-current.tar.bz2</ulink>. 196*bd1f8aebSAndroid Build Coastguard Worker</para> 197*bd1f8aebSAndroid Build Coastguard Worker</refsect1> 198*bd1f8aebSAndroid Build Coastguard Worker 199*bd1f8aebSAndroid Build Coastguard Worker<![IGNORE[ 200*bd1f8aebSAndroid Build Coastguard Worker<refsect1><title>COPYING</title> 201*bd1f8aebSAndroid Build Coastguard Worker<para> 202*bd1f8aebSAndroid Build Coastguard Worker<literallayout> 203*bd1f8aebSAndroid Build Coastguard WorkerThis documentation is free software; you can redistribute 204*bd1f8aebSAndroid Build Coastguard Workerit and/or modify it under the terms of the GNU General Public 205*bd1f8aebSAndroid Build Coastguard WorkerLicense Version 2. 206*bd1f8aebSAndroid Build Coastguard Worker 207*bd1f8aebSAndroid Build Coastguard WorkerThis program is distributed in the hope that it will be 208*bd1f8aebSAndroid Build Coastguard Workeruseful, but WITHOUT ANY WARRANTY; without even the implied 209*bd1f8aebSAndroid Build Coastguard Workerwarranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 210*bd1f8aebSAndroid Build Coastguard WorkerSee the GNU General Public License for more details. 211*bd1f8aebSAndroid Build Coastguard Worker 212*bd1f8aebSAndroid Build Coastguard WorkerFor more details see the file COPYING in the source 213*bd1f8aebSAndroid Build Coastguard Workerdistribution of Linux kernel of version 2.4. 214*bd1f8aebSAndroid Build Coastguard Worker</literallayout> 215*bd1f8aebSAndroid Build Coastguard Worker</para> 216*bd1f8aebSAndroid Build Coastguard Worker</refsect1> 217*bd1f8aebSAndroid Build Coastguard Worker]]> 218*bd1f8aebSAndroid Build Coastguard Worker 219*bd1f8aebSAndroid Build Coastguard Worker 220*bd1f8aebSAndroid Build Coastguard Worker 221*bd1f8aebSAndroid Build Coastguard Worker</refentry> 222