zepif: fix destination IP (default should be broadcast, not 0.0.0.0)

This commit is contained in:
goldsimon
2018-03-01 07:08:03 +01:00
parent fcccc47be4
commit cb746a1aea
2 changed files with 18 additions and 11 deletions

View File

@@ -56,10 +56,14 @@ extern "C" {
/** Pass this struct as 'state' to netif_add to control the behaviour
* of this netif. If NULL is passed, default behaviour is chosen */
struct zepif_init {
/** The UDP port used for ZEP frames (0 = default) */
u16_t zep_udp_port;
/** The IP address to sed ZEP frames to */
const ip_addr_t *zep_ip_addr;
/** The UDP port used to ZEP frames from (0 = default) */
u16_t zep_src_udp_port;
/** The UDP port used to ZEP frames to (0 = default) */
u16_t zep_dst_udp_port;
/** The IP address to sed ZEP frames from (NULL = ANY) */
const ip_addr_t *zep_src_ip_addr;
/** The IP address to sed ZEP frames to (NULL = BROADCAST) */
const ip_addr_t *zep_dst_ip_addr;
/** If != NULL, the udp pcb is bound to this netif */
const struct netif *zep_netif;
/** MAC address of the 6LowPAN device */