projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
556d299
)
net: pim: add a helper to check for IPv4 all pim routers address
author
Nikolay Aleksandrov
<nikolay@cumulusnetworks.com>
Mon, 31 Oct 2016 12:21:03 +0000
(13:21 +0100)
committer
David S. Miller
<davem@davemloft.net>
Mon, 31 Oct 2016 20:18:30 +0000
(16:18 -0400)
Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/pim.h
patch
|
blob
|
blame
|
history
diff --git
a/include/linux/pim.h
b/include/linux/pim.h
index 354235a2691b4b66514d4a3ec893cef4caa18578..1b6c0dbba94eef865d87dc19496c1541ebf67408 100644
(file)
--- a/
include/linux/pim.h
+++ b/
include/linux/pim.h
@@
-57,4
+57,10
@@
static inline u8 pim_hdr_type(const struct pimhdr *pimhdr)
{
return pimhdr->type & 0xf;
}
+
+/* check if the address is 224.0.0.13, RFC7761 sec 4.3.1 */
+static inline bool pim_ipv4_all_pim_routers(__be32 addr)
+{
+ return addr == htonl(0xE000000D);
+}
#endif