summaryrefslogtreecommitdiffstats
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
* Expand the fdisk size display toggling to include GB.obrien2003-08-192-4/+12
|
* When checking the 'user:group' field in newsyslog.conf, freebsd's sourcegad2003-08-191-2/+14
| | | | | | | | | | | | | | | | | | | | | | was mistakenly calling the standard isnumber() function to find out if the given 'user' or 'group' were all numeric. This meant that only the first character of the fields were actually checked, so a username of (say) '3com' would look like a number, and thus get mapped to uid=3 (bin) instead of username=3com. This bug was introduced back in freebsd's v1.1. That initial import almost matches netbsd's v1.9, except that an internal isnumber() routine was removed in favor of the standard library version. The thing is, that internal routine was checking the entire string, and not just the first digit. In OpenBSD, isnumber() was eventually renamed to isnumberstr() to make the distinction more obvious, and I'm going to follow that lead. I believe this also happens to remove the last references to isnumber() in the entire freebsd base system. Obtained from: OpenBSD, by a long circuitous route MFC after: 5 days
* rtm_seq is int, so seq/myseq should be int.ume2003-08-181-2/+2
| | | | | Obtained from: KAME MFC after: 1 week
* suppress outpt on dump request if -q is specified.ume2003-08-181-0/+3
| | | | | Obtained from: KAME MFC after: 1 week
* atoi -> strtoulume2003-08-181-2/+10
| | | | | Obtained from: KAME MFC after: 1 week
* - port numbers are unsigned. use %u.ume2003-08-181-2/+2
| | | | | | | - %d is not 10 chars, but 12 chars. Obtained from: KAME MFC after: 1 week
* explicitly specify IPPROTO_UDP when calling getaddrinfo().ume2003-08-181-0/+2
| | | | | Obtained from: KAME MFC after: 1 week
* remove a variable that is never used.ume2003-08-181-5/+2
| | | | | Obtained from: KAME MFC after: 1 week
* support poll(2).ume2003-08-182-5/+44
| | | | | Obtained from: KAME MFC after: 1 week
* - don't select with FD_SETSIZE.ume2003-08-181-14/+25
| | | | | | | - avoid fd_set overrun. Obtained from: KAME MFC after: 1 week
* - don't print strerror() if errno == 0 on fatal().ume2003-08-171-10/+26
| | | | | | | | - va_start/end audit. - can't use vfprintf() twice. need va_start/end pair every time. Obtained from: KAME MFC after: 1 week
* - do not SEGV on IFF_UP.ume2003-08-171-14/+21
| | | | | | | | | | - recover rrt_gw setting for non-p2p case. otherwise, we will not be able to recover interface route on interface down -> up transition. - clarify loop exit condition Obtained from: KAME MFC after: 1 week
* do not send dump request on -Nume2003-08-171-0/+2
| | | | | Obtained from: KAME MFC after: 1 week
* macro pedantume2003-08-171-2/+2
| | | | | Obtained from: KAME MFC after: 1 week
* minor cleanup; no need for extra variable hereume2003-08-171-4/+2
| | | | | Obtained from: KAME MFC after: 1 week
* use strchr(3).ume2003-08-171-3/+3
| | | | | Obtained from: KAME MFC after: 1 week
* daemon() has to be called prior to file descriptor setupsume2003-08-171-15/+8
| | | | | | | (otherwise file descriptors could be closed mistakenly) Obtained from: KAME MFC after: 1 week
* getifaddrs(3) is always used.ume2003-08-171-1/+1
| | | | MFC after: 1 week
* knf, typo, space.ume2003-08-172-21/+13
| | | | | Obtained from: KAME MFC after: 1 week
* set IPV6_V6ONLY.ume2003-08-171-7/+13
| | | | | Obtained from: KAME MFC after: 1 week
* - die if malloc fails.ume2003-08-171-2/+8
| | | | | | | - use strlcpy. Obtained from: KAME MFC after: 1 week
* use strncpyume2003-08-171-1/+1
| | | | | Obtained from: KAME MFC after: 1 week
* "sin" is a reserved C library function name. use sin6ume2003-08-171-73/+73
| | | | | Obtained from: KAME MFC after: 1 week
* We don't need __ss hack.ume2003-08-171-1/+1
| | | | MFC after: 1 week
* backout 1.11. ifname in struct ifreq should be copyed by strncpy.ume2003-08-171-4/+4
| | | | Pointed out by: itojun
* - improved the -a option. it can probe a interface automatically whenume2003-08-175-94/+134
| | | | | | | | | | | the interface wake up. it can be started anytime even when there is no network interface on the list of intarfaces in the kernel. - get a correct link ID for each interface at initialization (using scope libraries if HAVE_SCOPELIB is defined). - fill in sin6_scope_id correctly before sendmsg(). Obtained from: KAME MFC after: 1 week
* add FBSDID, compare getopt() against -1, use fprintf() + exit() in usage()charnier2003-08-171-5/+6
| | | | instead of errx() to get the message starting with "usage:".
* Make it clear that -a flag and interface parameter are mutually exclusivecharnier2003-08-162-13/+19
|
* use strlcpy().ume2003-08-161-4/+4
| | | | | Pointed out by: Pawel Jakub Dawidek <nick@garage.freebsd.pl> MFC after: 1 week
* add section namecharnier2003-08-161-1/+1
| | | | Approved by: Nate Lawson
* - added the case of 802.11 to check link status.ume2003-08-161-5/+5
| | | | | | | | - use strncpy just in case. - __P() cleanup. Obtained from: KAME MFC after: 1 week
* - supported a string notation for xxflags.ume2003-08-159-409/+531
| | | | | | | | | | | | | | | | | | | | | | - deprecate routes#N, as it is hard to keep consistency with rtprefixN. accept any number of "rtprefix", "rtrefix0", ..., "rtprefix99". - deprecate "addrs#N", as it is difficult for users to keep consistency with "addrN". accept 100 prefix info in maximum - like "addr", "addr0" ... "addr99". WARNS=2 clean on netbsd. old configuration file should work just fine. behavior change: previously, we rejected "addrN" if there's "addr", and we rejected "addr" if there is "addrN". now we accept both without problem. - when an advertised prefix configured from the kernel has been added or invalidated, notice the change in a short delay. - when invalidating a prefix, do not bark even if there is inconsistency about prefix lifetimes. - wrap more specific route info code into ROUTEINFO. Obtained from: KAME MFC after: 1 week
* use arc4random.ume2003-08-152-1/+7
| | | | | Obtained from: KAME MFC after: 1 week
* variable shared with signal handler needs to be "volatile sig_atomic_t".ume2003-08-151-2/+2
| | | | | Obtained from: KAME MFC after: 1 week
* set LOG_PERROR for openlog() when running foreground.ume2003-08-151-3/+7
| | | | | Obtained from: KAME MFC after: 1 week
* dump the content of route information optionsume2003-08-151-1/+19
| | | | | Obtained from: KAME MFC after: 1 week
* logged the fact to dump the status.ume2003-08-151-0/+3
| | | | | Obtained from: KAME MFC after: 1 week
* daemon() has to be called prior to file descriptor setupsume2003-08-141-2/+2
| | | | | | | (otherwise file descriptors could be closed mistakenly) Obtained from: KAME MFC after: 1 week
* support poll(2).ume2003-08-144-3/+78
| | | | | Obtained from: KAME MFC after: 1 week
* daemon() has to be called prior to file descriptor setupsume2003-08-141-8/+16
| | | | | | | (otherwise file descriptors could be closed mistakenly) Obtained from: KAME MFC after: 1 week
* - rename some variables.ume2003-08-141-27/+14
| | | | | | | - remove unused block. Obtained from: KAME MFC after: 1 week
* signal handler must take "int" arg.ume2003-08-141-4/+5
| | | | | Obtained from: KAME MFC after: 1 week
* avoid fd_set overrun.ume2003-08-141-9/+21
| | | | | Obtained from: KAME MFC after: 1 week
* signal handler must take "int" arg.ume2003-08-141-7/+5
| | | | | Obtained from: KAME MFC after: 1 week
* avoid fd_set overrun.ume2003-08-141-10/+24
| | | | | Obtained from: KAME MFC after: 1 week
* decreased too-strong log levels.ume2003-08-141-5/+9
| | | | | Obtained from: KAME MFC after: 1 week
* Use STDIN_FILENO, STDOUT_FILENO, and STDERR_FILENO in a few moregad2003-08-133-17/+17
| | | | | | | | places (replacing constants 0, 1 & 2). Noticed by: Reviewed by: md5 MFC after: 4 days
* Make this WARNS=6 clean by just constifying two local char pointers.harti2003-08-132-1/+3
|
* Put all the argument-less options together in the synopsis as requiredharti2003-08-131-6/+1
| | | | by style(9).
* Implement two command line options that allow one to change theharti2003-08-132-8/+23
| | | | | | file descriptors that are used for input and output. That allows one, for example, to use nghook to bi-directionally pipe the input and output into/from another non-netgraph-aware program.
OpenPOWER on IntegriCloud