summaryrefslogtreecommitdiff
path: root/sbin
AgeCommit message (Collapse)Author
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
2019-04-10use correct printf format for current dBm valuesStuart Henderson
problem spotted by Hrvoje, thank you! ok deraadt
2019-04-10tweak previous; ok dlgJason McIntyre
2019-04-10Tweak transceiver information printing, adding a bit more informationStuart Henderson
in less space. Adds wavelength, printing alarm low/high thresholds, and prints a flag for warning or alarm indications. "i like it" deraadt@
2019-04-10mention that "ifconfig foo0 transceiver" is a thingDavid Gwynne
2019-04-10add support for fetching and parsing SFF module info and diagsDavid Gwynne
this is very basic, and will get cut up a lot by sthen@ soon, but it was enough to get us started with. at the moment it shows the type of module, some vendor and products strings, and detects if the device supports diag and then shows it. qsfp info is structured very differently, but i'll let sfp support settle before trying to make it look the same. so far only ix(4) and some ixl(4) with up to date firmware implement the backend ioctl for this. no em(4) yet :( suggestions from mikeb@ ok deraadt@ sthen@ this was started because of a question from rachel roch
2019-04-06Don't mangle command line arguments with strsep(). MangleKenneth R Westerback
a strdup()'d copy and throw it away when done. cluebat from deraadt@
2019-04-03Take the length of an initialized string, not aKenneth R Westerback
soon-but-not-yet-initialized string. Should fix "Segmentation fault" reported by Raf Czlonka.
2019-04-03Default to port 853 if DoT is used; pointed out by teduFlorian Obser
2019-04-03Add comment to prod updates to regress/sbin/disklabelKenneth R Westerback
*.ok files whenever space_allocation tables are modified.
2019-04-02be consistent with "DoT"; from raf czlonkaJason McIntyre
2019-04-02When curve25519 was added to iked, it was based on the internet-draft andStuart Henderson
used a private-use group number. Switch to the group number assigned in RFC8031 as used in other implementations. "this is the right time" deraadt@ "I like the idea" reyk@ If you use iked<>iked and have configured curve25519 in iked.conf (this is not the default), you can switch to another PFS group before updating then switch back. OpenBSD 6.3+ allows multiple "ikesa" lines so the initiator can choose which to use.
2019-04-02move the captive portal text into the actual block;Jason McIntyre
add an entry for /etc/example/unwind.conf; sort; ok florian
2019-04-02use a compact list for previous, and tweak a little; ok florianJason McIntyre
2019-04-02the fiendishly that needed some extra space here didn't pan outFlorian Obser
2019-04-02Simplify code; we can loop over our resolvers now.Florian Obser
2019-04-02Add a config option to specify the preference of name servers.Florian Obser
Unfortunately the nameserver types enums needed to be renamed to not collide with yacc tokens.
2019-04-02Collapse case statements to a common fall through and use the passedFlorian Obser
in type to identify the resolver now that they can be addressed by index.
2019-04-02Introduce array of resolvers in preparation of custom orderingFlorian Obser
2019-04-02Add human readable parsing/display of RFC1035 data in domain-searchKenneth R Westerback
option. Replace handrolled dn_expand() with the system version. Existing hex octet versions still accepted. New format is option domain-search "my.domain.org", "fw.my.domain.org"; It is now possible to append and prepend domains to the list provided by the server. Documention update to dhcp-options(5) in the pipeline! Inspired by dhcpd(8) domain-search diff from William Ahern. Code peered at by florian@ and kn@.
2019-04-02Use consistant idiom for checking return value ofKenneth R Westerback
ioctl() (i.e. == -1). Don't prepend 'ioctl ' to ioctl name in error or warning messages. Always put the ioctl name in emitted messages. No intentional functional change.
2019-04-02No need for RESTORE (-R) to call DIOCGINFO and mpsave() twice inKenneth R Westerback
normal mode. And not overwriting any -F/-f file when in -n (donothing) mode is likely less surprising.
2019-04-02Remove l_perror() and rely on warn() for failureKenneth R Westerback
messages in writelabel(). Consolidate two consecutive 'if (!donothing) ...' blocks into one.
2019-04-01Reduce code duplication and ensure that a type of resolver and it'sFlorian Obser
checking counterpart are created the same way.
2019-04-01Implement "Authentication Domain Names" configuration as per RFC 8310Florian Obser
section 7.1 for DoT servers. We are setting the CA cert bundle path (/etc/ssl/cert.pem) directly in libunbound so we need to losen pledge(2) a bit and allow rpath. At the same time we unveil only /etc/ssl/cert.pem. We can drop the chroot(2) since pledge(2) and unveil(2) give us more fine grained isolation. prodding by tb@. p.s. for portable it might be necessary to pass in a file descriptor from the parent, slurp in the file and then use X509_STORE_load_mem() (pointed out by sthen) in the guts of libunbound.
2019-04-01Bring documentation into better correspondanceKenneth R Westerback
with latest command line prompt change. ok kn@ jmc@, with more improvements inevitable.
2019-04-01No need to save/restore fields across the invocation ofKenneth R Westerback
getasciilabel() when getasciilabel() explicitly avoids changing those fields. ok otto@
2019-03-31simpler display;Jason McIntyre