Move shared layer 2 global declarations into an appropriate header file.
Signed-off-by: Richard Cochran <richardcochran@gmail.com>master
parent
e1f77422ec
commit
529206112d
3
ptp4l.c
3
ptp4l.c
|
@ -26,13 +26,12 @@
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "pi.h"
|
#include "pi.h"
|
||||||
#include "print.h"
|
#include "print.h"
|
||||||
|
#include "raw.h"
|
||||||
#include "sk.h"
|
#include "sk.h"
|
||||||
#include "transport.h"
|
#include "transport.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
|
||||||
int assume_two_step;
|
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;
|
static int running = 1;
|
||||||
|
|
||||||
|
|
10
raw.h
10
raw.h
|
@ -23,6 +23,16 @@
|
||||||
#include "fd.h"
|
#include "fd.h"
|
||||||
#include "transport.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.
|
* Allocate an instance of a raw Ethernet transport.
|
||||||
* @return Pointer to a new transport instance on success, NULL otherwise.
|
* @return Pointer to a new transport instance on success, NULL otherwise.
|
||||||
|
|
Loading…
Reference in New Issue