Commit Graph

134808 Commits

Author SHA1 Message Date
christos
a3df4155fc PR/29566: Izumi Tsutsui: login(1) shows wrong last-login-from host
Caused by improper initialization of struct lastlogx. Code has been
completely restructured, and we also now use pam_prompt() instead of
printf().
cvs: ----------------------------------------------------------------------
2005-03-05 20:32:41 +00:00
kleink
1c7e2b47c4 Provide select() and pselect() prototypes in <sys/select.h>, per
1003.1-2001, and leave the select() prototype in <unistd.h> for
compatibility.  To allow for transition, reorganization of this is
deferred until netbsd-3 gets branched.
2005-03-05 19:48:38 +00:00
heas
37ea29ba5a Perform a s/w checksum for packets that are not the same length as the length
field of the IP header (ip->ip-len) indicates they should be.  This handles
the case where an ethernet frame has been padded to meet the minimum ethernet
frame length or erroneously (my cisco switch unnecessarily adds 4 bytes to its
SYN).  This padding will be included in the hardware checksum and may be
non-zero, thus making it incorrect.
Also, clear csum_flags when we want a s/w checksum, since we may have started
down the h/w checksum path and determined that it was not usable.

While here, clean-up a few WS nits and ifdef INET the hardware checksum code.
2005-03-05 18:36:23 +00:00
heas
e7144a2c1a Perform a s/w checksum for packets that are not the same length as the length
field of the IP header (ip->ip-len) indicates they should be.  This handles
the case where an ethernet frame has been padded to meet the minimum ethernet
frame length or erroneously (my cisco switch unnecessarily adds 4 bytes to its
SYN).  This padding will be included in the hardware checksum and may be
non-zero, thus making it incorrect.
2005-03-05 18:32:59 +00:00
tnozaki
fe05f588fb add new citrus iconv module UTF-7.
thanks advice, yamt-san.
2005-03-05 18:05:14 +00:00
christos
7254715c73 add file locking. 2005-03-05 17:47:38 +00:00
christos
44f6417295 - someone must have been confused about how to use the stackgap.
- remove extra caddr_t
- cleanup unneeded syscalls.
- add locking.
2005-03-05 17:47:06 +00:00
chs
a6d3ad34e1 use attach args instead of dv_unit, just like cf_unit. 2005-03-05 17:40:56 +00:00
chs
805f942254 remove some more __P that I missed before. 2005-03-05 17:34:06 +00:00
jdolecek
07ad370ac0 const sptab[] 2005-03-05 17:31:07 +00:00
tnozaki
97264db5f1 correct uninitialized value `err'. 2005-03-05 17:31:03 +00:00
christos
cfa16776df cleanup and fix locking. 2005-03-05 17:16:17 +00:00
christos
fde63d0ea8 If authentication failed because the user was not in wheel, say so like
the old su did. From John Nemeth
2005-03-05 15:39:43 +00:00
jdolecek
5c1a928111 g/c debugging printf 2005-03-05 14:51:21 +00:00
jdolecek
a24b12baa6 make sure there is space between the username and next field when
username is longer than 9 characters
2005-03-05 14:46:29 +00:00
jdolecek
3dc8de67de JUMBO packet support tested and apparently working 2005-03-05 14:39:29 +00:00
jdolecek
f4707bed18 modify vge_m_defrag() to support > MCLBYTES chains, by allocating appropriate
number of mbuf clusters; also don't free the original mbuf chain

simplify vge_encap() and make error reporting more consistent

normalize vge_start() (including use of IFQ_* macros), and handle the case
when the input mbuf chain is defragmented

JUMBO packets seem to work fine now
2005-03-05 14:37:15 +00:00
he
dc60e3b6f4 sig_atomic_t isn't necessarily compatible with the %d printf format,
so cast to int before printing.  The value appears to be either 1 or 2,
so no information should be lost this way.
2005-03-05 14:34:29 +00:00
wiz
35a9dd4fdd Remove trailing whitespace, and use .Sq instead of manual quoting. 2005-03-05 14:28:31 +00:00
yamt
01e6fcc865 yamt-km status. 2005-03-05 14:19:48 +00:00
dsl
f93da09d3d Add a -v (verbose) flag 2005-03-05 14:07:55 +00:00
dsl
8476342d19 Some more optimisations - I must stop looking at this file!
Update copyright to include 2005
(I have a compleetly different version, but it is only a few 100 bytes
smaller due to a 560 byte data area.)
2005-03-05 14:07:15 +00:00
yamt
518fe4e114 yamt-km status 2005-03-05 07:54:19 +00:00
martin
1f4b8e2aae Field width has to be int - ptrdiff_t might be something larger. 2005-03-05 07:48:47 +00:00
thorpej
d72073667c txpullup event counters are no longer needed. 2005-03-05 05:05:43 +00:00
briggs
6fe1c07527 Fix checksum offload for fragmented packets. From John Heasley
on gnats-bugs in PR kern/29544.
Tested with an NFS client using default rwsize on an NFS server
with wm(4) interface configured IP4CSUM,TCP4CSUM,UDP4CSUM.
Prior revision required the server to have checksum offload disabled.
2005-03-05 02:46:38 +00:00
nathanw
ec956cbe3a Don't enable interrupts while calling trap() if the trapping frame
didn't have them enabled either.

Addresses PR port-macppc/29559.
2005-03-04 22:40:32 +00:00
perseant
8de99480fa Move "ifile is too large for your NBUFS/BUFPAGES" messages into a function.
Use log(9) to warn the user instead of printf(9).  Since the theory is that
the Ifile is "always in cache", but the greater performance risk is
when the inode entries can't be held in cache, note these two cases
separately, at different log levels (notice and warning, respectively).
2005-03-04 22:19:05 +00:00
scw
51315622ae Undo revision 1.175 (hi jason!) to prevent a buzz-loop in
bus_dmamap_load_mbuf(). This implementation already dealt
with zero length mbufs.

Addresses port-sparc64/29473
2005-03-04 22:04:51 +00:00
christos
cac7cf0758 PR/26823: Michael L. Hitch: Endianness flag were not preserved in the compat
superblock read routine.
2005-03-04 21:45:29 +00:00
dsl
9707cf749d Add regression tests for strptime() 2005-03-04 21:42:40 +00:00
dsl
3fa8666b4f A going-over with the optimiser, save over 500 bytes.
I think this is enough to get rescue_tiny to fit again.
While there fix some bugs:
- %y failed to subtract 1900 from tm_year
- %p (am/pm) only worked at the end of the string
- %E% was treated at %% (ie match a % character)
regression test being added....
2005-03-04 21:41:42 +00:00
kleink
35a86bcf49 Add lastlogx. 2005-03-04 21:16:10 +00:00
cube
4804c0d992 modload(8) already obtain the value of the machdep.booted_kernel sysctl
node, and use it as a reasonable default when no -A option is passed.

The difference is, modload(8) prefers /dev/ksyms rather than the sysctl
node, which is the behaviour we really want.

Unconditionally passing -A in rc.lkm prevents the loading of inter-
dependent modules from rc.d, as reported by Jeff Rizzo on netbsd-users.
2005-03-04 21:11:23 +00:00
he
5152518685 Add -lcrypt to link lines for applications using -lkrb5, so that they
link successfully when MKPIC=no, as is always the case for our ports
which do not support shared libraries.

Discussed with thorpej and christos.
2005-03-04 20:44:55 +00:00
he
8e8728c45c Introduce PAM_STATIC_LDADD and PAM_STATIC_DPADD. When compiling
with MKPIC=no, possibly because the target does not support shared
libraries, these include libraries required to resolve all symbols
which end up referenced from PAM-using applications.  The libraries
presently required are -lcrypt, -lrpcsvc and -lutil.

Add use of these variables which are currently set up to use PAM,
so that they compile when MKPIC=no.

Also, in the telnetd case, reorder the order of the libraries, so
that libtelnet.a comes before -ltermcap and -lutil, again to fix
link error when MKPIC=no.

Discussed with thorpej and christos.
2005-03-04 20:41:08 +00:00
christos
5c543845da PR/26934: Curt Sampson: Add -x flag to process wtmpx files that don't end
in `x'.
2005-03-04 17:16:13 +00:00
christos
add06817f7 PR/23409: Geoff C. Wing: make sure we only print nul terminated strings. 2005-03-04 17:11:19 +00:00
christos
cf31b04130 PR/10957: Ed Ravin: Cron does not execute the last line in crontab if
the trailing newline is missing. Fix by changing crontab(1) to not
allow installation of crontab files with missing trailing newlines.
2005-03-04 16:46:28 +00:00
dsl
7f90294800 Re-implement in terms of fseek0() 2005-03-04 16:25:20 +00:00
skrll
917b8e232e I added iwi(4) back in January. 2005-03-04 16:18:56 +00:00
christos
b8911768e7 Add lastlogx to the list of files created. 2005-03-04 16:16:00 +00:00
christos
f709224812 PR/18670: Charles Blundell: Add entries for lastlog and lastlogx 2005-03-04 16:14:46 +00:00
wiz
d2a070c12b Prefer mdoc formatting to roff. 2005-03-04 16:10:00 +00:00
christos
6a39b4f823 PR/28904: Kimmo Suominen: Fix documentation deficiencies with respect to
lastlogx use.
2005-03-04 16:06:26 +00:00
dsl
28c48df97b de __P 2005-03-04 16:04:58 +00:00
dsl
306d28231b When a boot floppy overran, the reported excess size was 8k too big. 2005-03-04 16:01:58 +00:00
christos
2bd312ac59 PR/29594: Geoff C. Wing: Allow root in rsh like we used to. 2005-03-04 15:30:59 +00:00
wiz
b67bc0fbc2 Re-remove superfluous .Pp. 2005-03-04 12:32:31 +00:00
wiz
e2bc5f883e Bump date for touchline() correction, and drop trailing whitespace. 2005-03-04 11:41:36 +00:00