CVSROOT:        /cvs
Module name:    src
Changes by:     r...@cvs.openbsd.org    2016/10/12 13:07:42

Modified files:
        usr.sbin/switchd: control.c ofcconn.c ofp.c ofrelay.c parse.y 
                          switchd.c switchd.h types.h 
        usr.sbin/switchctl: parser.c parser.h switchctl.8 switchctl.c 

Log message:
Start reworking the "device" support in switchd: Once connected, a
device is just an fd that is connected to a switch, either via TCP or
via /dev/switch.  Change the switchctl from "device add" to "connect"
etc.  This change is an intermediate step towards other changes,
including the configuration grammar, so a few things will be left
undocumented for now.

switchctl(8) examples,
switchctl connect /dev/switch0
switchctl connect /dev/switch0 forward-to 10.1.1.1
switchctl connect 127.0.0.1
switchctl connect 127.0.0.1 forward-to 10.1.1.1
switchctl disconnect /dev/switch0

Discussed with rzalamena@

Reply via email to