Move shared layer 2 global declarations into an appropriate header file.

Signed-off-by: Richard Cochran <richardcochran@gmail.com>
master
Richard Cochran 2012-08-25 09:24:08 +02:00
parent e1f77422ec
commit 529206112d
2 changed files with 11 additions and 2 deletions

View File

@ -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
View File

@ -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.