17632575bSBill Paul.\" Copyright (c) 1990, 1991, 1993 The Regents of the University of 27632575bSBill Paul.\" California. All rights reserved. 39636a39aSBill Paul.\" 49636a39aSBill Paul.\" Redistribution and use in source and binary forms, with or without 59636a39aSBill Paul.\" modification, are permitted provided that: (1) source code distributions 69636a39aSBill Paul.\" retain the above copyright notice and this paragraph in its entirety, (2) 79636a39aSBill Paul.\" distributions including binary code include the above copyright notice and 89636a39aSBill Paul.\" this paragraph in its entirety in the documentation or other materials 9486c8cc4SWarner Losh.\" provided with the distribution. Neither the name of 109636a39aSBill Paul.\" the University nor the names of its contributors may be used to endorse 119636a39aSBill Paul.\" or promote products derived from this software without specific prior 129636a39aSBill Paul.\" written permission. 139636a39aSBill Paul.\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED 149636a39aSBill Paul.\" WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF 159636a39aSBill Paul.\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 169636a39aSBill Paul.\" 17ef231949SHiroki Sato.Dd July 9, 2012 18aa40a0daSPhilippe Charnier.Dt RARPD 8 19aa40a0daSPhilippe Charnier.Os 20aa40a0daSPhilippe Charnier.Sh NAME 21aa40a0daSPhilippe Charnier.Nm rarpd 22aa40a0daSPhilippe Charnier.Nd reverse ARP daemon 23aa40a0daSPhilippe Charnier.Sh SYNOPSIS 24e97407b4SRuslan Ermilov.Nm 25b0fed5c6SPhilippe Charnier.Fl a 26b0fed5c6SPhilippe Charnier.Op Fl dfsv 27c3ce2b2bSRobert Watson.Op Fl t Ar directory 28ef231949SHiroki Sato.Op Fl P Ar pidfile 29b0fed5c6SPhilippe Charnier.Nm 30b0fed5c6SPhilippe Charnier.Op Fl dfsv 31b0fed5c6SPhilippe Charnier.Op Fl t Ar directory 32ef231949SHiroki Sato.Op Fl P Ar pidfile 33b0fed5c6SPhilippe Charnier.Ar interface 34aa40a0daSPhilippe Charnier.Sh DESCRIPTION 35490d5836SPhilippe CharnierThe 36f351b05aSPeter Pentchev.Nm 37490d5836SPhilippe Charnierutility services Reverse ARP requests on the Ethernet connected to 38aa40a0daSPhilippe Charnier.Ar interface . 399636a39aSBill PaulUpon receiving a request, 40aa40a0daSPhilippe Charnier.Nm 419636a39aSBill Paulmaps the target hardware address to an IP address via its name, which 429636a39aSBill Paulmust be present in both the 43aa40a0daSPhilippe Charnier.Xr ethers 5 449636a39aSBill Pauland 45aa40a0daSPhilippe Charnier.Xr hosts 5 469636a39aSBill Pauldatabases. 47b60287dbSBill FennerIf a host does not exist in both databases, the translation cannot 489636a39aSBill Paulproceed and a reply will not be sent. 498b5c4af3SRuslan Ermilov.Pp 50a9695b96SBill FennerBy default, a request is honored only if the server 51aa40a0daSPhilippe Charnier(i.e., the host that 52aa40a0daSPhilippe Charnier.Nm 53aa40a0daSPhilippe Charnieris running on) 54b60287dbSBill Fennercan "boot" the target; that is, a file or directory matching the glob 55aa40a0daSPhilippe Charnier.Pa /tftpboot/\fIipaddr\fP* 56aa40a0daSPhilippe Charnierexists, where 57aa40a0daSPhilippe Charnier.Em ipaddr 58aa40a0daSPhilippe Charnieris the target IP address in hex. 59b60287dbSBill FennerFor example, the IP address 204.216.27.18 will be replied to if any of 60aa40a0daSPhilippe Charnier.Pa /tftpboot/CCD81B12 , 61aa40a0daSPhilippe Charnier.Pa /tftpboot/CCD81B12.SUN3 , 62aa40a0daSPhilippe Charnieror 63aa40a0daSPhilippe Charnier.Pa /tftpboot/CCD81B12-boot 64b60287dbSBill Fennerexist. 65a9695b96SBill FennerThis requirement can be overridden with the 66aa40a0daSPhilippe Charnier.Fl s 67a9695b96SBill Fennerflag (see below). 688b5c4af3SRuslan Ermilov.Pp 699636a39aSBill PaulIn normal operation, 70aa40a0daSPhilippe Charnier.Nm 71f351b05aSPeter Pentchevforks a copy of itself and runs in the background. 72f351b05aSPeter PentchevAnomalies and errors are reported via 73aa40a0daSPhilippe Charnier.Xr syslog 3 . 74b7e469adSPhilippe Charnier.Pp 75aa40a0daSPhilippe CharnierThe following options are available: 76aa40a0daSPhilippe Charnier.Bl -tag -width indent 77aa40a0daSPhilippe Charnier.It Fl a 789636a39aSBill PaulListen on all the Ethernets attached to the system. 79aa40a0daSPhilippe CharnierIf 80aa40a0daSPhilippe Charnier.Fl a 81aa40a0daSPhilippe Charnieris omitted, an interface must be specified. 82e376b9ffSPeter Pentchev.It Fl d 83e376b9ffSPeter PentchevIf 84e376b9ffSPeter Pentchev.Fl f 85e376b9ffSPeter Pentchevis also specified, 86e376b9ffSPeter Pentchev.Nm 87e376b9ffSPeter Pentchevlogs messages to 88e376b9ffSPeter Pentchev.Em stdout 89e376b9ffSPeter Pentchevand 90e376b9ffSPeter Pentchev.Em stderr 91e376b9ffSPeter Pentchevinstead of via 92e376b9ffSPeter Pentchev.Xr syslog 3 . 93aa40a0daSPhilippe Charnier.It Fl f 949636a39aSBill PaulRun in the foreground. 95ef231949SHiroki Sato.It Fl P 96ef231949SHiroki SatoSpecify the pathname of the PID file. 97ef231949SHiroki SatoIf not specified, 98ef231949SHiroki Sato.Pa /var/run/rarpd.pid 99ef231949SHiroki Satoor 100ef231949SHiroki Sato.Pa /var/run/rarpd.ifname.pid 101ef231949SHiroki Satowill be used depending on the 102ef231949SHiroki Sato.Fl a 103ef231949SHiroki Satoflag or the specified interface name. 104aa40a0daSPhilippe Charnier.It Fl s 105a9695b96SBill FennerSupply a response to any RARP request for which an ethernet to IP address 106a9695b96SBill Fennermapping exists; do not depend on the existence of 107aa40a0daSPhilippe Charnier.Pa /tftpboot/\fIipaddr\fP* . 108c3ce2b2bSRobert Watson.It Fl t 10978bc1971SRobert WatsonSupply an alternate tftp root directory to 110c3ce2b2bSRobert Watson.Pa /tftpboot , 11178bc1971SRobert Watsonsimilar to the 112c3ce2b2bSRobert Watson.Fl s 11378bc1971SRobert Watsonoption of 114c3ce2b2bSRobert Watson.Xr tftpd 8 . 115c3ce2b2bSRobert WatsonThis permits 116c3ce2b2bSRobert Watson.Nm 11778bc1971SRobert Watsonto selectively respond to RARP requests, but use an alternate directory 118c3ce2b2bSRobert Watsonfor IP checking. 119aa40a0daSPhilippe Charnier.It Fl v 12078bc1971SRobert WatsonEnable verbose syslogging. 121aa40a0daSPhilippe Charnier.El 122aa40a0daSPhilippe Charnier.Sh FILES 123aa40a0daSPhilippe Charnier.Bl -tag -width /etc/ethers -compact 124aa40a0daSPhilippe Charnier.It Pa /etc/ethers 125aa40a0daSPhilippe Charnier.It Pa /etc/hosts 126aa40a0daSPhilippe Charnier.It Pa /tftpboot 127ef231949SHiroki Sato.It Pa /var/run/rarpd.pid 128aa40a0daSPhilippe Charnier.El 129aa40a0daSPhilippe Charnier.Sh SEE ALSO 130aa40a0daSPhilippe Charnier.Xr bpf 4 131f351b05aSPeter Pentchev.Rs 132f351b05aSPeter Pentchev.%A "Finlayson, R." 133f351b05aSPeter Pentchev.%A "Mann, T." 134f351b05aSPeter Pentchev.%A "Mogul, J.C." 135f351b05aSPeter Pentchev.%A "Theimer, M." 136f351b05aSPeter Pentchev.%T "RFC 903: Reverse Address Resolution Protocol" 137f351b05aSPeter Pentchev.%D "June 1984" 138f351b05aSPeter Pentchev.%O "4 p" 139f351b05aSPeter Pentchev.Re 140aa40a0daSPhilippe Charnier.Sh AUTHORS 141f4d874a1SRuslan Ermilov.An -nosplit 142*01c2b8acSBaptiste Daroussin.An Craig Leres Aq Mt leres@ee.lbl.gov 143aa40a0daSPhilippe Charnierand 144*01c2b8acSBaptiste Daroussin.An Steven McCanne Aq Mt mccanne@ee.lbl.gov . 1459636a39aSBill PaulLawrence Berkeley Laboratory, University of California, Berkeley, CA. 146aa40a0daSPhilippe Charnier.Sh BUGS 147490d5836SPhilippe CharnierThe 148f351b05aSPeter Pentchev.Nm 149490d5836SPhilippe Charnierutility can depend on the DNS to resolve the name discovered from 150aa40a0daSPhilippe Charnier.Pa /etc/ethers . 151aa40a0daSPhilippe CharnierIf this name is not in the DNS but is in 152aa40a0daSPhilippe Charnier.Pa /etc/hosts , 153f351b05aSPeter Pentchevthe DNS lookup can cause a delayed RARP response, so in this situation 154f351b05aSPeter Pentchevit is recommended to configure 1553c4d9b1aSSheldon Hearn.Xr nsswitch.conf 5 156aa40a0daSPhilippe Charnierto read 157aa40a0daSPhilippe Charnier.Pa /etc/hosts 158aa40a0daSPhilippe Charnierfirst. 159