martin
f20c7e6ccc
Add back NOGCCERROR for older gcc versions to fix the vax build
2013-03-05 10:19:58 +00:00
christos
28d11a42f4
make crash traces work on sparc64
2013-03-04 20:10:50 +00:00
christos
a9709efb6c
include Makefile.in from zic
2013-03-02 21:39:14 +00:00
christos
e7c27cfa88
fix warnings.
2013-03-02 21:38:19 +00:00
rmind
e9a253f3c1
npftest/npf_blockall_rule: set NPF_RULE_DYNAMIC flag for the test rule.
2013-02-18 23:09:20 +00:00
rmind
56910be779
- Convert NPF dynamic rule ID to just incremented 64-bit counter.
...
- Fix multiple bugs. Also, update the man page.
2013-02-16 21:11:12 +00:00
rmind
90957242c6
npftest: adjust for recent change.
2013-02-11 02:52:32 +00:00
rmind
82975ead3b
Allow filtering on IP addresses even if the L4 protocol is unknown.
...
Patch from spz@.
2013-02-11 00:00:20 +00:00
christos
9d0d34e51f
add -r flag to elide tty formatting
2013-02-10 23:58:27 +00:00
rmind
50c5afcad4
- Fix NPF config reload with dynamic rules present.
...
- Implement list and flush commands on a dynamic ruleset.
2013-02-10 23:47:37 +00:00
christos
9d8fe63b1b
remove trailing whitespace
2013-02-10 23:24:18 +00:00
rmind
5b97ba65a8
Disable -DWITH_NPF for now; will be converted to BPF mechanism.
2013-02-09 15:36:40 +00:00
rmind
0e21825481
NPF:
...
- Implement dynamic NPF rules. Controlled through npf(3) library of via
npfctl rule command. A rule can be removed using a unique identifier,
returned on addition, or using a key which is SHA1 hash of the rule.
Adjust npftest and add a regression test.
- Improvements to rule inspection mechanism.
- Initial BPF support as an alternative to n-code.
- Minor fixes; bump the version.
2013-02-09 03:35:31 +00:00
christos
60296e9005
CID/980002: missing va_end()
2013-02-09 01:16:39 +00:00
kefren
dc76929a7a
Stop confusing peer hello source with peer transport address
2013-02-05 13:02:33 +00:00
christos
c4e4c061b3
fill up the directory hierarchy so that leaf files are not ignored if
...
specified by themselves.
2013-02-05 00:59:03 +00:00
kefren
bed325c414
move code around a little bit in order to call get_ldp_peer correctly
...
check also for transport_address in get_ldp_peer
2013-02-04 20:28:24 +00:00
kefren
0c72a2ff7e
* Don't assume INET in connection path
...
* Lookup in hello list in order to get the correct LDP ID, instead of
transport address
* Improve an error message
2013-02-04 17:14:31 +00:00
wiz
c3af88d3bf
Grammar. Sort sections.
2013-02-04 11:02:32 +00:00
kefren
f3a2005146
Mention IPv6, operation mode and re-section a bit
2013-02-04 10:53:14 +00:00
kefren
c28e590b2c
correct the sockaddr compare
...
modify a couple of debug messages
2013-02-04 09:52:43 +00:00
kefren
898c6f9ff4
Don't try to connect to peers before sending hellos
2013-02-03 19:41:59 +00:00
christos
8c4c80c2ef
fix man page.
2013-02-03 19:16:06 +00:00
christos
6a0fd2f03e
add the ability to only output paths included in a spec file when creating
...
from a directory (-c)
2013-02-03 19:15:16 +00:00
christos
6c8acf010b
PR/47528: Izumi Tsutsui: eeprom(8) dumps core after 64 bit time_t changes
2013-02-03 15:30:04 +00:00
christos
c06c93b2d6
add a replace flag so we can overlay exiting files when we merge directories.
2013-02-03 06:16:53 +00:00
christos
c5e9014781
- more changes to make -O work
...
- fix err* calls.
2013-02-03 03:21:21 +00:00
christos
2d692a9557
add and document offset.
2013-02-02 20:42:02 +00:00
christos
a1bd32a9dc
remove bogus err.
2013-02-01 14:02:17 +00:00
christos
7a9c8c6550
while it is studly to play with token pasting, passing directly the type
...
is a lot more readable.
2013-02-01 14:00:33 +00:00
spz
a3b287e514
IPv6 linklocal address printing cosmetics
2013-02-01 05:40:07 +00:00
matt
9ac4c42034
Add arm support for cpuctl identify
2013-01-31 23:40:48 +00:00
matt
c4936fc4a0
Only complain about binding if we have more than 1 cpu. :)
...
(we always have more than 0).
2013-01-31 19:47:59 +00:00
christos
3cfc43473d
macroize to make it more type-safe.
2013-01-31 15:15:15 +00:00
christos
2431e0788b
the allow options are 8 bits wide.
2013-01-31 14:56:32 +00:00
christos
d84c38ae4e
- don't abuse vp->fs to mean struct fs for ffs and struct msdos_opts;
...
make it always fsinfo_t and change void * to that.
- kill unused structure members.
2013-01-30 19:19:19 +00:00
christos
0ea6b66554
gc global sectorsize.
2013-01-30 17:29:25 +00:00
christos
78e97492c8
buf is generic; it has nothing to do with ffs and will eventually be moved.
...
gc sectorize.
2013-01-30 17:29:05 +00:00
christos
9eb809c6b4
use "val" not "var"
2013-01-30 02:53:54 +00:00
christos
8459845f55
add missing arguments.
2013-01-29 21:54:19 +00:00
christos
aed9f95c54
workaround for gcc/vax
2013-01-29 19:45:47 +00:00
christos
50d02345aa
make everything use the generic options parser.
2013-01-29 15:52:25 +00:00
christos
36e6483010
Allow options without values meaning the empty string for string options
...
and = 1 to numerics.
2013-01-29 14:09:48 +00:00
christos
4f6a0577d9
mention me
2013-01-29 01:52:04 +00:00
christos
2246e723d1
deal with options that don't have a single letter argument.
2013-01-29 01:06:15 +00:00
christos
fa62ba2145
handle some of the options by the generic parser.
2013-01-29 01:05:57 +00:00
kefren
fcfdc0a1a0
Be a little more strict when sending notifications and checking PDU
2013-01-28 21:35:34 +00:00
kefren
1dc912ec99
Use satos instead of inet_ntop
...
Fix an alloc problem
2013-01-28 21:08:14 +00:00
christos
e4989541fe
- use emalloc and friends
...
- kill a bunch of global variables, more work to be done here
- homogenize option parsing. more work for cd9660
- use the new options parsing code to print an fs-specific usage
2013-01-28 21:03:26 +00:00
kefren
2157479565
permit notifications even if session not fully established
2013-01-28 20:32:04 +00:00
kefren
97dccf752c
Fix the transport address TLV mess I created after INET6 convert
...
Use a single loop to decrement and check hello list keepalives
Display transport address in show hello output
2013-01-28 20:06:52 +00:00
mlelstv
3b0450ca73
Do not use *bp after freeing it in brelse.
2013-01-28 10:16:35 +00:00
christos
863ded0e2b
now that msdos works, document it.
2013-01-28 00:23:18 +00:00
christos
0a54bc86e7
use pcbmap instead of the open coded hack now the pcbmap works.
2013-01-28 00:16:48 +00:00
christos
0e23c760cc
don't forget to initialize the cache.
2013-01-28 00:16:24 +00:00
christos
a61457fac4
fix recursion error handling. top level directory works.
2013-01-27 22:53:03 +00:00
christos
330e688f74
fix root detection (although the code is a noop)
2013-01-27 22:52:38 +00:00
christos
5f60de37ca
- don't forget to set de_pmp
...
- unexpand inserted tabs to the "." and ".." strings!
2013-01-27 22:52:19 +00:00
christos
180d451863
undo c99
2013-01-27 22:09:24 +00:00
christos
1df38ec62e
- some more debugging
...
- use msdosfs_update() -- should not be needed.
- remove <sys/mount.h>
2013-01-27 22:07:19 +00:00
christos
e502c2ffd0
This works well enough to populate plain files in the root dir. creating
...
directories fails.
2013-01-27 20:05:46 +00:00
christos
14d475a7bf
the max msdos file size is less than size_t so don't bother checking against it.
2013-01-27 16:03:15 +00:00
christos
804eae6b82
fixed directory entry allocation. Now the file data remains and is currently
...
broken.
2013-01-27 15:35:45 +00:00
christos
12188588a0
zero memory
2013-01-27 14:10:22 +00:00
christos
96e132de94
Don't print the pointers in debugging, it is not useful.
...
zero all memory
2013-01-27 14:10:03 +00:00
christos
7176d59dec
fix single letter parsing.
2013-01-27 14:07:12 +00:00
martin
c24cac0ff3
Make it compile on 32bit AND 64bit archs.
2013-01-27 12:25:13 +00:00
mbalmer
510ae4bec6
Allow this to compile on 32bit architectures.
2013-01-27 10:07:23 +00:00
kefren
8835c2ab89
re-enable peer authentication
2013-01-27 05:53:21 +00:00
kefren
dd2b4ae9ab
* add a new keyword for config file - passive-if and check if it's
...
allowed to use the interface before join/send mcast
* check if interface supports multicast before join/send mcast
2013-01-26 21:07:49 +00:00
kefren
ad4560771b
use predefined group consts/macros instead of ptoning strings
2013-01-26 19:44:52 +00:00
kefren
ef9728bbf2
allow compile without -DINET6
2013-01-26 17:46:50 +00:00
kefren
269ea2d396
modify structures in order to accomodate IPv6 according to
...
draft-ietf-mpls-ldp-ipv6. Correct a little bit IPv6 hello path
2013-01-26 17:29:55 +00:00
christos
c1cffbf8b8
depend on TOOLS instead of __NetBSD__ for extra functionality
2013-01-26 16:58:14 +00:00
christos
ed8edcd60d
make this cross-compile friendly.
2013-01-26 16:50:46 +00:00
christos
980139beab
add debugging, fix warnings.
2013-01-26 00:31:49 +00:00
christos
7e2d9be620
add more msdos stuff.
2013-01-26 00:20:40 +00:00
christos
9ac350be41
make the buffer functions look exactly like the kernel ones and add other
...
cruft to make the kernel files compile.
2013-01-26 00:19:39 +00:00
christos
0d93f138b3
fix previous.
2013-01-24 19:55:28 +00:00
christos
0d3cde2c88
make it static const
2013-01-24 17:44:59 +00:00
christos
562664d1e3
- Fix single letter option parsing.
...
- Instead of returning 1 << index and 0 on error,
return just index and -1 on error for the set_option*() routines.
2013-01-24 01:10:47 +00:00
christos
273b781b8e
ok, we can create the filesystem now.
2013-01-23 22:47:18 +00:00
christos
6981fea57c
return the bit of the option set, so that others can act on it.
2013-01-23 21:42:22 +00:00
christos
1c35cd3809
remove duplicated code, and try to cleanup parsing by using the shared code.
...
cd9660 needs a lot of work.
2013-01-23 21:32:32 +00:00
christos
0b556eae66
don't reuse the same variables
2013-01-23 21:03:15 +00:00
christos
3d364f5471
- add support for parsing different types; not just int.
...
- add beginning of msdos support.
2013-01-23 20:46:39 +00:00
dholland
dcd34a91c5
Stuff UFS_ in front of a few of ufs's symbols to reduce namespace
...
pollution. Specifically:
ROOTINO -> UFS_ROOTINO
WINO -> UFS_WINO
NXADDR -> UFS_NXADDR
NDADDR -> UFS_NDADDR
NIADDR -> UFS_NIADDR
MAXSYMLINKLEN -> UFS_MAXSYMLINKLEN
MAXSYMLINKLEN_UFS[12] -> UFS[12]_MAXSYMLINKLEN (for consistency)
Sort out ext2fs's misuse of NDADDR and NIADDR; fortunately, these have
the same values in ext2fs and ffs.
No functional change intended.
2013-01-22 09:39:11 +00:00
rmind
3107fd1eb5
- nbuf_ensure_contig: rework to use m_ensure_contig(9), which will not free
...
the mbuf chain on failure. Fixes some corner cases. Improve regression
test and sprinkle some asserts.
- npf_reassembly: clear nbuf on IPv6 reassembly failure path (partial fix).
The problem was found and fix provided by Anthony Mallet.
2013-01-20 18:45:56 +00:00
christos
dbf8567fb0
ut_line does not have /dev in front of it. Add it, from dholland@
2013-01-17 18:54:28 +00:00
kefren
5d14e92019
Make sure there is enough space for sockaddr subtypes
...
Use u_char for IP_MULTICAST_LOOP as specified in in.h
2013-01-16 08:28:44 +00:00
christos
14fb63db45
PR/47449: David Holland: Don't log to terminals with mesg n, unless it is a
...
wall message.
2013-01-15 22:37:04 +00:00
christos
6265ee0d3c
- move the terminal handling in apropos-utils.c since htmp and pager are also
...
handled there.
- underline the name, section, and description so that it is prettier.
- change to bold terminal the terminal highlighting to match with less
2013-01-14 21:26:25 +00:00
christos
ee0ec621f0
Fix the #ifdef NOTYET, namely use the terminal standout mode to highlight the
...
search terms.
2013-01-14 18:04:58 +00:00
christos
cc03b84d06
Since mdocml decided to name headers that conflict with system ones (term.h)
...
move the header inclusion one up.
2013-01-14 18:01:59 +00:00
dholland
1cb1b27ac4
fix thinko
2013-01-14 03:05:41 +00:00
riastradh
014f25f78d
After mount_lfs_parseargs, reset getopt for lfs_cleaner_main.
2013-01-10 08:35:26 +00:00
dsl
58b5bd2463
Add support for the xsave related data from cpuid 8.n.
...
Reorder the output so that the 'brand' string - which actually identifies
the cpu is output first.
2013-01-07 23:20:42 +00:00
dsl
6d15685a79
Use full model number to index name strings - a lot of 256 element arrays
...
don't matter in usespace.
Update list of intel family 6 model names (all current cpus) to include
everything upto and including sandy bridge and ivy bridge.
My i7 is no longer reported as a random P II.
2013-01-06 23:17:35 +00:00
dsl
cbb941ff11
The Intel and AMD docs (more or less) agree on how the cpuid 'extended
...
family' and 'extended model' bits are used to create larger values
than the original 16bit value allowed for.
Calculate and save these values 'up-front' and use them throughout.
Untangle the (backwards) nested switch statement for amd 'model 15' cpus.
Works as badly as ever on my i7.
2013-01-05 21:16:22 +00:00
dsl
cd90dce7d6
If the IOC_CPU_UCODE_GET_VERSION fails with ENOTTY, try issuing the
...
request that the amd64 kernel understands.
2013-01-05 16:38:12 +00:00
dsl
ef07d271f5
Fix x86_identify() for amd64
2013-01-05 15:33:00 +00:00
dsl
7d87936626
Change the i386 asm x86_identify() so it returns a value instead of writing
...
into global data.
Fix a stack alignment fubar that would cause a crash on a cirix 486.
Refactor identify code to common setup for normal identify and ucode
identify - which was missing a memset().
2013-01-05 15:27:45 +00:00
dsl
438bdb2a64
#include sys/ioctl.h
2013-01-02 19:24:30 +00:00
dsl
a97d5b18ca
pstat is a kmem groveller, set -D_KMEMUSER in CPPFLAGS
2013-01-02 10:43:11 +00:00
plunky
c5b7b2f38c
whitespace ' ' -> ' '
2012-12-26 17:57:49 +00:00
plunky
b504b003b7
add a comment pointing out that the link-mode may need to be
...
changed manually, for devices which cannot authenticate
for PR/47286
2012-12-26 17:33:09 +00:00
reed
71cb89f544
fix spelling typo
2012-12-25 20:31:03 +00:00
rmind
352f160615
- Rework NPF's nbuf interface: use advancing and ensuring as a main method.
...
Eliminate unnecessary copy and simplify. Adapt regression tests.
- Simplify ICMP ALG a little. While here, handle ICMP ECHO for traceroute.
- Minor fixes, misc cleanup.
2012-12-24 19:05:42 +00:00
rmind
57ff5416fd
- Add NPF version check in proplist as well, not only ioctl. Bump the version.
...
- Fix a bug in table entry lookup.
- Updates/fixes to the man pages. Misc.
2012-12-23 21:01:03 +00:00
wiz
0d9af955c5
Typo fix.
2012-12-20 20:31:01 +00:00
wiz
4612bed094
Add missing letter and use x.y versions for Fx/Nx.
2012-12-20 20:17:26 +00:00
christos
357b749529
move flavor to misc.c because pax needs it.
2012-12-20 19:09:25 +00:00
mlelstv
821ebbb223
joerg@: just use unsigned int please
2012-12-20 18:58:37 +00:00
christos
3afc22d858
Implement the "flavor" output discussed in tech-userlevel@, by Brooks Davis
2012-12-20 16:43:16 +00:00
jakllsch
0f85a59a25
Even though the kernel will fill the source address in, it looks weird in
...
trace output to see a not-obviously-bogus uninitialized source address go
into the kernel.
2012-12-15 04:40:33 +00:00
christos
d80c5e8655
make us compatible with FreeBSD (for -n) (Brooks Davies)
2012-12-15 01:24:40 +00:00
roy
c050bfe509
Intsead of forcing out each RA at shutdown and sleeping we now use
...
the existing timer model and wait for each RA to expire itself after
sending the required number of transmissions.
This allows for a faster and saner shutdown.
2012-12-14 09:48:31 +00:00
pgoyette
270592accd
Since we're no longer making a copy of the option args, we shouldn't
...
attempt to free it.
2012-12-14 05:29:28 +00:00
wiz
7503eaacd8
Formatting nit.
2012-12-13 21:49:38 +00:00
christos
dd6ce158a9
- no point in allocating memory to hold command line arguments.
...
- allocate memory inside the function used.
2012-12-13 20:06:42 +00:00
christos
a16db3405d
PR/47318: Henning Petersen: Replace (r)index with str(r)chr in inetd.c
...
And while here strncpy with strlcpy
2012-12-13 19:38:40 +00:00
christos
83779a48b3
PR/47316: Henning Petersen: Memory leak in envstat with config file.
2012-12-13 19:31:25 +00:00
roy
baf998f70e
Remove debug stuff.
2012-12-13 15:40:05 +00:00
roy
83ab565911
Remove the iflist array and store ifflags in rainfo.
...
Add support for SIGHUP to re-read the configuration for each interface.
If an invalid configuration is found, we continue to use the old one;
otherwise we expire the current one and then start advertising the new one.
Specififed interfaces don't have to exist at startup.
If specified interfaces arrive, load their config and start advertising.
If they depart, remove their rainfo structure and continue.
Fixes PR/43881 and PR/47311
2012-12-13 15:36:35 +00:00
christos
7f80b3db6a
- No mention of -t in the usage message or the manpage SYNOPSIS (Brooks Davis)
2012-12-12 15:52:10 +00:00
christos
40e1da4105
- No "j" in the getopt string. (Brooks Davis)
2012-12-12 15:51:41 +00:00
christos
d89c5e4d96
- two entries for rmd160digest in misc.c (Brooks Davis)
2012-12-12 15:51:04 +00:00
christos
cbc85fc672
-n is incorrectly supressing the ".." lines. (Brooks Davis)
2012-12-12 15:50:35 +00:00
roy
7175086342
Add support for the noifprefix keyword which stops rtadvd(8) gathing prefix
...
information from the interface if no addrs are present in rtadvd.conf(5).
2012-12-11 16:37:23 +00:00
christos
faa0524c86
PR/47304: Kouki Ooyatsu: -s (source IPv6 address to be used) option does not
...
work because the wrong variable is used.
XXX: Pullup to 6.
2012-12-10 18:11:33 +00:00
rmind
f960ba1c63
npfctl: add 'validate' command to check the config, but not load it. Update
...
the man page. Also add a small note about 'debug' command, PR/47298.
2012-12-10 02:26:04 +00:00
rmind
7d7f70e66e
- npf.conf(5): fix of the example config.
...
- Mention npf_ext_log in a comment.
2012-12-06 22:36:51 +00:00
blymn
9a57dec753
Fix error message when trying to add a group using -g =uid that
...
that already exists, the old version printed the wrong GID.
2012-11-28 11:31:27 +00:00
blymn
2da0bfd2ff
Google Code In bug fix by Philip Hayes, fixes bin/41049
2012-11-28 11:20:58 +00:00
rmind
5111d7eafd
npfctl: extend syntax for extracting interface IP address(es) by the family.
2012-11-26 20:34:28 +00:00
pooka
4037e69f4e
Attempt 2 at fixing DragonFly util.h conflicts: include util.h only for
...
non-tool builds.
(why does the tool build prefer host headers instead of compat headers?)
2012-11-26 20:13:54 +00:00
rmind
4a1b0d45b2
npfctl(8): mention table listing.
2012-11-15 22:22:53 +00:00
rmind
b4a9940e50
npfctl: switch to ecalloc(3).
2012-11-15 22:20:27 +00:00
njoly
3373228440
Fix mandoc(1) output, use right arrow special character.
2012-11-14 23:11:27 +00:00
kefren
27b5caabc1
Use local-link address as source for hellos
2012-11-13 06:58:58 +00:00
pgoyette
76b8726c47
Repair another %lu --> %zd - this one was caught by building for
...
evbmips port
2012-11-13 01:08:51 +00:00
christos
c0b74ca714
fix the build; ssize_t is %zd not %lu
2012-11-12 22:51:42 +00:00
wiz
54f8ce07cd
New sentence, new line. Bump date for previous.
2012-11-12 22:46:59 +00:00
kefren
6cb0642362
* add initial IPv6 support - still incomplete at this moment, but it sends
...
out there IPv6 hellos. Interoperability not yet tested.
* sync man page with reality
2012-11-12 18:39:00 +00:00
apb
f950d3cf71
The number of active vnodes may grow in between the sysctl call
...
that figures out the size, and the sysctl call that fetches the data.
Previously, any growth at all would have resulted in this error message:
pstat: sysctl: KERN_VNODE: Cannot allocate memory
Now allow for growth of 100 vnodes, or 5%, or both. Growth in
excess of 2% or 6000 vnodes has been observed in practice. Also
ignore ENOMEM from the second sysctl call, in case the growth was
even more than we anticipated.
2012-11-10 11:01:52 +00:00
christos
98f3134321
If you cannot parse .SH NAME, like in the case of the ksh93 man page
...
where the .SH is followed by a conditional:
.SH NAME
.if \nZ=0 \{\
text text text
.\}
at least don't core-dump.
2012-11-08 19:17:54 +00:00
dholland
cbb9c7214a
Minor grammar fix, from Bug Hunting in PR 47159.
2012-11-06 19:08:45 +00:00
rmind
7b016567c0
npfctl: switch to efun(3) routines.
2012-11-05 23:47:12 +00:00
christos
8c13db6ad0
add the headers you need
2012-11-04 22:47:21 +00:00
christos
4f048a363d
include the headers you use
2012-11-04 22:46:08 +00:00