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.