How to communicate on /run/frr/ldpd.vty unix socket

Girish Patoliya girishkumar.patoliya at mavenir.com
Fri Mar 11 18:17:42 UTC 2022


Hi

I am trying to configure below sequence of commands from a C application.
enable
 configure terminal
    mpls ldp
        router-id 1.1.1.1

I am connecting on /run/frr/ldpd.vty unix socket and trying to write about command on socket fd.

currently write() is failing with bad file descriptor error.

by debugging I found that ldpd.vty is owned by frr:frrvty while my application runs as root.

to avoid this I compiled frr with --enable-user/group=root and vty group as root, still observed same issue.

is there any way to communicate with ldpd.vty from separate C application process?

Thanks
Girish


________________________________
This e-mail message may contain confidential or proprietary information of Mavenir Systems, Inc. or its affiliates and is intended solely for the use of the intended recipient(s). If you are not the intended recipient of this message, you are hereby notified that any review, use or distribution of this information is absolutely prohibited and we request that you delete all copies in your control and contact us by e-mailing to security at mavenir.com. This message contains the views of its author and may not necessarily reflect the views of Mavenir Systems, Inc. or its affiliates, who employ systems to monitor email messages, but make no representation that such messages are authorized, secure, uncompromised, or free from computer viruses, malware, or other defects. Thank You
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.frrouting.org/pipermail/dev/attachments/20220311/871e977d/attachment.htm>


More information about the dev mailing list