aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/rarpd
Commit message (Collapse)AuthorAgeFilesLines
* Updated dependenciesSimon J. Gerraty2014-05-161-1/+0
| | | | Notes: svn path=/projects/bmake/; revision=266219
* Updated dependenciesSimon J. Gerraty2014-05-101-0/+2
| | | | Notes: svn path=/projects/bmake/; revision=265802
* sync from headSimon J. Gerraty2013-04-121-8/+14
|\ | | | | | | Notes: svn path=/projects/bmake/; revision=249429
| * Add some missing newlines and static declarations.Marius Strobl2013-04-071-8/+14
| | | | | | | | | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=249234
* | Updated dependenciesSimon J. Gerraty2013-03-111-0/+1
| | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
* | Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
* | Sync with HEAD.David E. O'Brien2013-02-081-5/+4
|\| | | | | | | Notes: svn path=/projects/bmake/; revision=246555
| * Retire struct sockaddr_inarp.Gleb Smirnoff2013-01-311-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since ARP and routing are separated, "proxy only" entries don't have any meaning, thus we don't need additional field in sockaddr to pass SIN_PROXY flag. New kernel is binary compatible with old tools, since sizes of sockaddr_inarp and sockaddr_in match, and sa_family are filled with same value. The structure declaration is left for compatibility with third party software, but in tree code no longer use it. Reviewed by: ru, andre, net@ Notes: svn path=/head/; revision=246143
* | Updated/new Makefile.dependSimon J. Gerraty2012-11-081-0/+1
| | | | | | | | Notes: svn path=/projects/bmake/; revision=242788
* | Sync from headSimon J. Gerraty2012-11-043-18/+79
|\| | | | | | | Notes: svn path=/projects/bmake/; revision=242545
| * Remove end of line whitespace.Joel Dahl2012-07-091-1/+1
| | | | | | | | Notes: svn path=/head/; revision=238300
| * - Add IFT_L2VLAN (vlan(4)) support.Hiroki Sato2012-07-093-18/+79
| | | | | | | | | | | | | | | | | | - Add -P option to support PID file. When -a is specified /var/run/rarpd.pid is used, and when an interface is specified /var/run/rarpd.<ifname>.pid is used by default. Notes: svn path=/head/; revision=238282
* | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+20
|/ | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* Fix warning when compiling with gcc46:Eitan Adler2012-01-201-2/+1
| | | | | | | | | | error: variable 'hostname' set but not used Approved by: dim, cperciva (mentor, blanket for pre-mentorship already-approved commits) MFC after: 3 days Notes: svn path=/head/; revision=230346
* Catch up with kernel using time_uptime to drive ARP timeouts.Gleb Smirnoff2010-12-061-1/+3
| | | | | | | Noticed by: jilles Notes: svn path=/head/; revision=216225
* Fixed the misplaced $FreeBSD$.Ruslan Ermilov2005-02-091-2/+2
| | | | Notes: svn path=/head/; revision=141580
* Per letter dated July 22, 1999 remove 3rd clause of Berkeley derived softwareWarner Losh2004-08-072-11/+3
| | | | | | | (with permission of addtional copyright holders where appropriate) Notes: svn path=/head/; revision=133249
* While walking over the list of interfaces obtained from getifaddrs(3),Joerg Wunsch2004-04-201-4/+40
| | | | | | | | | | | | | | | | | | rarpd clobbered any AF_INET information already configured for a given interface name, so interfaces with more than one IP address made rarpd listen only for the last address out of all IP aliases. I changed this, so that AF_LINK information is always collected first (to ensure the interface name gets its link-layer address associated), but while looking for AF_INET addresses, the configuration is cloned if there has already been one IP address seen for that interface name. Thus, rarpd now effectively listens on all subnets. MFC after: 1 week Notes: svn path=/head/; revision=128474
* Fix a typo.Joerg Wunsch2004-04-201-1/+1
| | | | Notes: svn path=/head/; revision=128469
* Make it clear that -a flag and interface parameter are mutually exclusivePhilippe Charnier2003-08-162-13/+19
| | | | Notes: svn path=/head/; revision=119003
* Lower WARNS to 3 so that this still compiles on non x86 architectures.Maxime Henrion2003-07-111-1/+1
| | | | Notes: svn path=/head/; revision=117452
* Huge cleanup of the rarpd(8) code :Maxime Henrion2003-07-112-188/+52
| | | | | | | | | | | | | | | | | | | | | | | - Use getifaddrs() instead of rolling our own buggy one. Previously, rarpd(8) would fail to see some interfaces because of a hardcoded limit. It now successfully sees any interface in the system, and this also makes the code _much_ simpler. - Replace strncpy() calls with strlcpy() calls. Some uses of strncpy() were bogus ; the code wasn't ensuring that the string was NUL terminated. - Don't try to guard about select() FD_* macros being undefined. - Use IF_NAMESIZE and ETHER_ADDR_LEN macros where appropriate. - Add static keywords to function definitions for consistency, since the prototypes have it (I wonder why GCC didn't complain about this). - Remove compat code for very old BSD versions and SunOS. - Remove code for systems not having the dirent.h header. - The code is now WARNS=5 clean so mark it as such. - Don't add -DTFTP_DIR="/tftpboot" to the build command line since it's the default. MFC after: 2 weeks Notes: svn path=/head/; revision=117446
* make rarpd use in_addr_t instead of u_long since this is neccessaryJohn-Mark Gurney2003-06-151-24/+24
| | | | | | | | | on 64bit platforms ok'd by: silence Notes: svn path=/head/; revision=116369
* Use __FBSDID over rcsid[]. Protect copyright[] where needed.David E. O'Brien2003-05-031-5/+4
| | | | Notes: svn path=/head/; revision=114601
* Add "-t" to useage message and comment. (The -t option was addedDavid Malone2002-09-151-3/+3
| | | | | | | | | | | independently by Robert, but also proposed in the PR below). PR: 38126 Submitted by: Josh Elsasser <jre@vineyard.net> MFC after: 1 month Notes: svn path=/head/; revision=103347
* The .Nm utilityPhilippe Charnier2002-07-141-2/+4
| | | | Notes: svn path=/head/; revision=99968
* Fix buildworld breakage.Ollivier Robert2002-05-091-1/+1
| | | | | | | Submitted by: Maxim Konovalov <maxim@macomnet.ru> Notes: svn path=/head/; revision=96254
* Grammatical fixes over previous commit.Robert Watson2001-11-201-6/+6
| | | | | | | Submitted by: ru Notes: svn path=/head/; revision=86679
* o Allow rarpd to accept an additional '-t directory' argument, specifyingRobert Watson2001-11-162-1/+17
| | | | | | | | | | | | an alternative to /tftpboot. This is useful it you're using tftpd with an alternative root (using -s), and would like rarpd to respond selectively to RARP requests using the same criteria as tftp. Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs Notes: svn path=/head/; revision=86460
* Perform a major cleanup of the usr.sbin Makefiles.David E. O'Brien2001-07-201-1/+1
| | | | | | | | These are not perfectly in agreement with each other style-wise, but they are orders of orders of magnitude more consistent style-wise than before. Notes: svn path=/head/; revision=80029
* make it compile on alpha againMatt Jacob2001-07-051-1/+2
| | | | Notes: svn path=/head/; revision=79333
* Add a -d command-line option; when used in conjunction with -f, rarpdPeter Pentchev2001-06-183-49/+129
| | | | | | | | | | | | | | sends error messages to stderr, normal output to stdout, instead of logging everything via syslog. Turn off the FORMAT_AUDIT in the Makefile, until I can figure out how to disable the check for one single line in the source :( Reviewed by: dd, silence on -audit MFC after: 1 month Notes: svn path=/head/; revision=78402
* Comply with POSIX rules:Jonathan Lemon2001-06-161-2/+2
| | | | | | | | | | o Use %u for printing u_int. o Cast sizeof() to u_long, and print with %lu Reviewed by: wollman Notes: svn path=/head/; revision=78357
* Undo last braino and fix properly.Jonathan Lemon2001-06-161-2/+2
| | | | Notes: svn path=/head/; revision=78338
* Fix warning:Jonathan Lemon2001-06-161-1/+1
| | | | | | | 489: warning: int format, different type arg (arg 4) Notes: svn path=/head/; revision=78337
* Fixed world breakage on systems where ntohl() doesn't return u_longBruce Evans2001-06-131-17/+4
| | | | | | | | | | | | | | | | (e.g., on alphas, or even on i386's with a POSIX-200x-conformant ntohl() (ntohl() returns uint32_t which is u_int on i386's)). Fixed related bugs and bogons while I'm here: - ntohl() was "fixed" for printing in 1 place by casting to "(unsigned int )". This breaks the value on systems where u_int is smaller than uint32_t, and has 2 style bugs. - spell u_int consistently (never use "unsigned"). - break K&R support some more (don't cast malloc()'s arg to a wrong type...). Notes: svn path=/head/; revision=78163
* WARNS=2 cleanup, ANSIfication, manpage mdoc(7) cleanup.Peter Pentchev2001-06-113-128/+117
| | | | | | | | | | | | | | | Once again, as explained in my messages to -audit, the ANSIfication comes as part of the preparation to add a new -d command-line flag to send output to stdout/stderr. That commit will come in a week, pending any further comments/objections. For those who have missed the -audit mails, it's at http://people.FreeBSD.org/~roam/bsd/rarpd/usr.sbin-rarpd-d.patch Asbestos suit: on ;) Reviewed by: dd, silence on -audit MFC after: 1 month Notes: svn path=/head/; revision=78057
* - Backout botched attempt to introduce MANSECT feature.Ruslan Ermilov2001-03-261-0/+1
| | | | | | | - MAN[1-9] -> MAN. Notes: svn path=/head/; revision=74816
* Set the default manual section for usr.sbin/ to 8.Ruslan Ermilov2001-03-201-2/+0
| | | | Notes: svn path=/head/; revision=74532
* Prepare for mdoc(7)NG.Ruslan Ermilov2000-12-271-3/+2
| | | | Notes: svn path=/head/; revision=70403
* mdoc(7) police: do not split author names in the AUTHORS section.Ruslan Ermilov2000-11-221-0/+1
| | | | Notes: svn path=/head/; revision=69027
* mdoc(7) police: use the new features of the Nm macro.Ruslan Ermilov2000-11-201-1/+1
| | | | Notes: svn path=/head/; revision=68965
* Fix broken (sectionless) cross-reference in ref 1.10.Sheldon Hearn2000-11-201-1/+1
| | | | Notes: svn path=/head/; revision=68955
* Add nsswitch support. By creating an /etc/nsswitch.conf file, you canJacques Vidrine2000-09-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | configure FreeBSD so that various databases such as passwd and group can be looked up using flat files, NIS, or Hesiod. = Hesiod has been added to libc (see hesiod(3)). = A library routine for parsing nsswitch.conf and invoking callback functions as specified has been added to libc (see nsdispatch(3)). = The following C library functions have been modified to use nsdispatch: . getgrent, getgrnam, getgrgid . getpwent, getpwnam, getpwuid . getusershell . getaddrinfo . gethostbyname, gethostbyname2, gethostbyaddr . getnetbyname, getnetbyaddr . getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr = host.conf has been removed from src/etc. rc.network has been modified to warn that host.conf is no longer used at boot time. In addition, if there is a host.conf but no nsswitch.conf, the latter is created at boot time from the former. Obtained from: NetBSD Notes: svn path=/head/; revision=65532
* Remove incorrect section name. Incomplete -Wall cleaning.Philippe Charnier1999-11-272-1/+2
| | | | Notes: svn path=/head/; revision=53766
* Fix warning: return type of `main' is not `int'Peter Wemm1999-09-151-1/+1
| | | | Notes: svn path=/head/; revision=51287
* $Id$ -> $FreeBSD$Peter Wemm1999-08-283-3/+3
| | | | Notes: svn path=/head/; revision=50479
* Sync usage string with reality: removed -n, added -s.Alexander Langer1998-12-061-2/+2
| | | | Notes: svn path=/head/; revision=41561
* Fix bug in rarpd:Ollivier Robert1998-04-021-11/+13
| | | | | | | | | | | | | | | | | | | | | | | | Explanation of the bug: when processing its first request, rarpd opens a routing socket to send requests to the arp table. It keeps that socket open afterwards, while waiting for new RARP requests. Meanwhile, the data received on the routing socket fill up until they are about 8Kbytes in size. Any additional data is lost. When rarpd receives its next RARP request, it tries to access the ARP table via a routing socket call, then waits for the answer to its own request. This answer is lost because the received data is already filled: when looking for the reply, rarpd receives only 8kbytes worth of data, then loops waiting forever. Someone please test it on -STABLE and commit it. We can close the PR when testing on STABLE is done. PR: bin/5669 Submitted by: Pierre Beyssac <pb@fasterix.freenix.org> Notes: svn path=/head/; revision=35003
* Removed most unused includes of <net/if_var.h> outside the kernel.Bruce Evans1998-01-161-2/+1
| | | | Notes: svn path=/head/; revision=32570