summaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@osdl.org>2006-05-26 00:10:37 +0200
committerDavid S. Miller <davem@sunset.davemloft.net>2006-06-18 06:26:08 +0200
commitbc0e646796928918e45b6465e02616f2fe65c3c1 (patch)
tree8c7a52563188e7e4168cd98b58b980c8096c02ce /include/net
parent[LLC]: allow applications to get copy of kernel datagrams (diff)
downloadlinux-bc0e646796928918e45b6465e02616f2fe65c3c1.tar.xz
linux-bc0e646796928918e45b6465e02616f2fe65c3c1.zip
[LLC]: add multicast support for datagrams
Allow mulitcast reception of datagrams (similar to UDP). All sockets bound to the same SAP receive a clone. Signed-off-by: Stephen Hemminger <shemminger@osdl.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/llc_if.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/net/llc_if.h b/include/net/llc_if.h
index a05d04ac4513..c608812a8e89 100644
--- a/include/net/llc_if.h
+++ b/include/net/llc_if.h
@@ -79,6 +79,10 @@ static inline int llc_addrany(const struct llc_addr *addr)
return llc_mac_null(addr->mac) && !addr->lsap;
}
+static inline int llc_mac_multicast(const u8 *mac)
+{
+ return is_multicast_ether_addr(mac);
+}
/**
* llc_mac_match - determines if two mac addresses are the same
* @mac1: First mac address to compare.