Commit Graph

138932 Commits

Author SHA1 Message Date
rpaulo 0095c1a604 Added a new section called "SYSCTLS" explaining the purpose of
net.bpf.maxbufsize, net.bpf.stats and net.bpf.peers.
Bump the date.

Reviewed by: wiz@
2005-08-04 20:13:29 +00:00
rpaulo 92c6f16501 Added net.bpf.peers and net.bpf.stats and bumped the date. 2005-08-04 20:10:24 +00:00
rpaulo 78d05017af Inform the user that net.bpf.stats and net.bpf.peers are viewable with
netstat(1).
2005-08-04 19:44:18 +00:00
rpaulo 9ce7ce6bf0 Added #include <kvm.h> since netstat.h, which is included too, needs it. 2005-08-04 19:41:28 +00:00
rpaulo 22a0fcf290 Added bpf.c. 2005-08-04 19:40:00 +00:00
rpaulo 66daeed445 Implemented the userland part of the BPF statistics and BPF peers,
net.bpf.stats and net.bpf.peers sysctls respectively. netstat(1) now
has an additional syntax:
	netstat [-s] [-B] [-I Interface]

Only the super user can see a list of BPF peers with the following command:
# netstat -B
Active BPF peers
PID     Int     Recv     Drop     Capt     Flags  Bufsize  Comm
4941    lo0     0        0        0        I--S-  262144   tcpdump
252     ex0     19668    0        5        I-RS-  32768    dhclient

And every user can see the BPF statistics with:
$ netstat -s -B
bpf:
        19669 total packets received
        5 total packets captured
        0 total packets dropped

This idea came from FreeBSD (Christian S.J. Peron) but, currently, they
doen't have a userland utility in the base system to read the sysctls.

Reviewed by: christos@
2005-08-04 19:39:40 +00:00
fvdl 95178de766 Missed commit from the linux compat changes dealing with setting fs and gs:
copy the PCB fs and gs on fork.
2005-08-04 19:31:53 +00:00
rpaulo 2fcfc4c276 Implemented the kernel part of BPF statistics and BPF peers, net.bpf.stats
and net.bpf.peers sysctls respectively.

A new structure was added to describe the external (user viewable)
representation of a BPF file; a new entry was added to the bpf_d
structure to store the PID of the calling process; a simple_lock was added
to protect the insert/removal from the net.bpf.peers sysctl handler.

This idea came from FreeBSD (Christian S.J. Peron) but while it is
implemented with sysctl's it differs a bit.

Reviewed by: christos@ and atatat@ (who gave me the tip for the net.bpf.peers
sysctl helper function).
2005-08-04 19:30:47 +00:00
fvdl ff4290fdee In pmap_map(), do not do TLB shootdowns. It is only used for kernel dumps,
at which point other CPUs are likely halted, and the addresses mappped
are temporary anyway.
2005-08-04 19:29:26 +00:00
fvdl b7bb8fccf1 Fix parsing the page tables. 2005-08-04 19:26:02 +00:00
peter 1723484e06 Implement option "-D", for running ftpd in standalone mode (daemon).
ftpd will listen on the default FTP port for incoming connections and fork
a child for each connection.  This is lower overhead than starting ftpd from
inetd(8) and thus might be useful on busy servers to reduce load.

Inspired by FreeBSD.
Reviewed by lukem@.
2005-08-04 17:41:35 +00:00
tron 72f9a2a842 Return correct error on all zero length codes. Fix from Gentoo bug 94584. 2005-08-04 14:36:42 +00:00
skrll 47e074fbcd Debug fixes. 2005-08-04 07:51:09 +00:00
skrll bb9f6f5786 Fix a typo. 2005-08-04 06:17:26 +00:00
christos 9f80093159 remove unnecessary casts to void * functions (Max Okumoto) 2005-08-04 00:20:12 +00:00
augustss 055b084f88 Regen. 2005-08-03 23:08:19 +00:00
augustss 6bbb83730c There is no need to include the vendor name in the product description,
so remove some.
2005-08-03 23:08:08 +00:00
augustss 6bc981d36b Regen. 2005-08-03 23:07:23 +00:00
augustss 82cde0f6e0 Add a Dell keyboard. 2005-08-03 23:07:08 +00:00
rpaulo afc37a8433 Fix another typo in comments found by Ricardo Nabinger Sanchez
on the freebsd-arch mailing list.
2005-08-03 22:59:50 +00:00
uwe 6b95067c33 Support HP 620LX. On/off and brightness are the same as in 680.
Contrast control is different but similar enough, so refactor the code
to support both.  Tested by Christer Andersson.

XXX: platid_mask_MACH_HP_LX also matches 360LX.  It's not confirmed
whether touch panel in 360LX is connected in the same way.  We may
need to regroup platid masks.
2005-08-03 22:25:17 +00:00
augustss 97455524f1 Regen. 2005-08-03 21:18:07 +00:00
augustss 8a14d84884 Add a Targus mouse. 2005-08-03 21:17:50 +00:00
christos 62a6753895 from Max Okumoto: debug should be int, not boolean. 2005-08-03 20:55:01 +00:00
gdt e25f2a0d87 Restore to working order; this has apparently been nonworking since
the decapsulator dispatch changes in 2001.  Problems found and fixed
by Christine Jones of BBN.  Specifically:

Check for a packet's protocol to be ENCAP_PROTO, not AF_INET.

Remove one-back cache for last vif, because vif_encapcheck is called
for each vif, rather than being expected to find the appropriate vif.
The cache usage caused packets to be input on the wrong vif and hence
usually dropped.

In vif_encapcheck, verify the local source as well.  While mrouted
endeavors not to create multiple tunnels with a peer, a packet
arriving with the wrong local address is still wrong and should not be
accepted.  (This is a correctness nit, not a security issue.)  Order
checks to fail quickly for packets being checked to see if they match
a vif other than the one they belong on (essentially, check peer
source address in outer header first).

Claim 69 bits of match (32 each from outer src/dst and 5 from checking
that inner dst is within 224/5).  This should result in the vif having
a higher priority for multicast packets compared to a parallel gif(4)
tunnel, and that both seems appropriate if both are configured and
seems to match the semantics expected by the decapsulator dispatch
machinery.

(These changes were made in 2.99.15 and about a dozen nodes are
running them with many vifs.  ip_mroute.c has not changed
significantly since then (February 2005) and the changes applied
cleanly to current and compile cleanly.)
2005-08-03 18:20:11 +00:00
elad 5b5c5125f4 Change how we handle duplicates in the signatures file.
Just give collision information (filename, device, inode, old and new
entry type and algorithm, and note if the fingerprint is the same or not.
2005-08-03 18:05:16 +00:00
shige 9bc1bf15c8 Add md-kernel for installation: INSTALL_OPENBLOCKS266. 2005-08-03 14:55:37 +00:00
christos 262f96a2f6 Fix reversed test; from Gerry Swislow 2005-08-03 13:41:38 +00:00
onoe 5c08c84474 Fix mbuf leak in nfssvc_nfsd(). 2005-08-03 06:25:11 +00:00
elad a6ac91e102 Sync with reality.
- We now support multiple entry types and not just one
- We care for kern.veriexec.strict, not securelevel
- Add sysctl(3) to SEE ALSO
2005-08-02 18:54:53 +00:00
elad 42735a8747 Sync with reality.
- Verified Exec -> Veriexec
- pseudo-device is `veriexec'
- veriexec.conf -> signatures, and mention /etc/signatures as the default
  location
- We use veriexec's strict level, not the system securelevel
- Mention the `direct' option
- Mention that the signatures file can have multiple options in a single
  entry, comma-separated
- Mention that both `direct' and `indirect' access modes are implied
  if no access modes are explicitly mention in the options
- Bump date
2005-08-02 18:06:14 +00:00
elad 6e4a854552 Support multiple entry types. Direct, indirect, and file can now be
combined in the signatures file using commas.
2005-08-02 16:14:10 +00:00
rpaulo 2310089ccf Fix typos found by Giorgos Keramid and Steve Kargl on freebsd-arch mailing
list. They were found on libc x86_64 MD code, but I noticed that they are
present on i386 too.
2005-08-02 14:25:40 +00:00
rpaulo 270bc85b33 Fix typos found by Giorgos Keramid and Steve Kargl on freebsd-arch mailing
list.
2005-08-02 14:20:49 +00:00
kent 969266b7d7 * azalia_mixer_init()
set AUDIO_MAX_GAIN/2 to all of volume items.
2005-08-02 13:20:50 +00:00
christos 68d7e34555 On a fatal error, we want to stop processing the macro buffers. 2005-08-02 12:11:14 +00:00
kent 98532e5e3e - handle widgets without `format override' or `amp param override'
- support for volume knob
2005-08-02 11:17:56 +00:00
tron 4e72290930 Add missing second argument to another call of ch_reset(). 2005-08-02 10:20:33 +00:00
macallan af63a6798e fix a stupid typo 2005-08-02 01:35:05 +00:00
macallan ddb036e135 disable mmap()ing the framebuffer at offset 0 on sparc64 because some ATI
firmware likes to put PCI memory resources into this range, notably a Rage
IIc which puts the 2nd register aperture to 0x2000.
This should allow a few graphics chips to work with XFree86 which previously
failed with something like this:
(WW) ATI:  PCI/AGP Mach64 in slot 2:5:0 could not be detected!
No devices to configure.  Configuration failed.

Thanks to Florian Stoehr for doing most of the work tracking this down.
2005-08-02 01:32:13 +00:00
christos 0895008a17 Don't reset the macro strings each time we enter el_gets(), otherwise
el_push() is unusable programmatically.
2005-08-01 23:00:15 +00:00
christos 5ef1593468 Cleanup and make the arrays dynamically resizable. This will help for
only version 3, because version 2 is still artificially limited to MAXUSERS.
2005-08-01 21:08:34 +00:00
skrll cbdc27bb6a - Match more product ids.
- Don't initialise ic_phytype twice and do initialise ic_state.
- announce available rates.
- mark interface down if firmware crashes for the radio transmitter
  gets turned off.
2005-08-01 15:14:54 +00:00
skrll 8f0372bc09 Debug code tidy up. 2005-08-01 15:00:24 +00:00
christos ee399edc73 Don't forget to initialize h_del; from Julien Torres. 2005-08-01 14:34:06 +00:00
shige 2583f14538 Remove all IDE controllers except for hptide. 2005-08-01 13:02:00 +00:00
wiz 4b9a77db2a Remove another outdated variable. 2005-08-01 11:38:30 +00:00
xtraeme 5057789f26 Don't show ptyfs in the display, it's useless. 2005-08-01 02:38:03 +00:00
christos b6a232217f Pass lint and get/setprogname. 2005-07-31 20:19:40 +00:00
christos bce5269120 Move extern kernel variable declarations, into a _KERNEL protected session
so that the don't pollute userland's namespace.
2005-07-31 20:18:32 +00:00