Philippe Charnier
7fed38d0a0
Replace various spelling with FALLTHROUGH which is lint()able
2002-08-25 13:10:45 +00:00
Ruslan Ermilov
a654c53e16
mdoc(7) police: Removed redundant .Ns calls.
2002-08-13 16:07:28 +00:00
Philippe Charnier
3f162cb85d
The .Nm utility
2002-07-06 19:19:48 +00:00
Alfred Perlstein
f74779bdab
Assume __STDC__, remove non-__STDC__ code. Remove private __P.
2002-05-28 18:39:53 +00:00
Alfred Perlstein
91180daf65
Assume __STDC__, remove non-__STDC__ code.
...
Remove private __P.
2002-05-28 18:37:43 +00:00
Alfred Perlstein
f19d047aec
This code defined a private __P, nuke it.
2002-05-28 18:36:43 +00:00
Alfred Perlstein
5ed136e814
Assume __STDC__, remove non-__STDC__ code.
...
Reviewed by: md5
2002-05-28 18:31:41 +00:00
Kris Kennaway
be9efd5641
Mark report() as printflike and fix resulting warnings, including one bug
...
(get_errmsg -> get_errmsg())
2002-02-04 01:28:45 +00:00
Ian Dowse
7fe354ba91
Avoid a few compiler warnings (printf codes, missing includes etc).
...
PR: bin/30864
Obtained from: Dan Lukes <dan@obluda.cz>
MFC after: 1 week
2001-09-29 11:37:13 +00:00
Ian Dowse
c2c0f1952e
Missing `break' statements caused two error messages to become
...
"unkown error" [sic]. Add the missing breaks, and correct the
spelling typo.
PR: bin/30865
Submitted by: Dan Lukes <dan@obluda.cz>
MFC after: 1 week
2001-09-29 10:31:28 +00:00
Ian Dowse
3f48bf186f
RFC2132 is not clear about whether the "Maximum DHCP Message Size"
...
refers to the size of the whole ethernet packet, just the DHCP
message within the UDP payload, or something else. bootpd interpreted
it as a maximum UDP payload size, so it could end up sending
fragmented packets to clients (such as some versions of Etherboot)
that used different interpretations of the maximum message size.
Switch to the most conservative interpretation: ensure that the
ethernet packet containing the response is no larger than the
specified maximum message size. This matches the behaviour of
the ISC dhcpd.
MFC after: 1 week
2001-09-25 21:02:10 +00:00
Ruslan Ermilov
57e4378bf6
mdoc(7) police: protect trailing full stops of abbreviations
...
with a trailing zero-width space: `e.g.\&'.
2001-08-10 13:45:36 +00:00
Dima Dorfman
7ebcc426ef
Remove whitespace at EOL.
2001-07-15 07:53:42 +00:00
Ruslan Ermilov
e5b5c66bca
- Backout botched attempt to intoduce MANSECT feature.
...
- MAN[1-9] -> MAN.
2001-03-26 14:22:12 +00:00
Ruslan Ermilov
020ee2dc9f
Set the default manual section for libexec/ to 8.
2001-03-20 18:10:13 +00:00
Jeroen Ruigrok van der Werven
7c63796828
Preceed/preceeding are not english words. Use precede or preceding.
2001-02-18 10:25:42 +00:00
Ruslan Ermilov
d0353b836e
mdoc(7) police: split punctuation characters + misc fixes.
2001-02-01 16:38:02 +00:00
Ruslan Ermilov
bd26f2dafc
man(7) -> mdoc(7).
2001-01-16 13:12:21 +00:00
Ruslan Ermilov
e22bb3897a
mdoc(7) police: .Os CMU -> .Os, split authors for better output.
2000-12-12 15:31:21 +00:00
Ruslan Ermilov
a2fd3702a3
mdoc(7) police: use canonical form of .Dd macro.
2000-12-11 15:15:20 +00:00
David E. O'Brien
1a37aa566b
Add `_PATH_DEVZERO'.
...
Use _PATH_* where where possible.
2000-12-09 09:35:55 +00:00
Kris Kennaway
a16f31237a
Constify
2000-11-26 10:21:54 +00:00
Ruslan Ermilov
760819894e
mdoc(7) police: use the new features of the Nm macro.
2000-11-20 14:42:24 +00:00
Ruslan Ermilov
726b61ab5f
Avoid use of direct troff requests in mdoc(7) manual pages.
2000-11-10 17:46:15 +00:00
Dirk Froemberg
59cc881262
Fix to=auto in bootptab.
...
PR: misc/5574
Submitted by: Bart Robinson <lomew@marker.cs.utah.edu>
Reviewed by: wollman
2000-11-10 12:19:53 +00:00
Warner Losh
7c62d872a5
strerror is declared in <string.h>
...
errno is declared in <errno.h>
2000-09-04 05:48:09 +00:00
Marcel Moolenaar
8ef94ce860
Fix bootpd for Alpha.
...
bptypes.h originally defined int32 to be of type long. This obviously
doesn't work on the Alpha. By defining int32 (and u_int32) in terms of
int32_t (and u_int32_t) it now is what it says it should be.
Two occurrences of 'unsigned int32' have been changed to 'u_int32' for
consistency.
Submitted by: Wilko Bulte <wilko@yedi.iaf.nl>
1999-11-12 10:11:48 +00:00
Mike Pritchard
229494cb51
Add $FreeBSD$ lines to man pages that are missing them to make it
...
easier for translation teams.
PR: docs/13418
Submitted by: Alexey Zelkin <phantom@cris.net>
1999-08-28 23:10:20 +00:00
Peter Wemm
7f3dea244c
$Id$ -> $FreeBSD$
1999-08-28 00:22:10 +00:00
Mike Pritchard
2dd1e9f4e1
Fix a couple of typos.
...
PR: 12610
Submitted by: Seth <seth@freebie.dp.ny.frb.org>
1999-07-12 18:37:48 +00:00
Warner Losh
859663719d
More egcs warning fixes:
...
o main returns int not void
o use return 0 at end of main when needed
o use braces to avoid potentially ambiguous else
o don't default to type int (and also remove a useless register
modifier).
Reviewed by: obrien and chuckr
1999-04-25 22:23:38 +00:00
Brian Somers
9e9a43bdec
Ensure that things returned by gethostname() and
...
friends are terminated and allow for a maximum
host name length of MAXHOSTNAMELEN - 1.
Put parenthesis around sizeof args.
Make some variables static.
Fix telnetd -u (broken by my last commit)
Prompted by: bde
1999-04-07 08:27:45 +00:00
Eivind Eklund
d284feaa7b
Block for buffer overflow.
1998-12-13 21:02:28 +00:00
Matthew Dillon
3a3c0cf418
PR: bin/9031
...
Changed unbounded strcpy() to snprintf() to fix buffer overrun exploit
1998-12-12 20:56:53 +00:00
Bruce Evans
74b5e3ebd1
Don't assume that time_t is long. Fixed printf format errors.
1998-06-29 16:47:08 +00:00
Joerg Wunsch
09caeadeda
Use gethostname(3) to obtain the local host name, as opposed to uname(3).
...
Otherwise the length of the name is limited to 32 characters only.
1998-06-03 20:01:28 +00:00
Joseph Koshy
9595a75afa
Spelling corrections.
...
PR: 6829
Submitted by: Josh Gilliam <josh@quick.net>
1998-06-03 04:21:41 +00:00
Philippe Charnier
81389de071
Convert to mdoc. Header -> Id. Typo.
1998-02-03 07:30:22 +00:00
Bruce Evans
cc03533c8d
Removed most unused includes of <net/if_var.h> outside the kernel.
1998-01-16 17:38:56 +00:00
Masafumi Max NAKANE
b1d9db7283
Typo fix: bootgw -> bootpgw
1997-12-29 13:59:28 +00:00
Warner Losh
9bc34f7ce1
Use snprintf rather than printf out of paranoia
...
Obtained from: OpenBSD
1997-12-24 18:56:03 +00:00
Joerg Wunsch
71c971334b
Fix description of -t option.
...
PR: 3382
Submitted by: furuta@sra.co.jp (Atsushi Furuta)
1997-08-24 18:21:34 +00:00
Poul-Henning Kamp
798c69cd78
Don't rely on stderr to report bad news.
1997-05-11 14:27:03 +00:00
Peter Wemm
9e522f7a18
Revert $FreeBSD$ to $Id$
1997-02-22 14:22:49 +00:00
Jordan K. Hubbard
9a969423ea
Fix a hop count datatype bogon pointed out in PR#2642 (though my fix
...
was slightly different than the one submitted).
Submitted by: Elmar Bartel <bartel@informatik.tu-muenchen.de>
1997-02-07 20:03:49 +00:00
Jordan K. Hubbard
1130b656e5
Make the long-awaited change from $Id$ to $FreeBSD$
...
This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.
Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.
1997-01-14 07:20:47 +00:00
Garrett Wollman
702a1d0148
Update to match changes in <net/if.h>.
1997-01-03 20:19:50 +00:00
Garrett Wollman
628d2ac1b0
Fix up programs which expect <net/if.h> to include <sys/time.h> to instead
...
do it themselves. (Some of these programs actually depended on this
beyond compiling the definition of struct ifinfo!) Also fix up some
other #include messes while we're at it.
1996-12-10 17:11:53 +00:00
Poul-Henning Kamp
9649260fa5
doc/1994: spelling error.
...
Submitted by: David Leonard David Leonard <d@scry.dstc.edu.au>
1996-11-12 13:32:49 +00:00
Wolfram Schneider
148531ef1e
add forgotten $Id$
1996-09-22 21:56:57 +00:00
Poul-Henning Kamp
d3e560a1d3
Make the inetd suggestion slightly less confusing.
1996-09-19 08:21:18 +00:00
Paul Traina
86ca32cd60
bootpd.dump is in /tmp
1996-09-11 01:37:24 +00:00
Mike Pritchard
5ea43fd200
Add some missing manual page links.
1996-02-02 17:48:46 +00:00
Paul Traina
4f5241c655
Fix getif() to work under 4.3bsd and later
1996-01-23 09:44:45 +00:00
Paul Traina
6e159bbc62
Merge back in 4.4bsd ARP changes by hand
1996-01-23 02:22:16 +00:00
Paul Traina
0490e2a765
Add bootpgw makefile
1996-01-23 02:02:03 +00:00
Paul Traina
d1c0e75921
Fix conflicts from 2.4.3 merge
1996-01-23 01:58:00 +00:00
Paul Traina
e08ac58bbe
Import bootpd-2.4.3 from ftp.mc.com
1996-01-23 01:35:04 +00:00
Paul Traina
ee3ee9eeaa
Minor cleanups from NetBSD-current.
...
Obtained from: NetBSD
1996-01-23 00:57:19 +00:00
Bruce Evans
9987ab26d8
Fix SRCS (.c's were .o's) so that `make depend' works.
1995-09-28 17:33:16 +00:00
Bill Paul
017eb962e0
Uncomment 'CFLAGS+=ETC_ETHERS' -- we have support for this as of 2.0.5.
1995-07-25 23:38:40 +00:00
Rodney W. Grimes
6c06b4e2aa
Remove trailing whitespace.
1995-05-30 05:51:47 +00:00
Gary Palmer
fa877a53cb
The servers bootpd & bootpgw live in /usr/libexec not /etc. Correct the
...
references in the man page.
1995-04-12 00:24:48 +00:00
Doug Rabson
7cb18415b8
Discard any messages which are buffered on the routing socket before using
...
it otherwise the response to one of our routing messages could be lost due
to buffer overflow.
1995-01-30 11:11:43 +00:00
Doug Rabson
c48edefb3c
Change to use RTM_CHANGE when an arp entry already exists. This closes
...
problem bin/57 which was caused when an incomplete entry was present for the
host which was booting.
1995-01-16 18:57:45 +00:00
Jordan K. Hubbard
fb59d6ab65
__386BSD__ -> __FreeBSD__
...
I know that many of these entries are bogus and need to be revisited,
but let's get the tree working again for now and then do a pass through
looking at all the __FreeBSD__ entries, shall we?
1994-11-04 02:14:13 +00:00
Paul Traina
44099b7b1e
Rearrange bootpd
1994-09-30 05:45:07 +00:00