Signed-off-by: Jiri Benc <[email protected]>
---
raw.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/raw.c b/raw.c
index 795292fab358..2afe8a25f85a 100644
--- a/raw.c
+++ b/raw.c
@@ -102,14 +102,14 @@ static int raw_configure(int fd, int event, int index,
mreq.mr_ifindex = index;
mreq.mr_type = PACKET_MR_MULTICAST;
- mreq.mr_alen = 6;
- memcpy(mreq.mr_address, addr1, 6);
+ mreq.mr_alen = MAC_LEN;
+ memcpy(mreq.mr_address, addr1, MAC_LEN);
err1 = setsockopt(fd, SOL_PACKET, option, &mreq, sizeof(mreq));
if (err1)
pr_warning("setsockopt PACKET_MR_MULTICAST failed: %m");
- memcpy(mreq.mr_address, addr2, 6);
+ memcpy(mreq.mr_address, addr2, MAC_LEN);
err2 = setsockopt(fd, SOL_PACKET, option, &mreq, sizeof(mreq));
if (err2)
--
1.7.6.5
------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
Linuxptp-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel