summaryrefslogtreecommitdiffstats
path: root/usr.sbin (follow)
Commit message (Collapse)AuthorAgeFilesLines
* reset the io event when data is queued.eric2016-11-243-33/+17
| | | | | | remove all calls to io_reload() which are now unnecessary. ok gilles@ sunil@
* Don't attempt to call vm_remove() with a NULL vm: some functions likereyk2016-11-221-6/+7
| | | | | | config_getvm() already removed the vm on failure! Found by mlarkin@
* Add "features request" support and reply validation.rzalamena2016-11-221-13/+66
| | | | ok reyk@
* Fix error path of config_setvm() and its callers. This unbreaksreyk2016-11-222-52/+31
| | | | | | | loading of invalid kernel files. Reported by mlarkin@ OK mlarkin@
* Restore previous errno after log_warn*() to make sure that it neverreyk2016-11-221-1/+3
| | | | | | alters it. OK mlarkin@
* Implement support for version negotiation using hello messages. Thisrzalamena2016-11-225-19/+200
| | | | | | | also prevents connections from switching the version in the middle of the operation. tweak from and ok reyk@
* Fix printf of NULL for the FILTERERR case when the tempfile is emptymillert2016-11-221-2/+2
| | | | or missing. From Sebastien Marie.
* Make sure /var/syspatch/$OSREV is not on a read-only mount-point when doingajacoutot2016-11-221-2/+2
| | | | a rollback.
* Fix OFP spelling for version bitmap define in ofp header and tcpdump, alsorzalamena2016-11-221-3/+3
| | | | | | change the truncation message in hello with the standard one. ok reyk@
* There is no need for res when there is already ret.reyk2016-11-221-5/+4
|
* Insert disabled VMs into vmd(8)'s queues and allow vmctl(8) to display them.edd2016-11-224-15/+66
| | | | | | | | Tested by Jon Bernard and reyk@. OK reyk@, no objections mlarkin@. Thanks
* Allow passing an explicit return code to sp_err() in case we don't want to exitajacoutot2016-11-221-21/+24
| | | | | | right away. Factorise some common stuff. Be consistent in variables subtitution.
* Normalize the io input buffer internally when reinstalling the io event, soeric2016-11-225-19/+11
| | | | | | the caller doesn't have to bother with this. ok gilles@ sunil@
* Do more strict checks of OXM by looking at mask restrictions and addrzalamena2016-11-211-7/+48
| | | | | | missing OXM type (IP_PROTO). ok reyk@
* Add truncation validation for packet-out and reuse the action validationrzalamena2016-11-211-31/+36
| | | | | | function instead of manually rolling the code again. ok reyk@
* Fix jumbo regress test for ofp10.c and use htonl() with OFP_PKTOUT_NO_BUFFERrzalamena2016-11-212-8/+8
| | | | | | for consistency. ok reyk@
* Implement better table features validation. With this we get free switchctlrzalamena2016-11-211-18/+161
| | | | | | display of table features. ok reyk@
* Check return value of tls_config_set_protocols(3) and log if it failsmestre2016-11-211-3/+9
| | | | OK bluhm@
* Use the same basename for the rollback tarball as the original patch.sig.ajacoutot2016-11-211-15/+21
|
* Tweak comment. Reverse cmp logic while here.ajacoutot2016-11-211-3/+3
|
* replace calls to iobuf_*() functions with the corresponding io_*() wrappers.eric2016-11-215-77/+67
| | | | ok sunil@ gilles@
* Parse flow-status instructions in multipart replies, so we can see whatrzalamena2016-11-211-3/+25
| | | | instructions are used by the flow.
* Remove some old code that isn't needed anymore.mlarkin2016-11-201-11/+2
|
* Extend the DLT_OPENFLOW header to include the switch datapath id.reyk2016-11-201-8/+9
| | | | OK rzalamena@
* add dedicated functions to set fd and callback on a struct io.eric2016-11-207-27/+47
| | | | | | simplify io_init() prototype. ok sunil@ gilles@
* Make tcpdump indicate basic rates listed in beacons with an asterisk.stsp2016-11-191-3/+5
| | | | ok tb@
* Print metric and type for "redistribute" in ospfd -v.sthen2016-11-191-6/+9
| | | | From Remi Locherer, ok claudio
* Unbreak the tree: OFP_GROUP_ANY was renamed to OFP_GROUP_ID_ANY.tb2016-11-181-2/+3
| | | | fix found joint with rpe, ok reyk
* The special LOCAL and CONTROLLER ports are valid source ports thatreyk2016-11-182-10/+12
| | | | | | should be learned by the cache. Fixes "addlocal" ports on switch(4). OK rzalamena@
* Make switchd(8) use more strings just like tcpdump(8). While here removerzalamena2016-11-181-73/+67
| | | | action field display from features request.
* Add support for printing the missing OpenFlow set-queue action.rzalamena2016-11-181-2/+17
|
* Don't print the field 'actions' on features reply, because in the newrzalamena2016-11-181-3/+3
| | | | OpenFlow 1.3.5 it is a reserved field that is not being used.
* miss_send_len can also be a CONTROLLER_MAXLEN string not just a number.reyk2016-11-181-3/+5
| | | | Requested by rzalamena@
* Updates tcpdump's OpenFlow printer to use the string maps from switchdreyk2016-11-184-88/+586
| | | | | | (manually synced). Also make the output a bit more like other printers. OK rzalamena@
* Define a group_id map and rename the defines accordingly.reyk2016-11-182-3/+4
| | | | Requested by rzalamena@
* Define constmap in ofp_map.h to be shared along with ofp_map.creyk2016-11-184-16/+12
|
* Remove leading _ from include guards as this violates the reserved space.reyk2016-11-183-12/+12
|
* Add support for multiple listening socketsjca2016-11-185-51/+87
| | | | | | One can now specify multiple "listen on" statements. The default is to listen on 0.0.0.0 and ::, which means better handling of dual-stack setups. ok sthen@ on a previous version, input and ok reyk@.
* Add more maps to print. As discussed with rzalamena@reyk2016-11-181-1/+6
|
* Exclude the description field from the generated maps by default.reyk2016-11-181-5/+18
|
* Small code improvements:rzalamena2016-11-181-35/+47
| | | | | | | - Free ibufs on validation failures; - Don't use htons() for flow-mod command; ok reyk@
* Fix the flowmod header to send the correct command and buffer id.reyk2016-11-181-1/+7
| | | | OK rzalamena@
* Define the struct constmap in each generated C file.reyk2016-11-181-3/+7
|
* Fix file reference in generated comment OK rzalamena@reyk2016-11-181-3/+3
|
* fix regression introduced in previous commiteric2016-11-182-41/+58
| | | | | | spotted by Heiko Zimmermann ok gilles@
* Add io api functions for dealing with buffered data, as wrapper arounderic2016-11-174-10/+133
| | | | | | their iobuf counterparts. ok gilles@ sunil@
* Fix some styles issues: break big lines and remove some useless spaces.rzalamena2016-11-173-8/+11
|
* Re-add the root user checks in the quirks; that part is to be removed soon.ajacoutot2016-11-171-1/+5
|
* Check the return value of tls_config_set_protocols(), now that it returnsjsing2016-11-171-4/+7
| | | | an int.
* Move OCSP loading into a separate function - it is not part of the keypairjsing2016-11-173-22/+42
| | | | | | and this way we can give a separate specific error message. ok beck@ reyk@