summaryrefslogtreecommitdiff
path: root/nhrpd/os.h
diff options
context:
space:
mode:
authorAmol Lad <amol.lad@4rf.com>2021-02-17 13:47:32 +1300
committerReuben Dowle <reuben.dowle@4rf.com>2021-04-06 09:22:59 +1200
commitfa31fcf2ea1157d3d14968d704878cc8fe058c91 (patch)
tree22e31544342b63579aab8865d229562152b96173 /nhrpd/os.h
parentc3f84751a944a65bc50c35004b5685eb875db584 (diff)
nhrpd: Add support for forwarding multicast packets
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>
Diffstat (limited to 'nhrpd/os.h')
-rw-r--r--nhrpd/os.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/nhrpd/os.h b/nhrpd/os.h
index dd65d3cbe1..2b9e07fa6e 100644
--- a/nhrpd/os.h
+++ b/nhrpd/os.h
@@ -1,7 +1,7 @@
int os_socket(void);
int os_sendmsg(const uint8_t *buf, size_t len, int ifindex, const uint8_t *addr,
- size_t addrlen);
+ size_t addrlen, uint16_t protocol);
int os_recvmsg(uint8_t *buf, size_t *len, int *ifindex, uint8_t *addr,
size_t *addrlen);
int os_configure_dmvpn(unsigned int ifindex, const char *ifname, int af);