summaryrefslogtreecommitdiffstats
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | Contrary to when returning in all-good cases at the end of functions webz2011-06-097-62/+216
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | did not free memory (1) or close the file descriptor (2) in error cases. Reported by: Mark Johnston (1) Reported by: attilio (2) Reviewed by: jhb Sponsored by: Sandvine Incorporated MFC after: 1 week
* | | | | - Accumulate RA options instead of replacing old ones when a new RA arrived.hrs2011-06-084-142/+285
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | RFC 4861 6.3.4 clearly defines handling multiple RAs in this way. - RDNSS/DNSSL options from multiple RAs on a single link will be gathered and sent to resolvconf(8). - Call "resolvconf -d" only after at least one RDNSS or DNSSL option is received and then all of them are expired. - The rtsold.dump output now supports displaying a list of the RA options. - Use more human-readable expression for logging values of struct timeval. Discussed with: ume
* | | | - Disable "resolvconf -d" temporarily to avoid extra invocations of the scripthrs2011-06-082-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | under a certain condition. - Fix argv handling. Spotted by: ume
* | | | Fix a bug that prevents tc=xxx from working.hrs2011-06-071-2/+1
| | | |
* | | | - Use ELM_MALLOC() for struct rainfo.hrs2011-06-071-11/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - Fix a missing back pointer assignment in struct prefix to struct rainfo when addr="" is specified. This caused SIGSEGV. - Insert a prefix element to a tail queue after setting parameters.
* | | | MFCattilio2011-06-071-0/+1
|\ \ \ \
| * | | | Lower WARNS level to 3 to eliminate alignment warnings related tomarcel2011-06-071-0/+1
| | | | | | | | | | | | | | | | | | | | casting inherent in CMSG_DATA().
* | | | | MFCattilio2011-06-0632-1738/+2906
|\ \ \ \ \ | |/ / / /
| * | | | Remove redundant assignments to WARNS.ed2011-06-063-4/+0
| | | | | | | | | | | | | | | | | | | | For these directories, WARNS is already implied to be 6.
| * | | | Set WARNS=1 temporarily to unbreak universe.hrs2011-06-061-1/+1
| | | | |
| * | | | Allow custom files to be opened and allow sorting by timestamp.ed2011-06-062-18/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | While implementing a tool to import lastlog entries into utmpx, I noticed lastlogin doesn't allow custom database files to be opened. Add a -f switch to support this. Also, add -r and -t similar to ls(1), ruptime(1), etc. where you can sort entries by timestamp and reverse them. This allows you to spot active/idle users more easily.
| * | | | Include param.h for CACHE_LINE_SIZE to unbreak the build.bz2011-06-061-1/+2
| | | | |
| * | | | Remove TODO which is not longer needed and the default.bz2011-06-061-1/+0
| | | | |
| * | | | Fix build on 64-bit arch.hrs2011-06-063-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | Submitted by: dim Pointy hat to: hrs
| * | | | - Implement RDNSS and DNSSL options (RFC 6106, IPv6 Router Advertisementhrs2011-06-0627-1714/+2844
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Options for DNS Configuration) into rtadvd(8) and rtsold(8). DNS information received by rtsold(8) will go to resolv.conf(5) by resolvconf(8) script. This is based on work by J.R. Oldroyd (kern/156259) but revised extensively[1]. - rtadvd(8) now supports "noifprefix" to disable gathering on-link prefixes from interfaces when no "addr" is specified[2]. An entry in rtadvd.conf with "noifprefix" + no "addr" generates an RA message with no prefix information option. - rtadvd(8) now supports RTM_IFANNOUNCE message to fix crashes when an interface is added or removed. - Correct bogus ND_OPT_ROUTE_INFO value to one in RFC 4191. Reviewed by: bz[1] PR: kern/156259 [1] PR: bin/152458 [2]
* | | | MFCattilio2011-06-041-3/+7
|\ \ \ \ | |/ / /
| * | | Fix resolv.conf search list creation:bz2011-06-041-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1) do not print out an empty "search ", things do not like it. 2) the search list is not comma separated. Sponsored by: The FreeBSD Foundation Sponsored by: iXsystems
* | | | MFCattilio2011-06-036-96/+657
|\ \ \ \ | |/ / /
| * | | Fix the nfs related daemons so that they don't intermittentlyrmacklem2011-06-021-28/+212
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fail with "bind: address already in use". This problem was reported to the freebsd-stable@ mailing list on Feb. 19 under the subject heading "statd/lockd startup failure" by george+freebsd at m5p dot com. The problem is that the first combination of {udp,tcp X ipv4,ipv6} would select a port# dynamically, but one of the other three combinations would have that port# already in use. The patch is somewhat involved because it was requested by dougb@ that the four combinations use the same port# wherever possible. The patch splits the create_service() function into two functions. The first goes as far as bind(2) in a loop for up to GETPORT_MAXTRY - 1 times, attempting to use the same port# for all four cases. If these attempts fail, the last attempt allows the 4 cases to use different port #s. After this function has succeeded, the second function, called complete_service(), does the rest of what create_service() did. The three daemons mountd, rpc.lockd and rpc.statd all have a create_service() function that is patched in a similar way. However, create_service() has non-trivial differences for the three daemons that made it impractical to share the same functions between them. Reviewed by: jhb MFC after: 2 weeks
| * | | Fix the nfs related daemons so that they don't intermittentlyrmacklem2011-06-021-28/+221
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fail with "bind: address already in use". This problem was reported to the freebsd-stable@ mailing list on Feb. 19 under the subject heading "statd/lockd startup failure" by george+freebsd at m5p dot com. The problem is that the first combination of {udp,tcp X ipv4,ipv6} would select a port# dynamically, but one of the other three combinations would have that port# already in use. The patch is somewhat involved because it was requested by dougb@ that the four combinations use the same port# wherever possible. The patch splits the create_service() function into two functions. The first goes as far as bind(2) in a loop for up to GETPORT_MAXTRY - 1 times, attempting to use the same port# for all four cases. If these attempts fail, the last attempt allows the 4 cases to use different port #s. After this function has succeeded, the second function, called complete_service(), does the rest of what create_service() did. The three daemons mountd, rpc.lockd and rpc.statd all have a create_service() function that is patched in a similar way. However, create_service() has non-trivial differences for the three daemons that made it impractical to share the same functions between them. Reviewed by: jhb MFC after: 2 weeks
| * | | Fix the nfs related daemons so that they don't intermittentlyrmacklem2011-06-021-30/+213
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fail with "bind: address already in use". This problem was reported to the freebsd-stable@ mailing list on Feb. 19 under the subject heading "statd/lockd startup failure" by george+freebsd at m5p dot com. The problem is that the first combination of {udp,tcp X ipv4,ipv6} would select a port# dynamically, but one of the other three combinations would have that port# already in use. The patch is somewhat involved because it was requested by dougb@ that the four combinations use the same port# wherever possible. The patch splits the create_service() function into two functions. The first goes as far as bind(2) in a loop for up to GETPORT_MAXTRY - 1 times, attempting to use the same port# for all four cases. If these attempts fail, the last attempt allows the 4 cases to use different port #s. After this function has succeeded, the second function, called complete_service(), does the rest of what create_service() did. The three daemons mountd, rpc.lockd and rpc.statd all have a create_service() function that is patched in a similar way. However, create_service() has non-trivial differences for the three daemons that made it impractical to share the same functions between them. Reviewed by: jhb MFC after: 2 weeks
| * | | Write the multi step netconfig to a temporary file and only move thatbz2011-06-023-9/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to the final name if netconfig was completely finished. This fixes reentrance problems even better than r222611. Suggested by: nwhitehorn Reviewed by: nwhitehorn Sponsored by: The FreeBSD Foundation Sponsored by: iXsystems
| * | | Empty the network configuration only after the user decided to pick anbz2011-06-021-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | interface. Otherwise an accidental start of the netowrk configuration and immediate cancel after the install has finished removes the previously configured settings. Discussed with: nwhitehorn Sponsored by: The FreeBSD Foundation Sponsored by: iXsystems
* | | | MFCattilio2011-06-022-5/+5
|\ \ \ \ | |/ / /
| * | | Fix opening a shell on the new system (prevent the shell's stderr fromnwhitehorn2011-06-021-1/+1
| | | | | | | | | | | | | | | | ending up in the install log).
| * | | There are a couple of structs in mfireg.h with members named 'class'.emaste2011-06-021-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These cause problems when trying to include the header in a C++ project. Rename them to 'evt_class', and track the change in mfi and mfiutil. Submitted by: Mark Johnston Sponsored by: Sandvine Incorporated Reviewed by: jhb@ MFC after: 1 week
| * | | Don't try to close the stream if fopen(3) fails.jh2011-06-011-1/+1
| | | | | | | | | | | | | | | | | | | | PR: bin/155349 Submitted by: Urankar Mikael
| * | | Start teaching pc-sysinstall about IPv6.bz2011-05-313-28/+249
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add some additional empty string checks for IPv4 and try to configure a netmask along with the address rather than doing things twice. Contrary to AUTO-DHCP, IPv6-SLAAC will accept static configuration as well, which we will use at least for resolv.conf currently and if we were given a static address configure that as an alias as well. The pc-sysinstaller changes going along were committed to PC-BSD as r10773. Reviewed by: kmoore Sponsored by: The FreeBSD Foundation Sponsored by: iXsystems MFC after: 20 days
* | | | MFCattilio2011-06-011-1/+1
| | | |
* | | | MFCattilio2011-05-313-28/+249
| | | |
* | | | Revert r222363, as bde@ pointed out the initial solution was far moreattilio2011-05-311-1/+1
| | | | | | | | | | | | | | | | correct.
* | | | MFCattilio2011-05-319-100/+466
|\ \ \ \ | |/ / /
| * | | Minor wording adjustments to usbdump(8).bcr2011-05-311-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | PR: docs/157317 Submitted by: Warren Block (wblock at wonkity dot com) Reviewed by: hps@ MFC after: 5 days
| * | | Contrary to the rc.conf framework, when manualy enabling IPv6 we havebz2011-05-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | to -ifdiabled ourselves. Sponsored by: The FreeBSD Foundation Sponsored by: iXsystems
| * | | While doing it right for current configuration, fix the entry for rc.confbz2011-05-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | adding the missing mandatory "inet6" keyword. Sponsored by: The FreeBSD Foundation Sponsored by: iXsystems
| * | | Split netconfig into three parts:bz2011-05-294-43/+351
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - netconfig - what auto will call which in turn will check for IPv4 and IPv6 to be available and ask the user to configure it by calling - netconfig_ipv4 doing DHCP and static IPv4 addresses, and - netconfig_ipv6 doing rtsol and static IPv6 addresses, and then checking, querying and updating resolv.conf upon return. Both DHCP and rtsol (in the future) might update resolv.conf already so we seed ourselves from that file if available. Reviewed by: nwhitehorn Sponsored by: The FreeBSD Foundation Sponsored by: iXsystems
| * | | Check for IPv4 or IPv6 to be available by the kernel to notbz2011-05-294-53/+111
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | provoke errors trying to query options not available. Make it possible to compile out INET or INET6 only parts. Reviewed by: jamie Sponsored by: The FreeBSD Foundation Sponsored by: iXsystems MFC after: 10 days
* | | MFCattilio2011-05-292-3/+3
|\ \ \ | |/ /
| * | Fix shell-based partitioning.nwhitehorn2011-05-281-1/+1
| | |
| * | Whitespace fixeskevlo2011-05-271-2/+2
| | | | | | | | | | | | Reviewed by: jpaetzel
* | | Style fix: cast to size_t rather than u_long when comparing to sizeof()attilio2011-05-271-1/+1
| | | | | | | | | | | | | | | | | | rets. Requested by: kib
* | | MFCattilio2011-05-265-9/+9
|\ \ \ | |/ /
| * | Bump the date of the man page to the date of the actual commit.bcr2011-05-251-1/+1
| | | | | | | | | | | | Noticed by: brix
| * | Document the device name change from gpioctl to gpioc in thebcr2011-05-251-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | man page. PR: docs/157075 Submitted by: brix Reviewed by: gonzo
| * | [mdoc] Fixed .Dt call.ru2011-05-254-4/+4
| | |
* | | MFCattilio2011-05-224-10/+82
|\ \ \ | |/ /
| * | Add analogs to the -chrp-boot and -prep-boot options to mkisofs.nwhitehorn2011-05-224-10/+82
| | |
* | | MFCattilio2011-05-212-23/+29
|\ \ \ | |/ /
| * | - add missing options and arguments to program's usage()ru2011-05-202-23/+29
| | | | | | | | | | | | | | | | | | | | | | | | and sync it with manpage's SYNOPSIS - generally clean up a manpage's formatting Reviewed by: edwin
* | | MFCattilio2011-05-192-10/+4
|\ \ \ | |/ /
OpenPOWER on IntegriCloud