Commit Graph

10962 Commits

Author SHA1 Message Date
christos
29f735df08 remove -v no/op 2014-04-22 15:55:16 +00:00
khorben
fa8ee723bd Use base 10 when logging the exit status or exit signal for sub-processes,
instead of hexadecimal.
2014-04-05 23:36:10 +00:00
gson
815d09e5bc When daemonizing, delay the parent exit until the daemon is ready to
provide service.  Fixes a race that is a third possible cause of
PR misc/48282, in addition to the ones in rpc.rquotad and nfsd that
were fixed earlier.
2014-04-04 12:45:59 +00:00
christos
ef020f85b5 say why we can't use the password or the group databases. 2014-03-31 00:00:22 +00:00
skrll
217c0eb552 Build everything on all arm variants 2014-03-30 07:29:22 +00:00
joerg
d101c0e239 Fix syntax (hi apb!) 2014-03-29 22:45:31 +00:00
apb
34bb1ddc72 Add a statuslen argument to get_pr_status(), and use it
as the length in a call to strlcpy().  The previous code would
have used the size of a pointer as the length.
2014-03-29 18:54:36 +00:00
apb
a88920f53c sizeof(pointer) is not a good buffer length to pass to strlcat.
Introduce a new variable, clntpathmaxlen, to hold the correct
buffer length, and pass that to strlcat.

The incorrect buffer length would have caused <filename>.<hostname>
lookups to fail.
2014-03-29 18:23:00 +00:00
gson
da700ef1b2 When daemonizing, delay the parent exit until the daemon is
ready to provide service.  Fixes one of the race conditions
of PR misc/48282.
2014-03-29 13:50:53 +00:00
skrll
3cebbec2c7 Simplify 2014-03-29 09:36:18 +00:00
joerg
778b2846d2 Don't modify format string, use asprintf to format the original msg and
syslog the result.
2014-03-25 21:07:59 +00:00
joerg
005b3ff4b3 Don't cast to time_t just to implicitly cast to uint32_t next. 2014-03-25 17:17:44 +00:00
hannken
f3cf481632 - Make VI_XLOCK, VI_CLEAN and VI_LOCKSHARE private to kern/vfs_*.c.
- Make vwait() static.
- Add  vdead_check() to check a vnode for being or becoming dead.

Discussed on tech-kern.

Welcome to 6.99.38
2014-03-24 13:42:40 +00:00
riastradh
c14008e496 Don't choke on an assertion for an RSDT with a null address entry. 2014-03-20 14:39:43 +00:00
roy
263486c97b If IPv6 is disabled for an interface, mark all addresses as tentative.
If enabled, check for a duplicated link-local address and abort enabling
as per RFC 4862, section 5.4.5. If allowed to enable, perform DAD
on the tentative addresses.

Taken from FreeBSD.
2014-03-20 13:34:35 +00:00
dsl
0f00e137a7 Change previous to use uint32_t for 'interval'.
The value is a random interval in usec obtained by reducing a uint32_t
  value modulo 1000000 (multiplied by a delay in seconds of 1).
The value is then being split into secs+usec and assigned to a timeval
  (and an interval).
With -Wsign-conversion the type has to be either an unsigned 32bit
  type, or a signed 64bit one.  This is just plain stupid.
Warning about conversions between signed and unsigned types really
  only makes sense if the compiler is dynamically tracking the domain
  of the value.
2014-03-18 20:39:55 +00:00
christos
23b7b4606f use time_t for time 2014-03-18 19:30:09 +00:00
riastradh
6cb10275d0 Merge riastradh-drm2 to HEAD. 2014-03-18 18:20:35 +00:00
christos
5fe0c59dd8 KNF, bump warns, fix warnings to print the program name. 2014-03-18 00:16:49 +00:00
riastradh
4ec7cf26b7 Convert right-recursive rules to left-recursive ones.
This should obviate the need for the workaround of a large stack in
order to handle many rules.

No change in the resulting plists.

ok rmind
2014-03-15 15:22:37 +00:00
rmind
f1567f86d3 npfctl_bpf_cidr: another buf fix in handling IPv6 masks (bug found on ARM). 2014-03-15 08:46:01 +00:00
rmind
167f6f25d6 NPF: add support for "stateful-ends". 2014-03-14 11:29:44 +00:00
martin
4765e08d28 Fix wrong variable name, PR bin/48647 from Jim Bernard. 2014-03-08 16:36:24 +00:00
joerg
5c4c6caf71 Make the abs() use check non-fatal for a bogus use in the LFS cleanerd. 2014-03-04 21:06:47 +00:00
joerg
4f76b089a9 Don't use abs on unsigned values. 2014-02-27 17:43:35 +00:00
joerg
33ddbd4a4d Expect long long to be larger than uint32_t and use llabs after casting
the uint32_t.
2014-02-27 17:43:02 +00:00
skrll
6d3ceb1d61 Rename NetBSD/hp700 to NetBSD/hppa.
Unfortunately our VCS isn't very helpful here.
2014-02-24 07:23:38 +00:00
szptvlfn
4893e5b805 Update URL 2014-02-19 09:13:21 +00:00
rmind
27b83b3d9e npfctl_print_nat: fix the byte-order of the port. 2014-02-19 01:43:16 +00:00
rmind
247d861365 npfctl: take into account all addresses when multiple interfaces are
specified in a set of elements.
2014-02-17 00:45:24 +00:00
jmmv
d90ac76afc Fix path to atf-run.hooks after import of atf-0.19.
Problem found by martin@.  Not spotted by me, I think, because I always use
postinstall on an etc.tgz file and forgot about this code path.
2014-02-15 01:54:17 +00:00
rmind
a732dba5fc G/C some todo items 2014-02-14 02:01:12 +00:00
rmind
d199f930bb Document NAT algorithm option in the grammar of "map". 2014-02-14 01:52:58 +00:00
rmind
068cee2998 NPF: add support for IPv6-to-IPv6 Network Prefix Translation (NPTv6),
as per RFC 6296.  Add a unit test.  Also, bump NPF_VERSION.

Thanks to S.P.Zeidler for the help with NPTv6 work!
2014-02-13 03:34:40 +00:00
rmind
82f6ff32b1 npfctl_bpf_cidr: fix a bug in handling of smaller IPv6 masks. 2014-02-13 00:42:01 +00:00
rmind
1e2389ed0b npfctl_print_table: add a "cdb" type. 2014-02-12 01:42:50 +00:00
chs
49d6a7c368 in update_db(), extract the full list of files to update from the db
before actually updating anything, since changing the db while the query
that extracts the list of files is still in progress results in
the extraction query failing before it finds everything.
2014-02-10 00:23:36 +00:00
rmind
8b83480d27 NPF:
- Adjust the syntax - remove "inet" keyword in favour of more explicit
  "inet4" for the address family.  Consistent with "inet6" for IPv6.
- Adjust and improve the man page a little bit.
2014-02-08 01:20:09 +00:00
rmind
8274d601f9 NPF: add support for static (stateless) NAT. 2014-02-07 23:45:22 +00:00
christos
61a4b10e07 fix vax build. 2014-02-06 18:48:09 +00:00
wiz
83d796ca12 Update count. Add serial comma. 2014-02-06 07:36:36 +00:00
rmind
ffcdc4af8d Add support for CDB based NPF tables. 2014-02-06 02:51:28 +00:00
rmind
e43f79569a npftest: fix previous harder - pass and use libc's random(3). 2014-02-05 03:49:48 +00:00
rmind
bb1fedd189 npftest: fix the failure of NAT test -- adjust for RUMP's conversion to
the in-kernel CPRNG (hi pooka!).
2014-02-05 03:30:13 +00:00
rmind
55b0c96054 - npfctl: fix table IDs (breakage since the table naming was added).
- libnpf: remove npf_table_exists_p() from public API.
2014-02-03 02:21:52 +00:00
skrll
69d52dbe21 Remove harmful whitespace. Now the /var/shm check can succeed quietly. 2014-01-29 12:56:28 +00:00
plunky
bb39753de6 spelling correction - recieved -> received 2014-01-26 08:31:17 +00:00
christos
9cfdbcfd93 Fix the "separate root" test. If we get a permission error check for separate
root. But if we get ENOENT, always succeed. Otherwise if someone removes
the db files or they get corrupted, you can never recreate them.
2014-01-26 01:57:04 +00:00
martin
319a65afc2 Add a check to remove the temporarily (eroneously) created /@RUNDIR@
(PR bin/48529)
2014-01-17 19:06:57 +00:00
christos
2b043c75b6 eliminate use of bsd.sys.mk from Makefiles 2014-01-16 01:15:32 +00:00
joerg
12f8f2b852 Sync with interface change in mdocml 1.12.3. 2014-01-05 19:26:44 +00:00
msaitoh
e84a097d09 - Rename x86_print_cacheinfo() to x86_print_cache_and_tlb_info() because
this function prints TLB info, too.
- Remove an extra printf when verbose flag is set.
- Print the highest extended info level as the basic info level.
- Sort function.
2014-01-04 18:13:48 +00:00
christos
1497d945c9 smbfs has moved. 2013-12-25 23:35:17 +00:00
wiz
3acb5aa34e Use more common phrasing. 2013-12-23 12:39:55 +00:00
msaitoh
e05de3375f Add verbose flag.
On x86 cpu, cpuctl -v identify dumps the return values of the cpuid
functions. The max levels are taken from CPUID 0 and CPUID 8000_0000.
It's useful for the future CPU.
2013-12-23 12:35:33 +00:00
msaitoh
2620370891 CPUID leaf 2 and 4 are only for Intel processors. 2013-12-23 11:17:20 +00:00
msaitoh
1c10986642 Add comments. Remove comments. No functional change. 2013-12-23 10:13:59 +00:00
joerg
0850b0cc3c long_ad is a mix of struct and union, so use memset to initialise in the
one place it is used.
2013-12-19 23:00:50 +00:00
christos
1985c705e9 initialize dummy_ref 2013-12-19 22:10:03 +00:00
martin
261edc5997 Simplify code to print the router/prefix list: use memcpy and local structs
properly aligned on the stack to decode the binary format passed by the
kernel - instead of (bogusly) assuming the format will obey all local
alignement requirements.
2013-12-17 20:26:46 +00:00
njoly
b0550d75f0 Skip varshm check if there is no fstab (like in chroots). 2013-12-17 12:51:26 +00:00
christos
6e404ef791 Add extra rpcgen flags. 2013-12-15 06:10:33 +00:00
martin
fe15878cd5 Cosmetics: use "msg" instead of "echo" 2013-12-13 07:37:50 +00:00
wiz
d860f590d4 Fix typo ("then" instead of "than") 2013-12-09 09:35:16 +00:00
martin
0c88e27e4c Add a "varshm" check/fix to make sure /var/shm is mentioned in /etc/fstab
(and add a default of tmpfs with 25% of available ram limit if not).
To avoid the warning but not mount the tmpfs, just comment out the line
for /var/shm.

Also move "obsolete" to the end of the list again, as it should be run
last.
2013-12-05 15:41:23 +00:00
wiz
4a591a0994 Wording improvements from Abhinav Upadhyay <er.abhinav.upadhyay@gmail.com> 2013-11-29 23:58:23 +00:00
joerg
ed478d1345 Mark usage as dead. 2013-11-29 23:01:05 +00:00
christos
1d7c1fad3f Remove pppd 2013-11-28 22:38:59 +00:00
christos
09c7a4bf31 Unhook pppd 2013-11-28 22:34:44 +00:00
christos
fc0ed55151 CID 1132759: Abort on dehumanize_number error on constant built-in string. 2013-11-27 20:48:28 +00:00
mlelstv
ffb41b3a17 Fix fallout from circleq->tailq transition. 2013-11-24 13:13:12 +00:00
rmind
1e9541dade npftest: adjust for the npf_bpf_filter() change. 2013-11-23 19:40:11 +00:00
rmind
e636c1e87f npfctl: need to rewind the list after calling print_table(). XXX libnpf. 2013-11-22 18:42:02 +00:00
rmind
805a41fbfe Add npf_tableset_syncdict() to sync the table IDs in the proplib dictionary,
as they can change on reload now.  Also, fix table name checking in npfctl.
2013-11-22 00:25:51 +00:00
christos
905fa31223 From Brooks Davis:
When comparing a directory to an mtree file NetBSD mtree has output like
this:

xxx:	size (4, 5)
	md5digest (0x6de9439834c9147569741d3c9c9fc010, 0xa5d119ab8edcda0ef7f381da8=
f52f92f)
=2E/yyy missing

FreeBSD's historical behavior is this:

xxx changed
	size expected 4 found 5
	md5digest expected 6de9439834c9147569741d3c9c9fc010 found a5d119ab8edcda0e=
f7f381da8f52f92f
=2E/yyy missing

FreeBSD's mergemaster -U command depends on the latter behavior so
the following patch alters the freebsd9 mode of mtree to output
that format.  I don't think programs should rely on this output one way
or another since it's clearly meant for humans, but this seems like the
easiest short term fix.
2013-11-21 18:39:50 +00:00
christos
8216c37c22 CID 1129614: dereference after null 2013-11-19 17:01:45 +00:00
christos
12768cae83 CVE 1129617: negative arg 2013-11-19 16:42:16 +00:00
rmind
d116583e69 Simplify parsing of npf.conf elements, create the npfvar_t when a value is
parsed (to be used as a general structured for variables and inlined values),
few misc improvements.
2013-11-19 00:28:41 +00:00
rmind
3fb1890bf5 Rename some tokens, use more accurate names (the current ones are incorrect
or missleading) and add few comments in the parser code.
2013-11-18 21:39:03 +00:00
rmind
2566fe9fff Add bsd.own.mk for MKSLJIT, reorder some vars. 2013-11-16 17:12:35 +00:00
alnsn
a36c412b37 Link to -lrumpnet_bpfjit and -lrumpkern_sljit iff MKSLJIT != "no". 2013-11-16 15:58:30 +00:00
rmind
467de1619d Enable bpfjit for npftest. 2013-11-16 01:41:43 +00:00
hannken
30f40cbb12 Describe the differences between file system internal and external snapshots. 2013-11-15 09:13:57 +00:00
msaitoh
b1a32cacda Modify some macros and add some new macros for CPU family and model
to reduce code duplication and to avoid bug.

CPUID_TO_STEPPING(cpuid)	(not changed)

CPUID_TO_FAMILY(cpuid)		(new)
CPUID_TO_MODEL(cpuid)		(new)

	Return the display family and the display model.
	The macro names are the same as FreeBSD.

CPUID_TO_BASEFAMILY(cpuid)	(The old name was CPUID2FAMILY)
CPUID_TO_BASEMODEL(cpuid)	(The old name was CPUID2MODEL)

	Only for the base field.

CPUID_TO_EXTFAMILY(cpuid)	(The old name was CPUID2EXTFAMILY)
CPUID_TO_EXTMODEL(cpuid)	(The old name was CPUID2EXTMODEL)

	Only for the extended field.

See http://mail-index.netbsd.org/port-amd64/2013/11/12/msg001978.html
2013-11-15 08:47:55 +00:00
christos
3d281e09f8 CID 1125875: Fix memory leak 2013-11-13 21:22:46 +00:00
christos
04ffc4cd1c CID 1125876: File descriptor leak 2013-11-13 21:20:21 +00:00
christos
a0e4a7ac42 CID 1125882: Don't use unitialized variable; move code inside conditional
where it was intended.
2013-11-13 21:19:17 +00:00
wiz
0f54719895 Skip files of size 0 from indexing.
From Abhinav Upadhyay <er.abhinav.upadhyay@gmail.com>.
2013-11-13 18:46:33 +00:00
wiz
d8099589ae Remove trailing whitespace. 2013-11-12 06:07:30 +00:00
rmind
1e7342c150 NPF: add support for table naming and remove NPF_TABLE_SLOTS (there is
just an arbitrary sanity limit of NPF_MAX_TABLES currently set to 128).

Few misc fixes.  Bump NPF_VERSION.
2013-11-12 00:46:34 +00:00
christos
ea5463304e CID 1128379: Fix TOCTOU, always open the file first with non-blocking I/O,
do that stat later and leave the file as non-blocking because it does not
make a difference for plain files.
2013-11-11 16:39:21 +00:00
wiz
130f1c4a78 Bump date for FIFO support. 2013-11-10 00:13:50 +00:00
christos
f55ff5e8dd vax specific gcc 4.8.1 hacks 2013-11-09 21:39:27 +00:00
christos
d15656b177 add support for outputting to FIFO's (Anthony Mallet) 2013-11-09 19:00:18 +00:00
christos
06a74ca997 fix two bugs related to queues (Anthony Mallet)
- the default values are in humanized number form so strtol does not work
- fix reversed size tests
2013-11-09 18:58:22 +00:00
christos
f7bfce339d more sh3 hacks. 2013-11-09 00:33:48 +00:00
christos
553f814b0d remove unused variable 2013-11-08 01:10:23 +00:00
rmind
a79812ea10 NPF: add support for specifying the interfaces before they are attached.
If an interface is or gets detached, all associated rules and connections
will be deactivated (it might be useful to have an option to invalidate
the associated connections).  Once the interface is reattached they will
become active.

Bump NPF_VERSION.
2013-11-08 00:38:26 +00:00
msaitoh
3b5f820d76 Fix typo. From jnemeth. 2013-11-07 18:59:01 +00:00
msaitoh
a9491a8185 Update some processor names. 2013-11-07 18:18:59 +00:00
kefren
915c0cd28e sync an example with the latest group syntax change 2013-11-05 13:09:12 +00:00
rmind
05a7a9a52e npfctl: optimise fetch_l3() to avoid unnecessary call to NPF_COP_L3. 2013-11-05 01:50:30 +00:00
christos
2a26fd0cf9 sprinkle vax 2013-11-03 00:48:52 +00:00
mrg
ea1cef97af avoid uninitialised variable use. 2013-10-30 08:42:16 +00:00
mrg
ef05d8864c ensure variables are initialised 2013-10-30 08:41:57 +00:00
msaitoh
c622541618 Support prefetch size. 2013-10-28 05:41:49 +00:00
apb
3d4c34e695 Now that tools/compat/compat_defs.h defones __USE, there's no
need to treat the tools build as a special case.
2013-10-24 14:01:01 +00:00
christos
a74a5abffb XXX: gcc initialize a variable 2013-10-21 15:37:46 +00:00
msaitoh
ea7bd36351 Check cpuid leaf 4 for newer Intel CPU to know the cache information. 2013-10-21 06:33:11 +00:00
msaitoh
0380541841 No functional change:
- Add prototypes.
- Make some function static.
- Sort functions.
2013-10-21 06:28:15 +00:00
mrg
e392147a46 avoid using __USE() in the tools version of this. 2013-10-19 20:49:22 +00:00
christos
0a77b69ab6 fix unused variable warnings. 2013-10-19 17:16:37 +00:00
christos
94a96ec4ae use new scopeid functions 2013-10-19 17:16:25 +00:00
christos
a18b60aecf move all the necessay code inside ifdef 2013-10-19 17:10:17 +00:00
christos
b02f1063c3 using sizeof(char *) to compute the size of a buffer is not going to work
very well.
2013-10-19 17:09:38 +00:00
christos
4013b33b0e move all the unused code inside #if 0 2013-10-19 17:08:15 +00:00
christos
e243964246 move all the code that is unused inside #if 0 2013-10-19 17:06:57 +00:00
christos
5084cd4f69 avoid pointer gymnastics 2013-10-19 17:05:58 +00:00
kefren
2e908c5030 sync behaviour with man page: accept spaces, empty lines and comments 2013-10-18 14:14:14 +00:00
wiz
8447fbb10f Sort SEE ALSO. Grammar consistency. 2013-10-18 12:29:52 +00:00
kefren
eda7476539 Attempt to write a manpage for ldpd.conf 2013-10-18 10:49:19 +00:00
kefren
f86d4fa943 allow setting transport addresses for interfaces into config file
also move passive-interface functionality under interface block
report the correct line for config parsing errors
2013-10-17 18:10:23 +00:00
christos
4d024dddcc Our <sys/param.h> ends up calling header files that define intmax_t. This
should not be the case (but >sys/param.h> is not a standard header so all bets
are off). FreeBSD's does not, so explicitly include <stdint.h> to get it.
2013-10-17 17:22:59 +00:00
christos
db2a5420b4 skip comment lines on password and group databases (Brooks Davis) 2013-10-16 17:27:42 +00:00
christos
7419876865 Default a bare "." with no type to F_DIR. For FreeBSD compatibility (Brooks
Davis)
2013-10-16 17:26:14 +00:00
christos
5c416430fc Restore old behavior of not printing sizes for directories, since it varies
depending on filesystem implementation. (Brooks Davis)
2013-10-16 17:24:20 +00:00
kefren
ee8be8cbb6 zeroize the rest of the comparable struct before adding it to the rb tree 2013-10-12 18:55:40 +00:00
msaitoh
4713a86712 Fix typo in comment (s/XRC0/XCR0/). 2013-10-04 17:12:48 +00:00
joerg
d41a00c8da Add missing dead. 2013-09-24 22:52:14 +00:00
rmind
a99ac6280c npftest: add a choice of "rule" or "state" for -b option. 2013-09-24 02:44:20 +00:00
rmind
a484105289 npftest: add some concurrency testing code. 2013-09-24 02:04:21 +00:00
rmind
5f3b7e2652 Update npftest.conf for the recent syntax adjustments. 2013-09-23 15:30:32 +00:00
wiz
4fe1cb8b61 Remove trailing whitespace. 2013-09-20 21:30:49 +00:00
christos
5b6d718b99 the code specifies package info now. 2013-09-20 19:07:29 +00:00
rmind
f797733a7e - NPF: change the group/ruleset syntax - simplify. Update npf.conf(5) manual.
- Add support for the inline pcap-filter(7) syntax in the rule, e.g.:
	block out final pcap-filter "tcp and dst 10.1.1.252"
2013-09-20 03:03:52 +00:00
rmind
f5730e945b npfctl: remove some n-code leftovers, fix the build, update the man pages. 2013-09-19 12:05:11 +00:00
rmind
7b5edfdc0d NPF: G/C n-code in favour of BPF byte-code. Delete lots of code, mmm! 2013-09-19 01:49:07 +00:00
rmind
4e592132ab - Convert NPF to use BPF byte-code by default. Compile BPF byte-code in
npfctl(8) and generate separate marks to describe the filter criteria.
- Rewrite 'npfctl show' functionality and fix some of the bugs.
- npftest: add a test for BPF COP.
- Bump NPF_VERSION.
2013-09-19 01:04:45 +00:00
msaitoh
13add5607a Add shared TLB.
KNF.
2013-09-14 17:23:18 +00:00
jakllsch
f042e00fb6 Try to dump device at address 0. Allows dumping of xhci(4) root hub. 2013-09-14 14:07:56 +00:00
msaitoh
993b96e7e8 Update Intel processors' brand names and model names (e.g. Atom C2000 and
E3000) from the latest document.
2013-09-13 06:21:43 +00:00
christos
60baa80007 use intmax_t instead of long long. fixes wrong cast for time_t. 2013-09-09 23:27:43 +00:00
prlw1
4b5976925c Add pkgpath.conf to /etc/defaults check. 2013-09-09 15:04:12 +00:00
jakllsch
6c1cfa38a7 use IPv6 Documentation Prefix (2001:db8::/32) instead of unallocated
d000🅰️:/32 prefix
2013-09-08 19:12:18 +00:00
dholland
6231cbe0f9 Print FS_TRIM too. 2013-09-03 04:02:13 +00:00
dholland
904d0956db Teach this to print FS_SUJ (and FS_GJOURNAL, whatever that is, as it
was missing for some reason) and cope with FS_INDEXDIRS not currently
being defined.

Since FS_SUJ actually appears in the wild, it's fairly important to
recognize it.
2013-09-03 02:25:36 +00:00
jmcneill
36f0ae602b when building as a tool, only use struct tm tm_gmtoff if HAVE_STRUCT_TM_TM_GMTOFF is defined -- fixes cygwin build 2013-08-14 10:16:04 +00:00
dholland
6be406e820 Turn off -fno-strict-aliasing for HAVE_GCC; it makes no difference to
the compiler output and is therefore ipso facto not necessary. I'll
leave it on for HAVE_LLVM as I can't check that tonight.

(If there is invalid code in here that actually requires it, let me
know so I can fix things properly.)
2013-08-11 03:49:24 +00:00
reinoud
857cc1af09 Fix possible 32 bit issues. In practice hard to reach but better be safe than
sorry.
2013-08-09 15:11:08 +00:00
reinoud
a5f25cf5c7 Oops, used size_t when off_t was meant. This results in the 4G file size
modulation seen on 32 bit machines due to size_t being 32 bit there.

While here, also fix compilation errors he@ discovered while compiling on
NetBSD/vax.
2013-08-09 11:29:44 +00:00
wiz
8e20e62ba9 New sentence, new line.
Use one list instead of two consecutive ones.
Add .El to end list.
2013-08-06 20:16:54 +00:00
reinoud
254934d244 Switch back program version to the version of the newfs_udf/makefs code.
While here, visit the 80 columns police :)
2013-08-06 13:15:30 +00:00
reinoud
c55e926ff1 Add minimum UDF version specification to makefs(8) -t udf. 2013-08-06 12:47:21 +00:00
reinoud
a1f170f537 Allow for the logical volume label to be specified as well as the physical
volume label. Also allow the volumeset name to be specified if desired. The
syntax follows the newfs_udf(8) syntax.
2013-08-06 12:19:34 +00:00
wiz
3e9c1afce6 New sentence, new line. 2013-08-06 12:12:51 +00:00
reinoud
19751c1514 Update makefs(8) man page to reflect the selection of default sector and disc
sizes based on the disc type.
2013-08-06 09:43:41 +00:00
reinoud
f7be5947bb Implement auto-setting of sector size and disc size when specifying
-oT=<devtype> to one of the supported disk types.

While here, also fix where the -s size argument would be overriden by the
calculated size.
2013-08-06 09:32:23 +00:00
reinoud
ef2095d848 Fix assert() on allocation type by masking it with the flag allocation bit
mask. Fixes internal allocation writing in nodes with suid/sgid/sticky
accessnode.
2013-08-06 08:24:56 +00:00
reinoud
3551bde30d Fix memory leaks found by Coverity and fix memoryleaks in the new code 2013-08-06 08:18:08 +00:00
reinoud
c27eed8f4f Note that i added the UDF support to makefs(8) and bump data 2013-08-05 18:49:58 +00:00
reinoud
8f48418536 Cleanup makefile for makefs 2013-08-05 18:45:00 +00:00
reinoud
2b17bd9a06 Revert joergs patch and make it compile in both the normal as in the tools
environment by providing the MMC datastructures separately for compat.
2013-08-05 18:44:16 +00:00
joerg
9656a3f6dc Allow building UDF parts of makefs on !NetBSD. 2013-08-05 17:12:04 +00:00
reinoud
62e9bc7cdb Make memset() usage consequent in using the right types 2013-08-05 16:43:46 +00:00
wiz
c93932c41e Sort. Improve table formatting. 2013-08-05 14:50:32 +00:00
reinoud
e2036ad8da Implement `makefs -t udf'.
Formatting options may be enhanced to make it more in line with newfs_udf on
say labeling.
2013-08-05 14:41:57 +00:00
martin
ab52354b99 Do not pack struct rt_msg - this voids the alignement restrictions and
causes crashes on alignemen critical archs.
From Matt Thomas.
2013-08-02 16:51:25 +00:00
kefren
2a2cde5c86 Use rbtree for storing peers FEC label bindings 2013-08-02 07:29:56 +00:00
matt
edba670894 .include <bsd.own.mk> to get MACHINE_CPU 2013-08-01 23:19:39 +00:00
soren
deeb488bc9 Only try to recreate symlinks in the cat directory if they are local. 2013-07-31 22:37:55 +00:00
kefren
9661871102 Store local bindings in a rbtree 2013-07-31 06:58:23 +00:00
reinoud
7da88b2514 `makefs -t cd9660' fix from FreeBSD:
Submitted by:   Thomas Schmitt via marius@freebsd.org
Obtained from:  FreeBSD r253707

- Correctly set the Expiration Time in the Primary Volume Descriptor;
  according to ISO 9660 8.4.26.1 unspecified date and time are denoted by the
  digit 0 in RBP 1 to 16 but the number 0 in RBP 17.

- Rock Ridge TF entries should use a length of 5, because after the 4 bytes of
  generic SUSP header there is one byte of flags. See typedef of ISO_RRIP_TF
  in iso9660_rrip.h.
2013-07-30 16:02:23 +00:00
kefren
7eaad7a39f check route messages sizes more carefully
cache pid
treat every message at a time, even if there are more messages to read
interpret also cloning routes

The latter two should fix the ldp_regen test
2013-07-27 14:35:41 +00:00
kefren
7ecc7b7c66 * don't request explicitly for uid 0 as various system policies may make that
unnecessary
* correct the mplsif message. We don't need an IP address assigned on it
  anymore
2013-07-25 08:40:30 +00:00
kefren
0c8e14c9e8 * use a flag in label struct in order to determine if we should treat the
associated routes using RTF_HOST
* clean the mess in flush_mpls_routes that could result in accessing
  uninitialized memory
2013-07-24 09:05:53 +00:00
wiz
a5684d07dd Use Mt for email addresses. 2013-07-20 21:39:55 +00:00
kefren
ae8b7d0074 don't connect on first hello, there are chances that ours is not seen yet
setproctitle with ldp id - useful for rump kernels testing
fix a memory leak in ldp_peer_new
don't holddown if already holded down
peer sockets are now non-blocking
connected routes deletes are now processed
check if peer is connected before attempting to sending label mappings
2013-07-20 05:16:08 +00:00
hauke
64a4eb64c6 Commit the patches in Wolfgang Stukenbrock's PR bin/41896.
(1) Do not serve UIDs below MINUID in master.passwd.* maps,
just like in passwd.* maps.

(2) Since stdethers(8) and stdhosts(8) strip comments, we do
not have to do it here, much less inconsistently.
2013-07-19 11:44:51 +00:00
kefren
e8941bb5d0 * rework the reattachment code
* build an implnull label when a route is added and let mpls_add_label
  to take care of relabelling
* take out last piece of the code where we do route lookups - we should have
  every information we need in labels
* tested these changes using a number of rump kernels and some couple of
  thousands of flapping routes
2013-07-18 11:45:36 +00:00
kefren
9b2110eba6 Make sure labels are always updated when a route is added and when a peer
is added
Rework mpls_add_label according to that so no route refresh is done anymore
Use poll when reading the PF_ROUTE socket
setsockopt SO_USELOOPBACK on the PF_ROUTE socket
Output some information on SIGINFO
Allow map changing for a ldp peer
Finally fix the connected routes admission into labels
Correct the route trigger when a label map is received
2013-07-18 06:07:45 +00:00
kefren
4866020490 send the actual prefix on the wire instead of struct headers
statify
2013-07-16 19:40:01 +00:00
kefren
4a79aafa57 create binding for connected routes on startup
decay an warning message to debug only
2013-07-16 16:55:01 +00:00
msaitoh
c148f0440f Update Intel's Processor Family Names of family == 6 from the latest document.
Add 0x35(Atom), 0x36(Atom S), 0x3f(future Xeon), 0x46(Haswell) and update some
models.
2013-07-16 09:54:30 +00:00
kefren
3e54e2f09f retire union_ntoa, replace it with satos
check for valid sizes on PF_ROUTE socket
minor comment update
2013-07-16 02:54:32 +00:00
htodd
5fcfb3153d And add a skip for the deleted _gpio in uid. 2013-07-14 15:44:00 +00:00
htodd
aebf69ca0d Add _rtadvd to uid check as well. 2013-07-14 15:27:12 +00:00
htodd
173d865eac Adding _rtadvd to group check. 2013-07-14 15:17:22 +00:00
kefren
0e52e04b03 correct loopback address test
correct addr add/del handling
2013-07-12 08:55:52 +00:00
kefren
949b2852b8 add code for address and address withdraw messages
get rid of unused fields in tlv struct
2013-07-11 18:02:03 +00:00
kefren
046ba50ee2 sprinkle more const 2013-07-11 10:46:19 +00:00
kefren
702fd22f56 speed up a little bit the string<->prefixlen transforms 2013-07-11 09:11:35 +00:00
kefren
5f15a81b16 Local addresses vector is not needed anymore 2013-07-11 05:55:13 +00:00
kefren
2cc7bf11fa Constify a little bit 2013-07-11 05:45:23 +00:00
tcort
998a133bbf i2cscan: support scans using only 1 byte reads
Add the '-r' option to scan using only 1 byte reads. This enhances
usability on i2c controllers, such as the am335x and dm37xx, that
don't support quick writes (0 byte writes). The default behaviour
remains unchanged.

Review and OK by jmcneill@
2013-07-10 15:18:54 +00:00
roy
d87d6793f0 Add _rtadvd user and group.
Add a chroot dir for the _rtadvd user.
Drop privs to the user _rtadvd after acquiring our socket.
When rc.d/rtadvd starts or reloads, the rtadvd config file is copied
into the chroot before starting or reloading rtadvd itself.
Create a symlink from /var/run/rtadvd.dump to the chroot

Inital idea from OpenBSD patch rtadvd.c r1.36
2013-07-09 09:34:58 +00:00
jakllsch
767644da8b Use symbolic constants EXIT_SUCCESS, EXIT_FAILURE, and NULL where appropriate. 2013-07-08 14:47:18 +00:00
apb
c40fe12b6e Use .Cm markup for the keywords "temp", "pub", and "proxy" (suggested
by wiz).  Also bump date.
2013-07-08 04:31:12 +00:00
joerg
ca1a6f97cd Finish ANSIfication. Drop extra spaces from __P removal. Add more
static. Add more const. Use __dead for usage().
2013-07-02 11:59:46 +00:00
joerg
9e69720425 Fix violations of the sequence point rule. 2013-06-28 15:04:35 +00:00
roy
aaccc84c03 If we die and there are no timers, just exit. 2013-06-28 07:59:32 +00:00