Import Debian changes 2.08-1
arping (2.08-1) unstable; urgency=low
* New upstream release
* Re-patch new arping.8 for fixing manpage-has-errors-from-man and
hyphen-used-as-minus-sign lintian warnings
* debian/copyright: Updated copyright year and url where arping was
downloaded
Giuseppe Iuculano authored 15 years ago
Salvatore Bonaccorso committed 6 years ago
0 | 0 | GNU GENERAL PUBLIC LICENSE |
1 | 1 | Version 2, June 1991 |
2 | 2 | |
3 | Copyright (C) 1989, 1991 Free Software Foundation, Inc. | |
4 | 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
3 | Copyright (C) 1989, 1991 Free Software Foundation, Inc., | |
4 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | |
5 | 5 | Everyone is permitted to copy and distribute verbatim copies |
6 | 6 | of this license document, but changing it is not allowed. |
7 | 7 | |
14 | 14 | General Public License applies to most of the Free Software |
15 | 15 | Foundation's software and to any other program whose authors commit to |
16 | 16 | using it. (Some other Free Software Foundation software is covered by |
17 | the GNU Library General Public License instead.) You can apply it to | |
17 | the GNU Lesser General Public License instead.) You can apply it to | |
18 | 18 | your programs, too. |
19 | 19 | |
20 | 20 | When we speak of free software, we are referring to freedom, not |
54 | 54 | |
55 | 55 | The precise terms and conditions for copying, distribution and |
56 | 56 | modification follow. |
57 | ||
57 | ||
58 | 58 | GNU GENERAL PUBLIC LICENSE |
59 | 59 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION |
60 | 60 | |
109 | 109 | License. (Exception: if the Program itself is interactive but |
110 | 110 | does not normally print such an announcement, your work based on |
111 | 111 | the Program is not required to print an announcement.) |
112 | ||
112 | ||
113 | 113 | These requirements apply to the modified work as a whole. If |
114 | 114 | identifiable sections of that work are not derived from the Program, |
115 | 115 | and can be reasonably considered independent and separate works in |
167 | 167 | access to copy the source code from the same place counts as |
168 | 168 | distribution of the source code, even though third parties are not |
169 | 169 | compelled to copy the source along with the object code. |
170 | ||
170 | ||
171 | 171 | 4. You may not copy, modify, sublicense, or distribute the Program |
172 | 172 | except as expressly provided under this License. Any attempt |
173 | 173 | otherwise to copy, modify, sublicense or distribute the Program is |
224 | 224 | |
225 | 225 | This section is intended to make thoroughly clear what is believed to |
226 | 226 | be a consequence of the rest of this License. |
227 | ||
227 | ||
228 | 228 | 8. If the distribution and/or use of the Program is restricted in |
229 | 229 | certain countries either by patents or by copyrighted interfaces, the |
230 | 230 | original copyright holder who places the Program under this License |
277 | 277 | POSSIBILITY OF SUCH DAMAGES. |
278 | 278 | |
279 | 279 | END OF TERMS AND CONDITIONS |
280 | ||
280 | ||
281 | 281 | How to Apply These Terms to Your New Programs |
282 | 282 | |
283 | 283 | If you develop a new program, and you want it to be of the greatest |
302 | 302 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
303 | 303 | GNU General Public License for more details. |
304 | 304 | |
305 | You should have received a copy of the GNU General Public License | |
306 | along with this program; if not, write to the Free Software | |
307 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
308 | ||
305 | You should have received a copy of the GNU General Public License along | |
306 | with this program; if not, write to the Free Software Foundation, Inc., | |
307 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | |
309 | 308 | |
310 | 309 | Also add information on how to contact you by electronic and paper mail. |
311 | 310 | |
335 | 334 | This General Public License does not permit incorporating your program into |
336 | 335 | proprietary programs. If your program is a subroutine library, you may |
337 | 336 | consider it more useful to permit linking proprietary applications with the |
338 | library. If this is what you want to do, use the GNU Library General | |
337 | library. If this is what you want to do, use the GNU Lesser General | |
339 | 338 | Public License instead of this License. |
0 | # $Id: Makefile 1893 2007-07-09 22:23:28Z marvin $ | |
0 | # arping/Makefile | |
1 | 1 | TARGETS=arping |
2 | 2 | |
3 | 3 | CD=cd |
4 | 4 | CP=cp |
5 | 5 | TAR=tar |
6 | 6 | GPG=gpg |
7 | GIT=git | |
7 | 8 | MAKE=make |
8 | 9 | RM=rm |
9 | 10 | SUDO=sudo |
116 | 117 | DFILE=arping-$(V).tar.gz |
117 | 118 | DDIR=arping-$(V) |
118 | 119 | dist: |
119 | ($(CD) ..; \ | |
120 | $(CP) -ax arping $(DDIR); \ | |
121 | $(RM) -fr $(DDIR)/{.\#*,CVS,.svn,*~} \ | |
122 | $(DDIR)/arping-2/{.\#*,CVS,.svn,*~}; \ | |
123 | $(MAKE) -C $(DDIR) doc; \ | |
124 | $(TAR) cfz $(DFILE) $(DDIR); \ | |
125 | $(GPG) -b -a $(DFILE); \ | |
126 | ) | |
120 | $(GIT) archive --format=tar --prefix=arping-$(V)/ arping-$(V) | gzip -9 > arping-$(V).tar.gz | |
121 | $(GPG) -b -a $(DFILE) | |
122 | ||
127 | 123 | test: arping2 |
128 | 124 | @echo Testing with destination host=$(HOST) and MAC=$(MAC) |
129 | 125 | @echo IF=$(IF) |
11 | 11 | * |
12 | 12 | * Also finds out IP of specified MAC |
13 | 13 | * |
14 | * $Id: arping.c 1972 2007-09-19 12:35:16Z marvin $ | |
15 | */ | |
16 | /* | |
17 | * Copyright (C) 2000-2002 Thomas Habets <thomas@habets.pp.se> | |
14 | */ | |
15 | /* | |
16 | * Copyright (C) 2000-2008 Thomas Habets <thomas@habets.pp.se> | |
18 | 17 | * |
19 | 18 | * This library is free software; you can redistribute it and/or |
20 | 19 | * modify it under the terms of the GNU General Public |
26 | 25 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
27 | 26 | * General Public License for more details. |
28 | 27 | * |
29 | * You should have received a copy of the GNU General Public | |
30 | * License along with this library; if not, write to the Free Software | |
31 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
28 | * You should have received a copy of the GNU General Public License along | |
29 | * with this program; if not, write to the Free Software Foundation, Inc., | |
30 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | |
32 | 31 | */ |
33 | 32 | //#include "config.h" |
34 | 33 | #include <stdio.h> |
93 | 92 | #define IP_ALEN 4 |
94 | 93 | #endif |
95 | 94 | |
96 | const float version = 2.06f; | |
95 | const float version = 2.08f; | |
97 | 96 | |
98 | 97 | static libnet_t *libnet = 0; |
99 | 98 | |
150 | 149 | /* |
151 | 150 | * |
152 | 151 | */ |
153 | static const char *arping_lookupdev_default(u_int32_t srcip, u_int32_t dstip, | |
154 | char *ebuf) | |
152 | static const char * | |
153 | arping_lookupdev_default(const char *ifname, | |
154 | u_int32_t srcip, u_int32_t dstip, | |
155 | char *ebuf) | |
155 | 156 | { |
156 | 157 | #ifdef WIN32 |
157 | 158 | WCHAR buf[LIBNET_ERRBUF_SIZE + PCAP_ERRBUF_SIZE]; |
170 | 171 | /* |
171 | 172 | * |
172 | 173 | */ |
173 | static const char *arping_lookupdev(u_int32_t srcip, u_int32_t dstip, | |
174 | static const char *arping_lookupdev(const char *ifname, | |
175 | u_int32_t srcip, | |
176 | u_int32_t dstip, | |
174 | 177 | char *ebuf) |
175 | 178 | { |
176 | 179 | FILE *f; |
180 | 183 | char *p,*p2; |
181 | 184 | int n; |
182 | 185 | |
183 | do_libnet_init(NULL); | |
184 | libnet_addr2name4_r(dstip,0,buf2); | |
185 | libnet_addr2name4_r(srcip,0,buf1); | |
186 | do_libnet_init(ifname); | |
187 | libnet_addr2name4_r(dstip,0,buf2,1024); | |
188 | libnet_addr2name4_r(srcip,0,buf1,1024); | |
186 | 189 | |
187 | 190 | /* |
188 | 191 | * Construct and run command |
219 | 222 | *p2 = 0; |
220 | 223 | return p; |
221 | 224 | failed: |
222 | return arping_lookupdev_default(srcip,dstip,ebuf); | |
225 | return arping_lookupdev_default(ifname,srcip,dstip,ebuf); | |
223 | 226 | } |
224 | 227 | #elif defined(FINDIF) && defined(HAVE_WEIRD_BSD) |
225 | 228 | static |
226 | 229 | const char * |
227 | arping_lookupdev(u_int32_t srcip, u_int32_t dstip, char *ebuf) | |
230 | arping_lookupdev(const char *ifname, | |
231 | u_int32_t srcip, u_int32_t dstip, char *ebuf) | |
228 | 232 | { |
229 | 233 | FILE *f; |
230 | 234 | static char buf[10240]; |
232 | 236 | char *p,*p2; |
233 | 237 | int n; |
234 | 238 | |
235 | do_libnet_init(NULL); | |
236 | libnet_addr2name4_r(dstip,0,buf1); | |
239 | do_libnet_init(ifname); | |
240 | libnet_addr2name4_r(dstip,0,buf1, 1024); | |
237 | 241 | //libnet_addr2name4_r(srcip,0,buf1); |
238 | 242 | |
239 | 243 | /* |
271 | 275 | *p2 = 0; |
272 | 276 | return p; |
273 | 277 | failed: |
274 | return arping_lookupdev_default(srcip,dstip,ebuf); | |
278 | return arping_lookupdev_default(ifname,srcip,dstip,ebuf); | |
275 | 279 | } |
276 | 280 | #else |
277 | 281 | /* |
278 | 282 | * |
279 | 283 | */ |
280 | static const char *arping_lookupdev(u_int32_t srcip, u_int32_t dstip, | |
284 | static const char *arping_lookupdev(const char *ifname, | |
285 | u_int32_t srcip, u_int32_t dstip, | |
281 | 286 | char *ebuf) |
282 | 287 | { |
283 | return arping_lookupdev_default(srcip,dstip,ebuf); | |
288 | return arping_lookupdev_default(ifname,srcip,dstip,ebuf); | |
284 | 289 | } |
285 | 290 | #endif |
286 | 291 | |
391 | 396 | { |
392 | 397 | /* cisco-style */ |
393 | 398 | if (3*5-1 == strlen(p)) { |
394 | int c; | |
399 | unsigned int c; | |
395 | 400 | for (c = 0; c < strlen(p); c++) { |
396 | 401 | if ((c % 5) == 4) { |
397 | 402 | if ('.' != p[c]) { |
407 | 412 | } |
408 | 413 | /* windows-style */ |
409 | 414 | if (6*3-1 == strlen(p)) { |
410 | int c; | |
415 | unsigned int c; | |
411 | 416 | for (c = 0; c < strlen(p); c++) { |
412 | 417 | if ((c % 3) == 2) { |
413 | 418 | if ('-' != p[c]) { |
1041 | 1046 | break; |
1042 | 1047 | } |
1043 | 1048 | case 'S': // set source IP, may be null for don't-know |
1044 | do_libnet_init(NULL); | |
1049 | do_libnet_init(ifname); | |
1045 | 1050 | if (-1 == (srcip = libnet_name2addr4(libnet, |
1046 | 1051 | optarg, |
1047 | 1052 | LIBNET_RESOLVE))){ |
1078 | 1083 | "in MAC ping mode\n"); |
1079 | 1084 | exit(1); |
1080 | 1085 | } |
1081 | do_libnet_init(NULL); | |
1086 | do_libnet_init(ifname); | |
1082 | 1087 | if (-1 == (dstip = libnet_name2addr4(libnet, |
1083 | 1088 | optarg, |
1084 | 1089 | LIBNET_RESOLVE))){ |
1113 | 1118 | mode = is_mac_addr(parm)?PINGMAC:PINGIP; |
1114 | 1119 | } else if (dstip_given) { |
1115 | 1120 | mode = PINGIP; |
1116 | do_libnet_init(NULL); | |
1121 | do_libnet_init(ifname); | |
1117 | 1122 | parm = strdup(libnet_addr2name4(dstip,0)); |
1118 | 1123 | if (!parm) { |
1119 | 1124 | fprintf(stderr, "arping: out of mem\n"); |
1193 | 1198 | */ |
1194 | 1199 | if (!ifname) { |
1195 | 1200 | if (dont_use_arping_lookupdev) { |
1196 | ifname = arping_lookupdev_default(srcip,dstip,ebuf); | |
1201 | ifname = arping_lookupdev_default(ifname, | |
1202 | srcip,dstip,ebuf); | |
1197 | 1203 | } else { |
1198 | ifname = arping_lookupdev(srcip,dstip,ebuf); | |
1204 | ifname = arping_lookupdev(ifname,srcip,dstip,ebuf); | |
1199 | 1205 | } |
1200 | 1206 | if (!ifname) { |
1201 | 1207 | fprintf(stderr, "arping: arping_lookupdev(): %s\n", |
0 | dnl $Id: configure.in 737 2002-11-03 19:47:58Z marvin $ | |
0 | dnl arping/configure.in | |
1 | 1 | |
2 | 2 | AC_INIT(arping2.c) |
3 | 3 | AC_CONFIG_HEADER(config.h) |
0 | 0 | #!/bin/sh |
1 | # $Id: arping-scan-net.sh 984 2003-08-07 20:11:36Z marvin $ | |
1 | # arping-scan-net.sh | |
2 | 2 | # |
3 | 3 | # Copyright (C) 2002 Thomas Habets <thomas@habets.pp.se> |
4 | 4 | # |
12 | 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | 13 | # General Public License for more details. |
14 | 14 | # |
15 | # You should have received a copy of the GNU General Public | |
16 | # License along with this library; if not, write to the Free Software | |
17 | # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
15 | # You should have received a copy of the GNU General Public License along | |
16 | # with this program; if not, write to the Free Software Foundation, Inc., | |
17 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | |
18 | 18 | # |
19 | 19 | |
20 | 20 | trap "exit 0" INT |
0 | .TH "arping" "8" "21th June, 2003" "arping" "" | |
0 | .TH "arping" "8" "21th June, 2003" "arping" "" | |
1 | ||
1 | 2 | .PP |
2 | .SH "NAME" | |
3 | .SH "NAME" | |
3 | 4 | arping \- sends arp and/or ip pings to a given host |
4 | 5 | .PP |
5 | .SH "SYNOPSIS" | |
6 | .SH "SYNOPSIS" | |
6 | 7 | \fBarping\fP [-abhpqrRd0uv] [-S \fIhost/ip\fP] [-T \fIhost/ip\fP] [-s \fIMAC\fP] [-t \fIMAC\fP] [-c \fIcount\fP] [-i \fIinterface\fP] [ -w \fIus\fP ] <\fIhost\fP | -B> |
7 | 8 | .PP |
8 | .SH "DESCRIPTION" | |
9 | .SH "DESCRIPTION" | |
9 | 10 | The \fIarping\fP utility sends \fBARP\fP and/or \fBICMP\fP requests to the specified \fIhost\fP and displays the replies\&. The \fIhost\fP may be specified by its \fBhostname\fP, its \fBIP\fP address, or its \fBMAC\fP address\&. |
10 | 11 | .PP |
11 | 12 | One request is sent each second\&. |
30 | 31 | since arping packets (when pinging IP) doesn\&'t traverse the IP stack when |
31 | 32 | received and are therefore replied to faster\&. |
32 | 33 | .PP |
33 | .SH "OPTIONS" | |
34 | .SH "OPTIONS" | |
35 | ||
34 | 36 | .PP |
35 | .IP | |
36 | .IP "-0" | |
37 | .IP "-0" | |
37 | 38 | Use this option to ping with source IP address 0\&.0\&.0\&.0\&. Use this |
38 | 39 | when you haven\&'t configured your interface yet\&. |
39 | 40 | Note that this may get the MAC-ping unanswered\&. |
40 | 41 | This is an alias for -S 0\&.0\&.0\&.0\&. |
41 | .IP "-a" | |
42 | .IP "-a" | |
42 | 43 | Audible ping\&. |
43 | .IP "-A" | |
44 | .IP "-A" | |
44 | 45 | Only count addresses matching requested address (This *WILL* |
45 | 46 | break most things you do\&. Only useful if you are arpinging many |
46 | 47 | hosts at once\&. See arping-scan-net\&.sh for an example)\&. |
47 | .IP "-b" | |
48 | .IP "-b" | |
48 | 49 | Like -0 but source broadcast source address (255\&.255\&.255\&.255)\&. |
49 | 50 | Note that this may get the arping unanswered since it\&'s not normal behavior |
50 | 51 | for a host\&. |
51 | .IP "-B" | |
52 | .IP "-B" | |
52 | 53 | Use instead of host if you want to address 255\&.255\&.255\&.255\&. |
53 | .IP "-c \fIcount\fP" | |
54 | .IP "-c \fIcount\fP" | |
54 | 55 | Only send \fIcount\fP requests\&. |
55 | .IP "-d" | |
56 | .IP "-d" | |
56 | 57 | Find duplicate replies\&. |
57 | .IP "-F" | |
58 | .IP "-F" | |
58 | 59 | Don\&'t try to be smart about the interface name\&. (even if this |
59 | 60 | switch is not given, -i overrides smartness\&. |
60 | .IP "-h" | |
61 | .IP "-h" | |
61 | 62 | Displays a help message and exits\&. |
62 | .IP "-i \fIinterface\fP" | |
63 | .IP "-i \fIinterface\fP" | |
63 | 64 | Use the specified interface\&. |
64 | .IP "-q" | |
65 | .IP "-q" | |
65 | 66 | Does not display messages, except error messages\&. |
66 | .IP "-r" | |
67 | .IP "-r" | |
67 | 68 | Raw output: only the MAC/IP address is displayed for each reply\&. |
68 | .IP "-R" | |
69 | .IP "-R" | |
69 | 70 | Raw output: Like -r but shows "the other one", can be combined with |
70 | 71 | -r\&. |
71 | .IP "-s \fIMAC\fP" | |
72 | .IP "-s \fIMAC\fP" | |
72 | 73 | Set source MAC address\&. You may need to use -p with this\&. |
73 | .IP "-S \fIIP\fP" | |
74 | .IP "-S \fIIP\fP" | |
74 | 75 | Like -b and -0 but with set source address\&. |
75 | 76 | Note that this may get the arping unanswered if the target does not have |
76 | 77 | routing to the IP\&. If you don\&'t own the IP you are using, you may need to turn |
77 | 78 | on promiscious mode on the interface (with -p)\&. With this switch you can find |
78 | 79 | out what IP-address a host has without taking an IP-address yourself\&. |
79 | .IP "-t \fIMAC\fP" | |
80 | .IP "-t \fIMAC\fP" | |
80 | 81 | Set target MAC address to use when pinging IP address\&. |
81 | .IP "-T \fIIP\fP" | |
82 | .IP "-T \fIIP\fP" | |
82 | 83 | Use -T as target address when pinging MACs that won\&'t |
83 | 84 | respond to a broadcast ping but perhaps to a directed broadcast\&. |
84 | 85 | .IP |
85 | 86 | \fIExample\fP: To check the address of MAC-A, use knowledge of MAC-B and IP-B\&. |
86 | 87 | .IP |
87 | 88 | $ arping -S <IP-B> -s <MAC-B> -p <MAC-A> |
88 | .IP "-p" | |
89 | .IP "-p" | |
89 | 90 | Turn on promiscious mode on interface, use this if you don\&'t |
90 | 91 | "own" the MAC address you are using\&. |
91 | .IP "-u" | |
92 | .IP "-u" | |
92 | 93 | Show index=received/sent instead of just index=received when |
93 | 94 | pinging MACs\&. |
94 | .IP "-v" | |
95 | .IP "-v" | |
95 | 96 | Verbose output\&. Use twice for more messages\&. |
96 | .IP "-w" | |
97 | .IP "-w" | |
97 | 98 | (arping 2\&.x only) Time to wait between pings, in microseconds\&. |
99 | ||
98 | 100 | .PP |
99 | .SH "BUGS" | |
101 | .SH "BUGS" | |
102 | ||
100 | 103 | .PP |
101 | 104 | You have to use -B instead of arpinging 255\&.255\&.255\&.255, and -b |
102 | 105 | instead of -S 255\&.255\&.255\&.255\&. This is libnets fault\&. |
103 | 106 | .PP |
104 | .SH "SEE ALSO" | |
107 | .SH "SEE ALSO" | |
108 | ||
105 | 109 | .PP |
106 | 110 | \fBping(8)\fP, \fBarp(8)\fP, \fBrarp(8)\fP |
107 | 111 | .PP |
108 | .SH "AUTHOR" | |
112 | .SH "AUTHOR" | |
113 | ||
109 | 114 | .PP |
110 | 115 | Arping was written by Thomas Habets <thomas@habets\&.pp\&.se>\&. |
17 | 17 | * |
18 | 18 | * Also finds out IP of specified MAC |
19 | 19 | * |
20 | * $Id: arping.c 1753 2007-01-27 14:20:42Z marvin $ | |
21 | 20 | */ |
22 | 21 | /* |
23 | * Copyright (C) 2000-2003 Thomas Habets <thomas@habets.pp.se> | |
22 | * Copyright (C) 2000-2008 Thomas Habets <thomas@habets.pp.se> | |
24 | 23 | * |
25 | 24 | * This program is free software; you can redistribute it and/or modify |
26 | 25 | * it under the terms of the GNU General Public License as published by |
32 | 31 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
33 | 32 | * GNU General Public License for more details. |
34 | 33 | * |
35 | * You should have received a copy of the GNU General Public License | |
36 | * along with this program; if not, write to the Free Software | |
37 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
34 | * You should have received a copy of the GNU General Public License along | |
35 | * with this program; if not, write to the Free Software Foundation, Inc., | |
36 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | |
38 | 37 | */ |
39 | 38 | /* |
40 | 39 | * Note to self: |
0 | arping (2.08-1) unstable; urgency=low | |
1 | ||
2 | * New upstream release | |
3 | * Re-patch new arping.8 for fixing manpage-has-errors-from-man and | |
4 | hyphen-used-as-minus-sign lintian warnings | |
5 | * debian/copyright: Updated copyright year and url where arping was | |
6 | downloaded | |
7 | ||
8 | -- Giuseppe Iuculano <giuseppe@iuculano.it> Fri, 15 Aug 2008 22:44:52 +0200 | |
9 | ||
0 | 10 | arping (2.07~pre1-3) unstable; urgency=low |
1 | 11 | |
2 | 12 | * Removed if-up.d script, there is a similar script in ifupdown-extra. |
2 | 2 | Re-debianized by Giuseppe Iuculano <giuseppe@iuculano.it> on |
3 | 3 | Sun, 22 Jun 2008 12:10:00 +0200. |
4 | 4 | |
5 | It was downloaded from ftp://ftp.habets.pp.se/pub/synscan/ | |
5 | It was downloaded from: | |
6 | http://www.habets.pp.se/synscan/programs.php?prog=arping | |
6 | 7 | |
7 | 8 | Upstream Author: Thomas Habets <thomas@habets.pp.se> |
8 | 9 | |
9 | Copyright: Copyright © 2000-2003 Thomas Habets <thomas@habets.pp.se> | |
10 | Copyright: Copyright © 2000-2008 Thomas Habets <thomas@habets.pp.se> | |
10 | 11 | |
11 | 12 | License: |
12 | 13 |
4 | 4 | ## DP: fixed lintian warning manpage-has-errors-from-man, hyphen-used-as-minus-sign |
5 | 5 | |
6 | 6 | @DPATCH@ |
7 | diff -urNad arping-2.07~/arping.8 arping-2.07/arping.8 | |
8 | --- arping-2.07~/arping.8 2008-06-22 14:02:01.000000000 +0200 | |
9 | +++ arping-2.07/arping.8 2008-06-22 16:21:57.000000000 +0200 | |
10 | @@ -4,7 +4,7 @@ | |
7 | diff -urNad arping-2.08~/arping.8 arping-2.08/arping.8 | |
8 | --- arping-2.08~/arping.8 2008-08-11 08:33:31.000000000 +0200 | |
9 | +++ arping-2.08/arping.8 2008-08-15 22:34:31.000000000 +0200 | |
10 | @@ -5,7 +5,7 @@ | |
11 | 11 | arping \- sends arp and/or ip pings to a given host |
12 | 12 | .PP |
13 | .SH "SYNOPSIS" | |
13 | .SH "SYNOPSIS" | |
14 | 14 | -\fBarping\fP [-abhpqrRd0uv] [-S \fIhost/ip\fP] [-T \fIhost/ip\fP] [-s \fIMAC\fP] [-t \fIMAC\fP] [-c \fIcount\fP] [-i \fIinterface\fP] [ -w \fIus\fP ] <\fIhost\fP | -B> |
15 | 15 | +\fBarping\fP [\-abhpqrRd0uv] [\-S \fIhost/ip\fP] [\-T \fIhost/ip\fP] [\-s \fIMAC\fP] [\-t \fIMAC\fP] [\-c \fIcount\fP] [\-i \fIinterface\fP] [ \-w \fIus\fP ] <\fIhost\fP | \-B> |
16 | 16 | .PP |
17 | .SH "DESCRIPTION" | |
17 | .SH "DESCRIPTION" | |
18 | 18 | The \fIarping\fP utility sends \fBARP\fP and/or \fBICMP\fP requests to the specified \fIhost\fP and displays the replies\&. The \fIhost\fP may be specified by its \fBhostname\fP, its \fBIP\fP address, or its \fBMAC\fP address\&. |
19 | @@ -22,9 +22,9 @@ | |
19 | @@ -23,9 +23,9 @@ | |
20 | 20 | On an idle system the roundtrip times will be pretty much accurate, but |
21 | 21 | with more load the timing gets less exact\&. |
22 | 22 | .PP |
28 | 28 | .PP |
29 | 29 | This is not just an issue with arping, it is with normal ping also |
30 | 30 | (at least it is on my system)\&. But it doesn\&'t show up as much with ping |
31 | @@ -38,7 +38,7 @@ | |
31 | @@ -39,71 +39,71 @@ | |
32 | 32 | Use this option to ping with source IP address 0\&.0\&.0\&.0\&. Use this |
33 | 33 | when you haven\&'t configured your interface yet\&. |
34 | 34 | Note that this may get the MAC-ping unanswered\&. |
35 | 35 | -This is an alias for -S 0\&.0\&.0\&.0\&. |
36 | -.IP "-a" | |
36 | 37 | +This is an alias for \-S 0\&.0\&.0\&.0\&. |
37 | .IP "-a" | |
38 | +.IP "\-a" | |
38 | 39 | Audible ping\&. |
39 | .IP "-A" | |
40 | @@ -46,7 +46,7 @@ | |
40 | -.IP "-A" | |
41 | +.IP "\-A" | |
42 | Only count addresses matching requested address (This *WILL* | |
41 | 43 | break most things you do\&. Only useful if you are arpinging many |
42 | 44 | hosts at once\&. See arping-scan-net\&.sh for an example)\&. |
43 | .IP "-b" | |
45 | -.IP "-b" | |
44 | 46 | -Like -0 but source broadcast source address (255\&.255\&.255\&.255)\&. |
47 | +.IP "\-b" | |
45 | 48 | +Like \-0 but source broadcast source address (255\&.255\&.255\&.255)\&. |
46 | 49 | Note that this may get the arping unanswered since it\&'s not normal behavior |
47 | 50 | for a host\&. |
48 | .IP "-B" | |
49 | @@ -57,7 +57,7 @@ | |
51 | -.IP "-B" | |
52 | +.IP "\-B" | |
53 | Use instead of host if you want to address 255\&.255\&.255\&.255\&. | |
54 | -.IP "-c \fIcount\fP" | |
55 | +.IP "\-c \fIcount\fP" | |
56 | Only send \fIcount\fP requests\&. | |
57 | -.IP "-d" | |
58 | +.IP "\-d" | |
50 | 59 | Find duplicate replies\&. |
51 | .IP "-F" | |
60 | .IP "-F" | |
52 | 61 | Don\&'t try to be smart about the interface name\&. (even if this |
53 | 62 | -switch is not given, -i overrides smartness\&. |
63 | -.IP "-h" | |
54 | 64 | +switch is not given, \-i overrides smartness\&. |
55 | .IP "-h" | |
65 | +.IP "\-h" | |
56 | 66 | Displays a help message and exits\&. |
57 | .IP "-i \fIinterface\fP" | |
58 | @@ -67,25 +67,25 @@ | |
59 | .IP "-r" | |
67 | -.IP "-i \fIinterface\fP" | |
68 | +.IP "\-i \fIinterface\fP" | |
69 | Use the specified interface\&. | |
70 | -.IP "-q" | |
71 | +.IP "\-q" | |
72 | Does not display messages, except error messages\&. | |
73 | -.IP "-r" | |
74 | +.IP "\-r" | |
60 | 75 | Raw output: only the MAC/IP address is displayed for each reply\&. |
61 | .IP "-R" | |
76 | -.IP "-R" | |
62 | 77 | -Raw output: Like -r but shows "the other one", can be combined with |
63 | 78 | --r\&. |
79 | -.IP "-s \fIMAC\fP" | |
80 | -Set source MAC address\&. You may need to use -p with this\&. | |
81 | -.IP "-S \fIIP\fP" | |
82 | -Like -b and -0 but with set source address\&. | |
83 | +.IP "\-R" | |
64 | 84 | +Raw output: Like \-r but shows "the other one", can be combined with |
65 | 85 | +\-r\&. |
66 | .IP "-s \fIMAC\fP" | |
67 | -Set source MAC address\&. You may need to use -p with this\&. | |
86 | +.IP "\-s \fIMAC\fP" | |
68 | 87 | +Set source MAC address\&. You may need to use \-p with this\&. |
69 | .IP "-S \fIIP\fP" | |
70 | -Like -b and -0 but with set source address\&. | |
88 | +.IP "\-S \fIIP\fP" | |
71 | 89 | +Like \-b and \-0 but with set source address\&. |
72 | 90 | Note that this may get the arping unanswered if the target does not have |
73 | 91 | routing to the IP\&. If you don\&'t own the IP you are using, you may need to turn |
74 | 92 | -on promiscious mode on the interface (with -p)\&. With this switch you can find |
75 | 93 | +on promiscious mode on the interface (with \-p)\&. With this switch you can find |
76 | 94 | out what IP-address a host has without taking an IP-address yourself\&. |
77 | .IP "-t \fIMAC\fP" | |
95 | -.IP "-t \fIMAC\fP" | |
96 | +.IP "\-t \fIMAC\fP" | |
78 | 97 | Set target MAC address to use when pinging IP address\&. |
79 | .IP "-T \fIIP\fP" | |
98 | -.IP "-T \fIIP\fP" | |
80 | 99 | -Use -T as target address when pinging MACs that won\&'t |
100 | +.IP "\-T \fIIP\fP" | |
81 | 101 | +Use \-T as target address when pinging MACs that won\&'t |
82 | 102 | respond to a broadcast ping but perhaps to a directed broadcast\&. |
83 | 103 | .IP |
84 | 104 | -\fIExample\fP: To check the address of MAC-A, use knowledge of MAC-B and IP-B\&. |
85 | +\fIExample\fP: To check the address of MAC-A, use knowledge of MAC-B and IP-B\&. | |
105 | +\fIExample\fP: To check the address of MAC-A, use knowledge of MAC-B and IP-B\&. | |
86 | 106 | .IP |
87 | 107 | -$ arping -S <IP-B> -s <MAC-B> -p <MAC-A> |
108 | -.IP "-p" | |
88 | 109 | +$ arping \-S <IP-B> \-s <MAC-B> \-p <MAC-A> |
89 | .IP "-p" | |
110 | +.IP "\-p" | |
90 | 111 | Turn on promiscious mode on interface, use this if you don\&'t |
91 | 112 | "own" the MAC address you are using\&. |
92 | @@ -99,8 +99,8 @@ | |
113 | -.IP "-u" | |
114 | +.IP "\-u" | |
115 | Show index=received/sent instead of just index=received when | |
116 | pinging MACs\&. | |
117 | -.IP "-v" | |
118 | +.IP "\-v" | |
119 | Verbose output\&. Use twice for more messages\&. | |
120 | -.IP "-w" | |
121 | +.IP "\-w" | |
122 | (arping 2\&.x only) Time to wait between pings, in microseconds\&. | |
123 | ||
93 | 124 | .PP |
94 | .SH "BUGS" | |
125 | .SH "BUGS" | |
126 | ||
95 | 127 | .PP |
96 | 128 | -You have to use -B instead of arpinging 255\&.255\&.255\&.255, and -b |
97 | 129 | -instead of -S 255\&.255\&.255\&.255\&. This is libnets fault\&. |
98 | 130 | +You have to use \-B instead of arpinging 255\&.255\&.255\&.255, and \-b |
99 | 131 | +instead of \-S 255\&.255\&.255\&.255\&. This is libnets fault\&. |
100 | 132 | .PP |
101 | .SH "SEE ALSO" | |
102 | .PP | |
133 | .SH "SEE ALSO" | |
134 |
0 | /* $Id: freebsd.h 143 2000-09-28 20:45:19Z marvin $ */ | |
0 | /* arping/freebsd.h | |
1 | /* | |
2 | * Copyright (C) 2000-2008 Thomas Habets <thomas@habets.pp.se> | |
3 | * | |
4 | * This library is free software; you can redistribute it and/or | |
5 | * modify it under the terms of the GNU General Public | |
6 | * License as published by the Free Software Foundation; either | |
7 | * version 2 of the License, or (at your option) any later version. | |
8 | * | |
9 | * This library is distributed in the hope that it will be useful, | |
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
12 | * General Public License for more details. | |
13 | * | |
14 | * You should have received a copy of the GNU General Public License along | |
15 | * with this program; if not, write to the Free Software Foundation, Inc., | |
16 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | |
17 | */ | |
1 | 18 | |
2 | 19 | #define __u8 u_int8_t |
3 | 20 | #define __u16 u_int16_t |
0 | /* $Id: openbsd.h 138 2000-09-15 17:22:30Z marvin $ */ | |
0 | /* arping/openbsd.h | |
1 | * | |
2 | * Copyright (C) 2000-2008 Thomas Habets <thomas@habets.pp.se> | |
3 | * | |
4 | * This library is free software; you can redistribute it and/or | |
5 | * modify it under the terms of the GNU General Public | |
6 | * License as published by the Free Software Foundation; either | |
7 | * version 2 of the License, or (at your option) any later version. | |
8 | * | |
9 | * This library is distributed in the hope that it will be useful, | |
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
12 | * General Public License for more details. | |
13 | * | |
14 | * You should have received a copy of the GNU General Public License along | |
15 | * with this program; if not, write to the Free Software Foundation, Inc., | |
16 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | |
17 | */ | |
1 | 18 | |
2 | 19 | #define __u8 u_int8_t |
3 | 20 | #define __u16 u_int16_t |
0 | /* $Id: solaris.h 465 2001-11-18 14:43:45Z marvin $ */ | |
0 | /* arping/solaris.h | |
1 | * | |
2 | * Copyright (C) 2000-2008 Thomas Habets <thomas@habets.pp.se> | |
3 | * | |
4 | * This library is free software; you can redistribute it and/or | |
5 | * modify it under the terms of the GNU General Public | |
6 | * License as published by the Free Software Foundation; either | |
7 | * version 2 of the License, or (at your option) any later version. | |
8 | * | |
9 | * This library is distributed in the hope that it will be useful, | |
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
12 | * General Public License for more details. | |
13 | * | |
14 | * You should have received a copy of the GNU General Public License along | |
15 | * with this program; if not, write to the Free Software Foundation, Inc., | |
16 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | |
17 | */ | |
1 | 18 | |
2 | 19 | #define __u8 uint8_t |
3 | 20 | #define __u16 uint16_t |