]> git.puffer.fish Git - matthieu/frr.git/commit
lib: allow returning a file descriptor over vtysh
authorDavid Lamparter <equinox@diac24.net>
Tue, 3 Dec 2019 23:17:50 +0000 (00:17 +0100)
committerDavid Lamparter <equinox@opensourcerouting.org>
Mon, 28 Feb 2022 12:28:40 +0000 (13:28 +0100)
commitb2dde56b2c1aa793a476ac6beed2a28dd74e4591
tree47230be86b2b2ef48ddb6d2c41552334059999e0
parentdf45017f48a9f8802386d70828efb074b2e52a05
lib: allow returning a file descriptor over vtysh

This adds the plumbing necessary to yield back a file descriptor to
vtysh.  The fd is passed on the command status code bytes through
AF_UNIX SCM_RIGHTS.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
lib/vty.c
lib/vty.h