summaryrefslogtreecommitdiff
path: root/usr.sbin/switchd
AgeCommit message (Collapse)Author
2017-08-2865535 is a valid port to listen on.Florian Obser
Off-by-one pointed out by and diff from Kris Katterjohn katterjohn AT gmail, thanks! chris@ pointed out that more than httpd(8) is effected. OK gilles@
2017-08-06packet.c and parse.y no longer require err.h. ok jca@ florian@rob
2017-07-06/tmp/cvsa9y4jmMarc Espie
2017-07-03no need to generate y.tab.h if nothing uses it, set YFLAGS to nothingMarc Espie
instead of CLEANFILES += y.tab.h okay millert@
2017-05-29sync proc.c changes from relayd/httpdSebastian Benoit
2017-03-21From a syslog perspective it does not make sense to log fatal andAlexander Bluhm
warn with the same severity. Switch log_warn() to LOG_ERR and keep fatal() at LOG_CRIT. OK reyk@ florian@
2017-03-08argument to the document description (Nd) macro should be lowercase.Igor Sobrado
ok jmc@
2017-01-17Nuke some whitespace that keeps poking me in the eye as I try toKenneth R Westerback
steal code.
2017-01-17Fix OXM parser for set-field messages. Found it the hardway whileRafael Zalamena
testing set-field configuration.
2017-01-16pasto; snmpd->switchd in sample "include" line. ok reyk@Stuart Henderson
2017-01-09Stop accessing verbose and debug variables from log.c directly.Reyk Floeter
This replaces log_verbose() and "extern int verbose" with the two functions log_setverbose() and log_getverbose(). Pointed out by benno@ OK krw@ eric@ gilles@ (OK gilles@ for the snmpd bits as well)
2017-01-09Replace hand-rolled for(;;) traversal of ctl_conns TAILQ withKenneth R Westerback
TAILQ_FOREACH(). No intentional functional change. ok reyk@
2017-01-08Sync log.c with the latest version from vmd/log.c that preserves errnoReyk Floeter
so it is safe calling log_* after an error without loosing the it.
2017-01-05Replace symset()'s hand-rolled for(;;) traversal of 'symhead' TAILQKenneth R Westerback
with more modern TAILQ_FOREACH(). This what symget() was already doing. Add paranoia '{}' around body of symget()'s TAILQ_FOREACH(). No intentional functional change. ok bluhm@ otto@
2016-12-22Learn remote switch flow tables properties to find out where to installRafael Zalamena
the default table-miss flow for OpenFlow 1.3.5. This is enough to make switchd(8) to work with switch(4) and HP 3800 switch out-of-the-box. ok reyk@
2016-12-02Implement the connection state machine for OpenFlow 1.0 and 1.3 to detectRafael Zalamena
invalid state transitions and invalid protocol version switching after the hello messages exchange. ok reyk@
2016-11-29article fix; from rob pierceJason McIntyre
2016-11-22Add "features request" support and reply validation.Rafael Zalamena
ok reyk@
2016-11-22Implement support for version negotiation using hello messages. ThisRafael Zalamena
also prevents connections from switching the version in the middle of the operation. tweak from and ok reyk@
2016-11-21Do more strict checks of OXM by looking at mask restrictions and addRafael Zalamena
missing OXM type (IP_PROTO). ok reyk@
2016-11-21Add truncation validation for packet-out and reuse the action validationRafael Zalamena
function instead of manually rolling the code again. ok reyk@
2016-11-21Fix jumbo regress test for ofp10.c and use htonl() with OFP_PKTOUT_NO_BUFFERRafael Zalamena
for consistency. ok reyk@
2016-11-21Implement better table features validation. With this we get free switchctlRafael Zalamena
display of table features. ok reyk@
2016-11-21Parse flow-status instructions in multipart replies, so we can see whatRafael Zalamena
instructions are used by the flow.
2016-11-18The special LOCAL and CONTROLLER ports are valid source ports thatReyk Floeter
should be learned by the cache. Fixes "addlocal" ports on switch(4). OK rzalamena@
2016-11-18Make switchd(8) use more strings just like tcpdump(8). While here removeRafael Zalamena
action field display from features request.
2016-11-18Define a group_id map and rename the defines accordingly.Reyk Floeter
Requested by rzalamena@
2016-11-18Define constmap in ofp_map.h to be shared along with ofp_map.cReyk Floeter
2016-11-18Remove leading _ from include guards as this violates the reserved space.Reyk Floeter
2016-11-18Add more maps to print. As discussed with rzalamena@Reyk Floeter
2016-11-18Exclude the description field from the generated maps by default.Reyk Floeter
2016-11-18Small code improvements:Rafael Zalamena
- Free ibufs on validation failures; - Don't use htons() for flow-mod command; ok reyk@
2016-11-18Fix the flowmod header to send the correct command and buffer id.Reyk Floeter
OK rzalamena@
2016-11-18Define the struct constmap in each generated C file.Reyk Floeter
2016-11-18Fix file reference in generated comment OK rzalamena@Reyk Floeter
2016-11-17Fix some styles issues: break big lines and remove some useless spaces.Rafael Zalamena
2016-11-17In oflowmod, automatically open the instructions block with the firstReyk Floeter
instruction. This allows to make the grammar more flexible.
2016-11-17Add an abstraction layer / API to create flows including all matchesReyk Floeter
and instructions. This makes it easier to integrate flow features in switchd and switchctl later. Written and committed during a long flight. OK rzalamena@
2016-11-17Accept OFP_XM_T_ETH_TYPE.Reyk Floeter
OK rzalamena@
2016-11-17Add ofp_validate() for all supported versions. Will be used by switchctl,Reyk Floeter
no functional change.
2016-11-17Added the missing code to build flow-mod messages and to installRafael Zalamena
table-miss by default for switch(4). ok reyk@
2016-11-16Sync switchd(8) and vmd(8) with the latest proc.c changes. This syncRafael Zalamena
basically imports the imsg_flush() fix from reyk@ in httpd(8). ok reyk@
2016-11-15Add a socket_setport() util function, in addition to socket_getport(),Reyk Floeter
and use it in switchctl to set a default port for "dump". No functional change for switchd itself.
2016-11-11Move ofp_validate_header() into ofp_common.c. No functional change.Reyk Floeter
2016-11-11Remove "workarounds" for the read and write path that were needed toReyk Floeter
handle /dev/switch connections that didn't quite behave like TCP connections (no support for writev, no partial reads). With rzalamena's changes to switch(4), it now works as expected and doesn't need any special treatment anymore. OK rzalamena@
2016-11-07Implement support for flow-mod messages validation, this includes:Rafael Zalamena
action and instructions validation. ok reyk@
2016-11-07Fix a small parsing error in packet-in: don't count ofp_match header bytesRafael Zalamena
when iterating over the OXMs. It only works because the last bytes are either padding or something that looks like OXM. ok reyk@
2016-11-04Empty -> empty in log messagesReyk Floeter
2016-11-04Move ofp_output() into ofp_common.c and few function prototypes intoReyk Floeter
switchd.h. No functional change.
2016-10-20spread the Xr! as a bonus, typo fix in switchd.conf.5 too;Jason McIntyre
Xr diff from kapetanakis giannis