summaryrefslogtreecommitdiff
path: root/nhrpd/nhrp_multicast.c
AgeCommit message (Collapse)Author
2023-11-07*: Remove netlink headers from lib/zebra.hDonald Sharp
The headers associated with netlink code really only belong in those that need it. Move these headers out of lib/zebra.h and into more appropriate places. bgp's usage of the RT_TABLE_XXX defines are probably not appropriate and will be cleaned up in future commits. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2023-03-24*: Convert event.h to frrevent.hDonald Sharp
We should probably prevent any type of namespace collision with something else. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2023-03-24*: Convert THREAD_XXX macros to EVENT_XXX macrosDonald Sharp
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2023-03-24*: Convert thread_add_XXX functions to event_add_XXXDonald Sharp
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2023-03-24*: Rename `struct thread` to `struct event`Donald Sharp
Effectively a massive search and replace of `struct thread` to `struct event`. Using the term `thread` gives people the thought that this event system is a pthread when it is not Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2023-03-24*: Rename thread.[ch] to event.[ch]Donald Sharp
This is a first in a series of commits, whose goal is to rename the thread system in FRR to an event system. There is a continual problem where people are confusing `struct thread` with a true pthread. In reality, our entire thread.c is an event system. In this commit rename the thread.[ch] files to event.[ch]. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2023-02-09*: auto-convert to SPDX License IDsDavid Lamparter
Done with a combination of regex'ing and banging my head against a wall. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2022-02-23*: Change thread->func to return void instead of intDonald Sharp
The int return value is never used. Modify the code base to just return a void instead. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2021-10-19nhrpd: convert mcast list to DLISTDavid Lamparter
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2021-10-04nhrpd: Do not explicitly set the thread pointer to NULLDonatas Abraitis
FRR should only ever use the appropriate THREAD_ON/THREAD_OFF semantics. This is espacially true for the functions we end up calling the thread for. Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
2021-04-08nhrpd: Change sockunion2str to %pSU in a few placesReuben Dowle
Signed-off-by: Reuben Dowle <reuben.dowle@4rf.com>
2021-04-06nhrpd: Fix style issuesReuben Dowle
Signed-off-by: Reuben Dowle <reuben.dowle@4rf.com>
2021-04-06nhrpd: Add missing semicolonReuben Dowle
Signed-off-by: Reuben Dowle <reuben.dowle@4rf.com>
2021-04-06nhrpd: Improve debug message for multicast interceptionReuben Dowle
Signed-off-by: Reuben Dowle <reuben.dowle@4rf.com>
2021-04-06nhrpd: Cleanup multicast nflog handler functionReuben Dowle
Signed-off-by: Reuben Dowle <reuben.dowle@4rf.com>
2021-04-06nhrpd: Introduce new - nflog mutlicast-nflog-group (1-65535) - commandAmol Lad
Signed-off-by: Reuben Dowle <reuben.dowle@4rf.com>
2021-04-06nhrpd: Use ethertype defines instead of hard-coded valuesReuben Dowle
Signed-off-by: Reuben Dowle <reuben.dowle@4rf.com>
2021-04-06nhrpd: Fix style violation issuesReuben Dowle
Signed-off-by: Reuben Dowle <reuben.dowle@4rf.com>
2021-04-06nhrpd: Use correct printf format specifierReuben Dowle
Signed-off-by: Reuben Dowle <reuben.dowle@4rf.com>
2021-04-06nhrpd: Fix multicast crash due to dangling references to nhrp peersReuben Dowle
Signed-off-by: Reuben Dowle <reuben.dowle@4rf.com>
2021-04-06nhrpd: Add support for forwarding multicast packetsAmol Lad
Forwarding multicast is a pre-requisite for allowing multicast based routing protocols such as OSPF to work with DMVPN This code relies on externally adding iptables rule. For example: iptables -A OUTPUT -d 224.0.0.0/24 -o gre1 -j NFLOG --nflog-group 224 Signed-off-by: Reuben Dowle <reuben.dowle@4rf.com>