summaryrefslogtreecommitdiff
path: root/sbin
AgeCommit message (Collapse)Author
2013-10-15The disklabel variables aflag and dflag are boolean, use logicalAlexander Bluhm
instead of binary operators for comparison. OK krw@
2013-10-15remove last bits of a.out supportTheo de Raadt
2013-10-13whitespaceReyk Floeter
2013-10-13Pass NI_DGRAM to getnameinfo() to use UDP tunnel service names.Reyk Floeter
2013-10-13tweak previous;Jason McIntyre
2013-10-13Import vxlan(4), the virtual extensible local area network tunnelReyk Floeter
interface. VXLAN is a UDP-based tunnelling protocol for overlaying virtualized layer 2 networks over layer 3 networks. The implementation is based on draft-mahalingam-dutt-dcops-vxlan-04 and has been tested with other implementations in the wild. put it in deraadt@
2013-10-12config bits for the bandwidth shaping part of the new queueing subsystemHenning Brauer
syntax worked out with many in ljubljana using a whiteboard, testing & looking over by many, ok phessler sthen
2013-10-09Change "physical address" to "tunnel:" in ifconfig's tunnel addressReyk Floeter
output. This is more consistent with the current ifconfig style and matches the "tunnel" configuration command. ok claudio@ jmc@ deraadt@
2013-10-09Make sure that pfctl_state_store() frees the inbuf pointer and closesLawrence Teo
the state file before returning. ok henning
2013-10-08Keep disk sector calcuations in u_int64_t as long as possible, andKenneth R Westerback
avoid using a daddr_t variable to hold a disk sector value even temporarily. No intentional functional change.
2013-10-07Say 'fragments' where fragments are meant. Divide by DEV_BSIZEKenneth R Westerback
to convert from bytes to DEV_SIZE. ok otto@ zhuk@ (for his chunk)
2013-10-07Show number of sectors, not the number of 512-byte blocks, whenKenneth R Westerback
saying "n sectors of m bytes". Issue pointed out by David Vasek on misc@. Thanks!
2013-10-07Oops. Too mechanical -- can't use DL_SECTOBLK() to set fssize, sinceKenneth R Westerback
command line sector size overrides disk label sector size. Add a comment to make sure I don't do it again.
2013-10-06daddr_t tweaks. %lld -> %llu, intermediate disk sector calculationKenneth R Westerback
variable, drop pointless casts, vax-only sector variable to u_int64_t. No intentional functional change.
2013-10-06daddr_t comment tweak and whitespace fix.Kenneth R Westerback
2013-10-03Print u_int64_t variables with %llu.Kenneth R Westerback
2013-09-26Removed a break of a switch-case, which had not been removed in the last commit.Patrick Wildt
No functional change.
2013-09-26After some manipulations with the buffer, ike message header (hdr)Mike Belopuhov
might no longer point to the same memory as before. The bug was reported and fix was tested by LEVAI Daniel. Thanks!
2013-09-23Revert. It seems people don't agree about which device should be used.Antoine Jacoutot
req. by krw@ millert@
2013-09-23cd0a -> cd0c for consistency with the FAQ.Antoine Jacoutot
discussed with and ok miod@
2013-09-13pflow(4) does not work without flowsrc set.Florian Obser
OK benno@
2013-09-13errx() provides its own newline, so remove it from the string hereBret Lambert
ok henning@
2013-09-12Misc time_t tweaks. %ld / (long)tv_sec -> %lld / (long long)tv_sec.Kenneth R Westerback
Eliminate unneeded casts. suggestions from & ok millert@ guenther@
2013-09-10The rule is: daddr_t variables hold counts of 512-byte blocks, a.k.a.Kenneth R Westerback
DEV_BSIZE blocks. Counts of possibly other-sized blocks (e.g. disk sector addresses) are u_int64_t. The values stored in disklabels are counts of possibly other-sized blocks and hence should be handled with u_int64_t variables. Start enforcing this rule. No intended functional change. Rule strongly suggested by deraadt@
2013-09-09Calculate the lease time fields (expiry, renew, rebind) afterKenneth R Westerback
applying the option directives (ignore, default, supersede) from dhclient.conf. This allows the options dhcp-lease-time, dhcp-rebinding-time, and dhcp-renewal-time to be controlled via dhclient.conf. Also set BOOTP lease times by faking up these options rather than crudely jamming in fixed times, allowing them to become configurable via dhclient.conf. Imperviousness of the time options pointed out by todd@.
2013-08-25the comment that comma characters cannot be used in transformMike Belopuhov
names in ike_section_p2 applies to phase-1 transforms as well.
2013-08-22this full stop has lost its way...Jason McIntyre
2013-08-19Add missing util.hDavid Coppa
ok otto@ mpi@ mikeb@
2013-08-18Fix calls to printf-like functions which passed a non-fixed stringPhilip Guenther
as the format and no variable args. Replace "%#0.*X" with "%#.*X": the zero-fill flag is ignored/implied on numeric conversions when a precision is specified. ok jung@ millert@ krw@
2013-08-17Do not create a route to the bound address via 127.0.0.1. Our stackKenneth R Westerback
should be able to correctly short-circuit packet routing to local addresses without this. Requested by many over the years, most recently chrisz@. Get it in early to see if anything does break. ok claudio@ henning@
2013-08-16Replace the misleading SIOC{G,S}IFGENERIC ioctls by SIOCG{G,S}PPPPARAMS.Martin Pieuchot
This is another ABI break but no port rely on them as verified by naddy@. ok claudio@, mikeb@, henning@
2013-08-14Only skip address deleting/adding and route deleting/adding onFlorian Obser
identical lease when we are in state S_RENEWING. Otherwise we can end up without an IP address on the interface because dhclient thinks it's still there and doesn't add it. Found the hard way during suspend/resume. OK krw@
2013-08-14one more Mt; from jan staryJason McIntyre
2013-08-14some Bx/Ox conversion;Jason McIntyre
From: Jan Stary
2013-08-14no longer any need to quote macro lines with >9 args;Jason McIntyre
From: Jan Stary
2013-08-12Remove duplicate and incorrect recursive anchor printing codeMike Belopuhov
and instead rely on the one provided by the same function just a few lines below. ok lteo henning
2013-08-12Add missing \n after a warning.Raphael Graf
ok miod@
2013-08-11capitalize RAID in one spot.Brad Smith
2013-08-02Remove an incorrect call to pfctl_print_rule_counters when trying toMike Belopuhov
print out anchor rules recursively; unbreaks pf1.loaded regress test. ok lteo, henning
2013-08-01Provide local implementations of if_nametoindex(3) and if_indextoname(3)Mike Belopuhov
that make use of the cache of addresses populated by the ifa_load on startup to save the trouble of calling expensive getaddrinfo(3) up to four times per rule. Performance wise this change provides a speed up factor of 20 with a 11k line ruleset on a machine with 150 VLANs and 250 IP addresses (20 seconds down to 1 in this case). "wow!" henning, ok benno, florian
2013-07-21In getmntname(), iterate through the list of mount points fromTodd C. Miller
end to beginning instead of from beginning to end. This matches the behavior of umountall() and fixes "umount -a" in cases where there are multiple file systems on the same mount point. Based on a diff from naddy@. OK naddy@ guenther@
2013-07-21zap one redundant line, replacing it with a note that althoughJason McIntyre
SYNOPSIS suggests no options are neccessary, in fact a minimum of one is required; ok henning
2013-07-21tidy up DESCRIPTION somewhat, and format nicer;Jason McIntyre
ok henning
2013-07-21re-zap the previous paragraph, but this time in its place documentJason McIntyre
what happens when a broken pf config is encountered, both generally and at system startup; ok henning
2013-07-20reverting previous until i can work out what henning is telling me...Jason McIntyre
2013-07-19Prep for WARNINGS=yes: add the prototypes that were missing, silencePhilip Guenther
a "signed vs unsigned in conditional" warning, and eliminate what looks like an unintentional variable shadowing. ok bluhm@
2013-07-19Compile /sbin/route with -Wall enabled.Alexander Bluhm
OK deraadt@
2013-07-19remove redundant paragraph; from Pieter VerberneJason McIntyre
2013-07-18Revert 1.191 and 1.193 and fix the original problem (access to the lastPhilip Guenther
filesystem, currently ext2fs) by increasing maxtypenum sufficiently. suggested by Rafael Neves (rafaelneves (at) gmail.com)
2013-07-18Correct off-by-one in naming of nodes below vfs.mounts.Philip Guenther
problem noted by Rafael Neves (rafaelneves (at) gmail.com) ok jca@