Commit Graph

128 Commits

Author SHA1 Message Date
pooka
e8de1d91d0 be a happy crunch build 2010-12-13 19:19:10 +00:00
pooka
f9740ada7f RUMP_ACTION -> RUMPPRG 2010-12-13 17:42:17 +00:00
pooka
afd4d3a773 add compile-conditional rumpclient support 2010-11-11 22:56:38 +00:00
christos
4d3e7c5df2 remove ancient ifdefs (Aleksej Saushev) 2009-11-02 00:47:09 +00:00
lukem
cefb0777de fix sign-compare issues 2009-04-11 06:48:36 +00:00
christos
2037025cb5 PR/41111: Ed Ravin: ping -R gives misleading error when remote side doesn't
support record route
Deal with source route and record route specially giving a meaningful error
message.
Pullup to 5.0?
2009-03-31 19:51:11 +00:00
seanb
fb884caea6 Shutdown sloop socket for read as it's never read on to
prevent mbufs from queueing in its recv buf.
PR:21459
2008-01-08 20:03:09 +00:00
tls
4147a3c54a Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry.  RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros.  Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default.  Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.
2007-05-28 12:06:17 +00:00
hubertf
df06563bc3 Remove more duplicate #includes,
from Slava Semushin <slava.semushin@gmail.com>
2007-01-17 21:59:49 +00:00
elad
38e12255a4 Change error message to say "setuid", forgotten in previous commit.
Pointed out by Ray Lai, thanks!
2006-09-28 16:01:16 +00:00
elad
d13f82cf17 On 2nd thought, setuid() is better here. 2006-09-24 11:17:09 +00:00
elad
545c393d67 PR/28741: Michael Santos: ping does [not] drop root privileges
Moved socket calls way up, and called seteuid(getuid()).
2006-09-24 11:05:09 +00:00
yamt
ff6f0069a4 prtsig: remove a mysterious abort(). 2006-07-14 05:43:49 +00:00
christos
0ca3098868 Use SA_NOKERNINFO instead of playing with the tty. 2006-06-03 18:19:55 +00:00
christos
53516f73e1 Factor out the tty code and explain we prefer to stop in the ^Z bg case
when we exit, rather than kill the tty setting.
2006-06-01 18:04:08 +00:00
christos
8d1784140b PR/33623: Chuck Cranor: Ping stops when ran in the background
because it tries to set the tty not to print kerninfo. Change it
to only only play with the tty when ping is running in the foreground
(and will not stop when calling tcsetattr()). In my opinion, it is
preferable to print the kerninfo line with the ping info message
rather than to mess with the tty, but that's just me.
2006-06-01 15:59:31 +00:00
mrg
0c37c63edc change (mostly) int to socklen_t. GCC 4 doesn't like that int and
socklen_t are different signness.
2006-05-09 20:18:05 +00:00
pavel
d8e5c31820 Clarify and correct the description of the -R (Record Route) flag.
Reviewed by jnemeth, whith help from him.
2006-03-21 22:54:46 +00:00
pavel
c38d26c2d6 Bump date, requested by wiz. 2006-03-21 09:54:12 +00:00
pavel
104eb3fa9f -I does work for unicast pings too (it sets the source address).
With some language help from dsl.
Reviewed by jnemeth.
2006-03-21 09:15:53 +00:00
cjep
721eb939af add -h option in synopsis. Fixes PR#25863 from Kouichirou Hiratsuka. 2004-06-08 08:05:30 +00:00
kleink
faed9caa49 There's no point in bringing PRNG output to network byteorder prior to
transmission.
2004-05-13 20:27:38 +00:00
itojun
56ae6a5d4c do not disclose endian. henning@openbsd 2004-04-22 01:39:20 +00:00
itojun
22b15c680d do not disclose endianness/sizeof(long) on probe packet. idea from openbsd 2004-01-26 02:21:30 +00:00
jmmv
b635f565e7 Homogenize usage messages: make the 'usage' word all lowercase, as this seems
to be the most common practice in our tree.
2004-01-05 23:23:32 +00:00
agc
276d62f603 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22308, verified by myself.
2003-08-07 10:04:22 +00:00
itojun
506c5eeb9e permit -s 0. from Maxim Konovalov 2003-04-14 10:18:37 +00:00
wiz
990562bfef .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
itojun
ff4dc2f86d set sa_len right 2002-11-16 16:39:55 +00:00
itojun
75af200131 die if strdup fails 2002-11-16 16:02:03 +00:00
itojun
949bb0438c use strlcpy. initialize sa_len correctly. 2002-11-16 14:09:16 +00:00
jdolecek
f5b83162de change description of -w option to match reality
this fixes bin/12113 by Jim Bernard and bin/16011 by gabriel rosenkoetter
2002-10-26 12:06:04 +00:00
wiz
2fb4b1db52 New sentence, new line. By Robert Elz with minimal fixes. 2002-10-01 13:40:23 +00:00
mycroft
c7d63f201b Touch up error/warning messages. 2002-09-21 18:33:51 +00:00
mycroft
75cf9dce87 select() -> poll() 2002-09-21 18:24:40 +00:00
matt
0228ca2671 Add support for printing out messages about missing packet gaps. This is
done with the -v switch.  If -q is also given with -v, then only the
packet gap messages will be printed along with summary after each gap
message.
2002-08-12 18:24:53 +00:00
itojun
f104c36660 u_short cleansing (use u_int16_t where appropriate) 2002-08-01 08:56:59 +00:00
itojun
16e84a7542 clarify comment when nreceived > ntransmitted. from deraadt 2002-05-31 01:10:53 +00:00
bjh21
be27950398 .Nm . -> .Nm "" . 2002-04-06 15:49:30 +00:00
wiz
02b65f0c5c Sync options with usage. 2001-12-20 20:23:09 +00:00
soren
dc53bf3cba Sync getopt() / man page with actual getopt options. 2001-12-20 20:10:33 +00:00
wiz
f8379a3c43 Simplify markup, use .Nx, sort sections. 2001-11-16 12:05:38 +00:00
wiz
4ce43ae0cd Whitespace nits 2001-11-16 10:25:42 +00:00
lukem
7623928b3a fix a couple of -Wshadow warnings 2001-11-01 08:06:57 +00:00
yamt
01f308933f - use IP_MAXPACKET instead of 65535.
- change max packet size from 65468 to 65467(= IP_MAXPACKET-60-8).
2001-10-10 15:58:04 +00:00
yamt
d549add37f - fix overrun bug.
- bump bufsize to fix "packet loss" with large packet.
2001-10-09 19:17:02 +00:00
jhawk
18883403cb Update Dd to rev 1.31 (ipsec changes)
Some hosts and gateways ignore record route, but not "many." Of course,
  more are firewalled. But that's not what was meant here.
Expand flood-pinging admonition to include multicast addresses.
Note flags that conflict with ping under Solaris and FreeBSD.
Reorder BUGS in rough order of significance.
2001-06-25 01:12:53 +00:00
wiz
73f545bb5b Drop arguments of .Os. 2001-06-05 11:22:41 +00:00
jhawk
1277f0fe42 Xr icmp(4), inet(4), ip(4) 2001-04-03 14:00:09 +00:00
bjh21
0009ba56a7 Add a dependency on libm. 2001-02-20 00:15:56 +00:00