From 529206112ddc5c8f0d177559d1ded853d58f228c Mon Sep 17 00:00:00 2001 From: Richard Cochran Date: Sat, 25 Aug 2012 09:24:08 +0200 Subject: [PATCH] Move shared layer 2 global declarations into an appropriate header file. Signed-off-by: Richard Cochran --- ptp4l.c | 3 +-- raw.h | 10 ++++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ptp4l.c b/ptp4l.c index 6986aef..2648fe2 100644 --- a/ptp4l.c +++ b/ptp4l.c @@ -26,13 +26,12 @@ #include "config.h" #include "pi.h" #include "print.h" +#include "raw.h" #include "sk.h" #include "transport.h" #include "util.h" int assume_two_step; -extern unsigned char ptp_dst_mac[]; /*see raw.c*/ -extern unsigned char p2p_dst_mac[]; /*see raw.c*/ static int running = 1; diff --git a/raw.h b/raw.h index d062d41..c4747dd 100644 --- a/raw.h +++ b/raw.h @@ -23,6 +23,16 @@ #include "fd.h" #include "transport.h" +/** + * The MAC address to use for non-peer messages. + */ +extern unsigned char ptp_dst_mac[]; + +/** + * The MAC address to use for peer messages. + */ +extern unsigned char p2p_dst_mac[]; + /** * Allocate an instance of a raw Ethernet transport. * @return Pointer to a new transport instance on success, NULL otherwise.