summaryrefslogtreecommitdiff
path: root/sbin
AgeCommit message (Collapse)Author
2019-05-14Move common config passing code into a function.Florian Obser
OK pamela
2019-05-13Remove strict mode for now, it is in the way.Florian Obser
2019-05-13KERN_PFSTATUS is not handled by sysctl so warn about it if requested butClaudio Jeker
ignore if sysctl -a is used. OK bluhm@
2019-05-12Fix 'ifconfig nwflags; These flags ended up overlapping with other flagsStefan Sperling
in ieee80211com's ic_flags because we haven't been paying attention to them (they're not in the same place in the code and hence easy to miss). Move them to a dedicated variable to avoid this problem in the future. Add a new 'stayauth' nwflag which can be set to let net80211 ignore deauth frames. This can be useful when deauth frames are being persistently spoofed by an attacker. Idea from beck@ ok beck@ phessler@
2019-05-11Kill a couple of superfluous "return;" statementsKenneth R Westerback
at the end of void functions. First one pointed out by Andrey Sokolov via bugs@
2019-05-11Add support for IKEv2 Message Fragmentation as defined in RFC 7383.Patrick Wildt
ok sthen@
2019-05-11Add missing )Claudio Jeker
2019-05-11socppc makes an extended visit to the bigbucket.Theo de Raadt
ok kettenis
2019-05-10Restart the protocol and get a new/renewed lease for any relevantKenneth R Westerback
RTM_IFINFO seen. As dhclient no longer commits suicide to restart the protocol this should be very low cost. This will help some trunk(4) setups after some pending network stack commits. Requested by & ok florian@
2019-05-10Document port protection support in switch(4). Also add SIOCBRDGSIFPROT toakoshibe
list of ioctls in bridge(4). OK ccardenas@ kn@ phessler@
2019-05-10Make it possible to switch between wireless and physical interfacsSebastian Benoit
(again?): when adding the default route, set it with the interface address of the interface we are configuring. This way its possible to have two default routes (from two running dhclient processes) in the routing table. Since wireless interfaces have a higher prio value, when a physical interface is connected it will be prefered (for new connections). ok krw@ mumble yes mumble claudio@
2019-05-10Set the IKED_REQ_INFORMATIONAL flag when sending a delete requestPatrick Wildt
during rekeying to make sure that the response is not rejected. From Tobias Heider "much more stable" dhill@
2019-05-10Enforce messages after IKE_SA_INIT exchange to contain onlyPatrick Wildt
encrypted payloads. Also increment message id only for valid messages. From Tobias Heider ok sthen@
2019-05-10 Implement DNS block lists. If unwind is queried for a domainFlorian Obser
in the block list it answers with rcode REFUSED.
2019-05-10Delete superfluous #includes of <ifaddrs.h>, <net/if_dl.h>, and <net/if_enc.h>Philip Guenther
ok krw@, jsg@
2019-05-08 When starting up use the built-in DNSSEC trust anchor as well as theFlorian Obser
on-disk one to give us a better chance on root KSK roll. Either we were online during the time the key rolled or we are running on a version of unwind(8) that has the new KSK.
2019-05-08pfctl should check pfctl.astack is not overrunAlexandr Nedvedicky
(bug found and fixed by Petr Hoffmann _at_ oracle.com) OK kn@
2019-05-08update to PF pfctl(8) and pf.conf(5) manpagesAlexandr Nedvedicky
great input by Ingo, Jason and Klemens OK schwarze@, OK kn@, OK jmc@
2019-05-06Only try to resolve the DNSSEC trust anchor if we have a validatingFlorian Obser
resolver context. Otherwise we will ignore the answer later on anyway.
2019-05-03Revert previous, I got too excited and forgot about the config file :(Florian Obser
2019-04-30tweak synopsis to match actual option logicMarc Espie
okay schwarze@, jmc@
2019-04-30elaborate a little on how route priorities work;Jason McIntyre
help/ok claudio
2019-04-30Restrict file system access to /var/db for the dhclient lease files.Florian Obser
This and pledge("rpath") can go once we switch to RTM_PROPOSAL.
2019-04-29Add '*' to disklabel(8) editor prompt when in-memory copy of disklabelKenneth R Westerback
has been modified. Use name of disk being edited in fdisk(8) editor prompt. Idea from tb@. ok tb@ deraadt@
2019-04-28fix misplaced hyphen in usage();Jason McIntyre
2019-04-28Remove need for -A option, lack of a vnd_dev option implies creatingTheo de Raadt
a vnd. Seperate out the code a fair bit.
2019-04-27keep the grammatical structure of the options list consistent;Jason McIntyre
2019-04-26document -AMarc Espie
okay deraadt@
2019-04-26Fix a missing carriage return.denis
OK deraadt@
2019-04-25Remove vnconfig functionality, and try to adapt the manual page.Theo de Raadt
I'm considering simply deleting mount_vnd -- are there any users of this bizzare feature?
2019-04-25install new vnconfigTheo de Raadt
2019-04-25Push verbose information to stderr, to avoid confusion with -A's output.Theo de Raadt
2019-04-25fix some basic formatting issues;Jason McIntyre
2019-04-25Split vnconfig out of mount_vnd, and begin work on a vnd-allocationTheo de Raadt
option which will ease distribution build. not connected to the build yet.
2019-04-23missing dots after ".%P pp"; the case of btree(3) wasIngo Schwarze
reported by Fabio Scotoni <fabio at esse dot ch>; also garbage collect one .Tn while here
2019-04-19rxprio.David Gwynne
2019-04-19add support for getting and setting rxprioDavid Gwynne
this complements txprio and should finish support for RFC 2983 ok claudio@
2019-04-18Always check for namespace collisions on table commandskn
`-t table -T add|replace ...' would only check for duplicate tables in case addresses where actually to the table. Instead of using a positive number of added addresses as prove for successful table operations, rely on the fact that CREATE_TABLE() is guaranteed to be called only if pf(4) can be accessed, that is warn_duplicate_tables() will return. This improves duplicate detection rate as warnings are now also emitted even when table commands eventually leave tables unchanged. OK benno sashan
2019-04-18Fix table definition parsing as unprivileged userkn
revision 1.689 introduced warn_duplicate_tables() unconditionally, breaking the parser on tables withs insufficient permissions to open pf(4): $ echo 'table <t>' | pfctl -nf- pfctl: pfr_get_tables: Bad file descriptor So simply check whether pfctl is able to get the table list first. If not, instead of silently avoiding namespace collision checks, print a brief notice iff `-v' is given to help finding duplicate definitions by hand: $ echo 'table <t>' | ./obj/pfctl -vnf- table <t> stdin:1: skipping duplicate table checks for <t> Reported by Rivo Nurges, thanks! OK benno sashan
2019-04-17signpost the location of the text explaining routing table output a little ↵Jason McIntyre
better...
2019-04-16restore some missing error handlingDavid Gwynne
2019-04-15introduce 'pfctl -FR' to reset settings to defaultsAlexandr Nedvedicky
(discussed with many at tech@) OK deraadt@, kn@, sthen@, tedu@
2019-04-15Remove old vlan and [-]vlandev codekn
These were deprecated with 6.3, but instead of removing them all together, keep [-]vlan and [-]vlandev as aliases for [-]vnetid and [-]parent. Alias idea from sthen OK dlg sthen benno
2019-04-15ethtool indicates that QSFP, QSFP+ and QSFP28 are all SFF-8636 compat.David Gwynne
2019-04-15follow the basic xfp support with basic qsfp+ supportDavid Gwynne
qsfp was originally defined in SFF-8436, but the management interface now seems to be managed in SFF-8636, so this uses sff8636 as a prefix for qsfp things. the same spec applies to qsfp+ and probably qsfp28. XFP and QSFP share a bunch of offsets for where strings are located, so this factors out the printing of those strings from the xfp code and uses it from both the xfp and qsfp handling. i have a qsfp+ to 4x sfp+ cable that looks like this with the new code: transceiver: QSFP+ model: Amphenol 601110005 rev A serial: CN0HVVVFxxxxxxx date: 2013-04-18 if i ever get a pair of optics i can work on the diags
2019-04-15basic support for dumping xfp infoDavid Gwynne
xfp uses a different page layout compared to sfp. xfp uses info in INF-8077, not SFF-8472, and by default provides the info at page 1, not 0. myx(4) supports xfp modules, but doesn't support i2c writes so it cannot change the page the chip is looking at. it appears that myx defaults to page 1 for xfp, so if the first read of page 0 fails with ENXIO, try to read page 1 instead. a 10G-PCIE-8A-R myx with the only xfp module i could find lying around looks like this: transceiver: XFP model: Intel Corp TXN181070850X1J rev B3 serial: USC2048M95 date: 2005-04-13 im not sure if it's worth spending much more time on these though..
2019-04-11print transceiver supported distances, ok deraadtStuart Henderson
2019-04-11print transceiver information inline with standard interface detailsStuart Henderson
(like media/joinlist do) rather than totally separate; this also allows "ifconfig -a sff" or "ifconfig ix sff". tweak display format to make it look closer to the standard lines. ok deraadt
2019-04-10use AOC and DAC instead of standard's names "optical / copper pigtail"Theo de Raadt
because these are the commonly used terminology ok claudio sthen
2019-04-10MPO cable names were swappedTheo de Raadt