summaryrefslogtreecommitdiff
path: root/sbin
AgeCommit message (Collapse)Author
2013-07-05Collect and display 'match' counters for pf tables.Bret Lambert
While here, fix pf table displays to fit within 80 chars. Manpage input jmc@ ok henning@ reyk@
2013-07-02Long passwords could not be replaced completely with shorterAlexander Bluhm
passwords. ioctl(SIOCGVH) fills the carpr_key with the old value. strlcpy() overwrites only the beginning of the key. Add a bzero() to clear the rest. Testing Jan Klemkow; OK florian@ mpf@
2013-06-29do not use Sx for sections outwith the page;Jason McIntyre
man4 still to go...
2013-06-19Do not install pcap-int.h to /usr/include as it is an internal libraryLawrence Teo
header (pointed out by matthew@). Let only pflogd and tcpdump include pcap-int.h directly since they need it for privilege separation. "looks good" sthen feedback/ok deraadt matthew millert
2013-06-18Initialize duid memory before shifting stuff into elements of it.Kenneth R Westerback
No doubt quiets one or more of the fringe compilers out there. Use variable 'part' rather than recalculating same value in the subsequent printf(). From dhill. ok otto@
2013-06-18Don't use inet_ntoa() twice in one parameter list. You'll just printKenneth R Westerback
one of the strings twice. Spotted by mpi@, who also tweaked the diff by pointing out INET_ADDRSTRLEN. Should fix mysterious messages like "1.2.3.4, not 1.2.3.4, deleted from ...".
2013-06-18Split RTM_NEWADDR and RTM_DELADDR handling into separate casesKenneth R Westerback
rather than 1 case with a check to see which messages it was. More code duplication, easier to read. No functional change.
2013-06-17Check calloc() return value. Plug leak of resulting memory.Kenneth R Westerback
Latter from dhill.
2013-06-13Add support for protected-subnet config types.Reyk Floeter
From Ryan Slack
2013-06-11final removal of daddr64_t. daddr_t has been 64 bit for a long enoughTheo de Raadt
test period; i think 3 years ago the last bugs fell out. ok otto beck others
2013-06-09Make route adding interface more flexible by passing flags to beKenneth R Westerback
used rather than deducing them. Use priv_add_route() to add the 127.0.0.1 address when adding an address.
2013-06-09Fix/clarify some comments. do memset()'s only when variable is goingKenneth R Westerback
to be used.
2013-06-09Re-apply static route and classless static route support -- this timeKenneth R Westerback
passing the correct destination for the default route, '0.0.0.0', rather than the new lease address. Populating egress group works this time. Problem found the hard way by Chris Smith.
2013-06-09Re-apply route adding code refactoring -- it wasn't the problem thatKenneth R Westerback
broke populating the egress group.
2013-06-09add fuse sysctls, from Sylvestre GallonTed Unangst
2013-06-09fix an off by one preventing access to the last filesystem.Ted Unangst
from Sylvestre Gallon
2013-06-09Add back backslash fixes caught in rollback.Kenneth R Westerback
2013-06-09Backout static/classless route handling and default route refactoringKenneth R Westerback
since the former relies on the latter and the latter breaks 'egress' group populating.
2013-06-08Add new sysctl for pipex packet input/output queue length andYASUOKA Masahiko
counters. ok guenther, feedback jmc
2013-06-04Add support for static routes option (33) and classless staticKenneth R Westerback
routes option (121). ok sthen@
2013-06-04Fix "\" escape handling in read_string().Kenneth R Westerback
Problem noted, fix tested and ok sthen@.
2013-06-03sprinkle $OpenBSD$, pointed out by pedroMarc Espie
2013-06-03dependent clause requires a subject (comment grammar)Ted Unangst
2013-06-02Add mentions about net.mpls and net.inet.ip.ifq.YASUOKA Masahiko
input from jmc claudio
2013-06-02various fixes; passed back to netbsdJason McIntyre
2013-06-02Switch from antique struct direct to struct direntPhilip Guenther
2013-06-01remove set-tos backwards compat, moved into the set {} block a year agoHenning Brauer
ok ryan
2013-06-01Refactor the default route adding code to use a general route addingKenneth R Westerback
function that will be reused for future work. ok claudio@
2013-06-01import tmpfs code, originally from netbsd.Marc Espie
heavy lifting by Pedro Martelletto, timestamp fixes by me. THIS IS NOT ENABLED YET, AND REQUIRES UVM CHANGES AND REVIEW. Imported, so that working on it can be mostly done in tree with less painful diff exchanges, and that we have history of further changes. okay tedu@, deraadt@
2013-05-31Correct the range checks in ifconfig properly for vhid, advbase and advskew.YASUOKA Masahiko
Clarify about the ranges in the man page. ok mpf mcbride
2013-05-31don't truncate trailing zeros from the round-trip times; ok deraadt@ sthen@Christian Weisgerber
2013-05-27autodetect ipv6 addresses for route(8). ok benno@ bluhm@, manpage help jmc@Stuart Henderson
2013-05-22Move the gmac/null ciphers to a different table block, clearly labelled asStuart Henderson
not doing encryption. ok reyk@
2013-05-10Fix subnet check. Check our rdomain against the rdomains of the otherKenneth R Westerback
interfaces and not against our own. Problem noted, fix tested and ok mikeb@
2013-05-05Add a flag to struct client_state (IS_RESPONSIBLE) to record whenKenneth R Westerback
the first expected RTM_NEWADDR arrives, which signals that a lease has been bound to the interface. Ignore RTM_NEWADDR and RTM_DELADDR messages until the flag has been set. Makes it more likely that the last dhclient started will be the last dhclient standing. Fixes the problem reported by David Higgs, where restarting an install in a vm consistantly caused the new dhclient to be the one that dies.
2013-05-02Bunch of comment/whitespace cleanup. Eliminate some misleading orKenneth R Westerback
pointless ones, make multiline comments readable, nuke '...' in favour of '.', etc.
2013-05-02Enough of the hand-rolling of queues. Turn client->leases andKenneth R Westerback
client->offered_leases into TAILQs.
2013-04-27Use same parse_date() and date writing logic as in dhcpd. i.e.Kenneth R Westerback
strptime() rather than handrolling parsing. Change date format in leases to same as dhcpd, fixing 'u' vs 'w' error made in initial strftime() introduction.
2013-04-25big int_t/time_t fixes; ok deraadt@ krw@Otto Moerbeek
2013-04-25fix format string; found while scaning the tree for time_t/ino_t problems;Otto Moerbeek
ok deraadt@ krw@
2013-04-24pretty print bigger off_tTheo de Raadt
ok tedu otto
2013-04-24remove old backwards random junkTheo de Raadt
ok mikeb
2013-04-24Follow ISC and freebsd by increasing ip_ttl on packets from 16 toKenneth R Westerback
128, so people living many hops from their dhcp server can still get leases. Pointed out by deraadt@
2013-04-23handle large ino_t; ok teduTheo de Raadt
2013-04-23handle large ino_t; ok teduTheo de Raadt
2013-04-23simple repair for large ino_tTheo de Raadt
2013-04-23handle big ino_tTheo de Raadt
ok otto
2013-04-23prepare for more time (bits); ok deraadt@ millert@Otto Moerbeek
2013-04-21avoid truncating a time_t division into daysTheo de Raadt
2013-04-21Check both f_mntfromname and f_mntfromspec when looking for a mountedJoel Sing
filesystem. This makes umount via DUID possible. ok krw@