summaryrefslogtreecommitdiffstats
path: root/nhrpd/linux.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* nhrpd: unset noarp flag using a zapi messageLouis Scalbert2024-01-241-21/+0
| | | | | | | Unset the IFF_NOARP interface flag using a ZAPI message. It removes the dependency to if.h headers. Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
* *: zebra.h should not have fcntl.hDonald Sharp2024-01-091-0/+1
| | | | Signed-off-by: Donald Sharp <sharpd@nvidia.com>
* *: Remove sys/ioctl.h from zebra.hDonald Sharp2024-01-041-0/+1
| | | | | | | Practically no-one uses this and ioctls are pretty much wrappered. Further wrappering could make this even better. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
* *: auto-convert to SPDX License IDsDavid Lamparter2023-02-091-5/+1
| | | | | | Done with a combination of regex'ing and banging my head against a wall. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* build: first header *must* be zebra.h or config.hDavid Lamparter2022-04-041-1/+2
| | | | | | | | This has already been a requirement for Solaris, it is still a requirement for some of the autoconf feature checks to work correctly, and it will be a requirement for `-fms-extensions`. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* nhrpd: clean up SA warning with strncpyPhilippe Guibert2021-04-301-15/+1
| | | | | | strncpy is replaced by strlcpy. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
* nhrpd: cleaning netlink gre informationPhilippe Guibert2021-04-301-5/+1
| | | | | | | flush netlink related dependencies with gre information. Add some linux headers required to compile with it. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
* nhrpd: fix coverity warning about os_socket()Mark Stapp2021-04-141-2/+6
| | | | | | | Ensure we don't try to use an invalid fd in nhrpd, reported by coverity. Signed-off-by: Mark Stapp <mjs@voltanet.io>
* Merge pull request #8153 from reubendowle/nhrp-multicastJafar Al-Gharaibeh2021-04-131-6/+12
|\ | | | | nhrp, ospf: add nhrp multicast for OSPF DMVPN
| * nhrpd: Fix style issuesReuben Dowle2021-04-051-1/+1
| | | | | | | | Signed-off-by: Reuben Dowle <reuben.dowle@4rf.com>
| * nhrpd: Use strlcpy not unsafe strncpyReuben Dowle2021-04-051-1/+6
| | | | | | | | Signed-off-by: Reuben Dowle <reuben.dowle@4rf.com>
| * nhrpd: Add support for forwarding multicast packetsAmol Lad2021-04-051-5/+6
| | | | | | | | | | | | | | | | | | | | 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>
* | nhrpd: add a zebra api to configure neighbor table per interfacePhilippe Guibert2021-04-121-1/+0
|/ | | | | | | neighbor table per interface is being configured per interface, via zebra api. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
* *: use appropriate buffer sizes, specifiersQuentin Young2020-04-211-1/+2
| | | | | | | | - Fix 1 byte overflow when showing GR info in bgpd - Use PATH_MAX for path buffers - Use unsigned specifiers for uint16_t's in zebra pbr Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
* *: sprintf -> snprintfQuentin Young2020-04-211-1/+2
| | | | | | | | | | | | | Replace sprintf with snprintf where straightforward to do so. - sprintf's into local scope buffers of known size are replaced with the equivalent snprintf call - snprintf's into local scope buffers of known size that use the buffer size expression now use sizeof(buffer) - sprintf(buf + strlen(buf), ...) replaced with snprintf() into temp buffer followed by strlcat Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
* Revert "nhrpd: strncpy -> strlcpy"Quentin Young2019-03-051-1/+1
| | | | This reverts commit eb266ecb847b70bcf9901da5ed59a39d3e07fd8f.
* nhrpd: strncpy -> strlcpyQuentin Young2019-02-261-1/+1
| | | | | | strncpy is a byte copy function not a string copy function Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
* *: fix config.h/zebra.h include orderDavid Lamparter2018-09-081-0/+4
| | | | | | | | config.h (or, transitively, zebra.h) must be the first include file listed for autoconf things like _GNU_SOURCE and _POSIX_C_SOURCE to work correctly. Signed-off-by: David Lamparter <equinox@diac24.net>
* *: conform with COMMUNITY.md formatting rules, via 'make indent'Lou Berger2018-03-061-8/+9
| | | | Signed-off-by: Lou Berger <lberger@labn.net>
* nhrpd: fix issues found by coverityJorge Boncompte2017-08-101-1/+1
| | | | Signed-off-by: Jorge Boncompte <jbonor@gmail.com>
* nhrpd: configure mgre ipv6 nd for nhrpTimo Teräs2017-05-191-4/+4
| | | | | Signed-off-by: Timo Teräs <timo.teras@iki.fi> Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* nhrpd: implement next hop resolution protocolTimo Teräs2017-03-071-0/+153
This provides DMVPN support and integrates to strongSwan. Please read README.nhrpd and README.kernel for more details. [DL: cherry-picked from dafa05e65fe4b3b3ed5525443f554215ba14f42c] [DL: merge partially resolved, this commit will not build.] Signed-off-by: Timo Teräs <timo.teras@iki.fi> Signed-off-by: David Lamparter <equinox@opensourcerouting.org>