UWB WLP IPv6

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi David,
I have a patch to enable IPv6 with the WLP code that comes with the UWB
drivers. It basically checks for multicast and broadcast addresses
instead of broadcast only when transmitting data.

However I am still puzzled about the comment in drivers/uwb/wlp/txrx.c:
"... but we don't support multicast yet (until devices start to support
MAB IEs) ...". 
It seems like they left out multicast intentionally. I do not know what
to make out of it. Did they just think of IPv4 multicast features or
also IPv6? Anyhow we do not had or see any problems by applying the
patch.

Frank



Here is the patch:
-----------------------------------------------------------


Enables WLP to be used with IPv6. Now Ethernet multicast addresses are 
supported that are frequently used in IPv6 traffic. 

Signed-off-by: Frank Leipold <frank.leipold@xxxxxxxx>
---
 drivers/uwb/wlp/txrx.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/uwb/wlp/txrx.c b/drivers/uwb/wlp/txrx.c
index cd20357..86a853b 100644
--- a/drivers/uwb/wlp/txrx.c
+++ b/drivers/uwb/wlp/txrx.c
@@ -326,7 +326,7 @@ int wlp_prepare_tx_frame(struct device *dev, struct
wlp *wlp,
 	int result = -EINVAL;
 	struct ethhdr *eth_hdr = (void *) skb->data;
 
-	if (is_broadcast_ether_addr(eth_hdr->h_dest)) {
+	if (is_multicast_ether_addr(eth_hdr->h_dest)) {
 		result = wlp_eda_for_each(&wlp->eda, wlp_wss_send_copy,
skb);
 		if (result < 0) {
 			if (printk_ratelimit())
-- 
1.5.4.3
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux