[E] Re: [dev] How to communicate on /run/frr/ldpd.vty unix socket

Girish Patoliya girishkumar.patoliya at mavenir.com
Sat Mar 12 06:21:00 UTC 2022


Thanks for response William,

I tried with send and it did not work,
after re-thought on error "bad file descriptor" I found my FD was type casted to uint, which created issue.
Now I am able to configure ldp from C application using both write()|send().

Thanks a lot.

-----Original Message-----
From: dev <dev-bounces+girishkumar.patoliya=mavenir.com at lists.frrouting.org> On Behalf Of William Herrin
Sent: Saturday, March 12, 2022 4:00 AM
To: dev at lists.frrouting.org
Subject: [E] Re: [dev] How to communicate on /run/frr/ldpd.vty unix socket

[EXTERNAL EMAIL] DO NOT CLICK links or attachments unless you recognize the sender and know the content is safe.

On Fri, Mar 11, 2022 at 12:10 PM Girish Patoliya via dev <dev at lists.frrouting.org> wrote:
> currently write() is failing with bad file descriptor error.

Since it's a socket not a pipe, maybe you have to send() instead of write()?



--
William Herrin
bill at herrin.us
https://bill.herrin.us/

_______________________________________________
dev mailing list
dev at lists.frrouting.org
https://lists.frrouting.org/listinfo/dev
________________________________
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


More information about the dev mailing list