|
|
@ -26,8 +26,7 @@ static int try_forward(n2n_sn_t * sss, |
|
|
|
const n2n_mac_t dstMac, |
|
|
|
uint8_t from_supernode, |
|
|
|
const uint8_t * pktbuf, |
|
|
|
size_t pktsize, |
|
|
|
uint8_t from_supernode); |
|
|
|
size_t pktsize); |
|
|
|
|
|
|
|
static ssize_t sendto_sock(n2n_sn_t *sss, |
|
|
|
const n2n_sock_t *sock, |
|
|
@ -45,8 +44,7 @@ static int try_broadcast(n2n_sn_t * sss, |
|
|
|
const n2n_mac_t srcMac, |
|
|
|
uint8_t from_supernode, |
|
|
|
const uint8_t * pktbuf, |
|
|
|
size_t pktsize, |
|
|
|
uint8_t from_supernode); |
|
|
|
size_t pktsize); |
|
|
|
|
|
|
|
static uint16_t reg_lifetime(n2n_sn_t *sss); |
|
|
|
|
|
|
@ -86,8 +84,7 @@ static int try_forward(n2n_sn_t * sss, |
|
|
|
const n2n_mac_t dstMac, |
|
|
|
uint8_t from_supernode, |
|
|
|
const uint8_t * pktbuf, |
|
|
|
size_t pktsize, |
|
|
|
uint8_t from_supernode) |
|
|
|
size_t pktsize) |
|
|
|
{ |
|
|
|
struct peer_info * scan; |
|
|
|
macstr_t mac_buf; |
|
|
@ -181,8 +178,7 @@ static int try_broadcast(n2n_sn_t * sss, |
|
|
|
const n2n_mac_t srcMac, |
|
|
|
uint8_t from_supernode, |
|
|
|
const uint8_t * pktbuf, |
|
|
|
size_t pktsize, |
|
|
|
uint8_t from_supernode) |
|
|
|
size_t pktsize) |
|
|
|
{ |
|
|
|
struct peer_info *scan, *tmp; |
|
|
|
macstr_t mac_buf; |
|
|
|