+vpp-dev <vpp-dev@lists.fd.io> is the list for VPP development topics. You
have a better chance of engagement compared to mailing me directly, and
responses will be publicly visible to others later.

Linux CP is a part of mainline VPP (https://gerrit.fd.io/r/c/vpp/+/31122)
as of the 21.10 release. The Netlink Listener VPP plugin gets the messages
from the kernel, after they are sourced by the upstream userspace process
(so the flow in the case of FRR is protocol daemon(s) -> zebra -> (FPM) ->
kernel -> (netlink) -> VPP). There is no reason why you would not add other
types of netlink messages, if your usecase requires it.

If you can source your netlink messages in FRR with dplane_fpm_nl (the
netlink emitter in FRR, see https://docs.frrouting.org/en/latest/zebra.html),
and add register a callback for that type in lcp_router.c, see const
nl_vft_t lcp_router_vft  at the bottom of that file which registers the
callbacks in lcp_router_init(). One last comment -- lcpng is structured a
bit differently, but I do not recommend you use that codebase as it's not a
part of VPP and I offer no support for it, as noted at the top of the
README.md in the github repo :)

groet,
Pim


On Mon, Apr 25, 2022 at 12:14 PM 💫 <1843613...@qq.com> wrote:

> I am using the lcpng recently, and have some questions about the netlink
> listenner:
> I want to change the struct of the NEWROUT msg in FRR(or just add a type
> of new msg), so I want to know where or when the "netlink listenner" get
> the netlink msg, before the kernel get the  msg or after the kernel process
> the msg and  forward to the listenner?
> Does the lcpng can work well, if I add a type of new netlink msg in FRR
> and a function to process the msg in lcpng (dispatch...)?
> Thanks for reading, and looking forward to your reply. :)
>


-- 
Pim van Pelt <p...@ipng.nl>
PBVP1-RIPE - http://www.ipng.nl/
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#21283): https://lists.fd.io/g/vpp-dev/message/21283
Mute This Topic: https://lists.fd.io/mt/90681896/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to