Added BVLC Read-Broadcast-Distribution-Table demo (doesn't print table yet).

This commit is contained in:
skarg
2012-10-24 22:09:43 +00:00
parent 6facc07c74
commit fa12f4bcdf
6 changed files with 435 additions and 13 deletions
+12 -4
View File
@@ -31,6 +31,8 @@
#include "bacdef.h"
#include "npdu.h"
struct sockaddr_in; /* Defined elsewhere, needed here. */
#ifdef __cplusplus
extern "C" {
@@ -55,12 +57,15 @@ extern "C" {
uint8_t * pdu, /* any data to be sent - may be null */
unsigned pdu_len);
int bvlc_send_mpdu(
struct sockaddr_in *dest,
uint8_t * mtu,
uint16_t mtu_len);
#if defined(BBMD_CLIENT_ENABLED) && BBMD_CLIENT_ENABLED
int bvlc_encode_write_bdt_init(
uint8_t * pdu,
unsigned entries);
int bvlc_encode_read_bdt(
uint8_t * pdu);
int bvlc_encode_read_fdt(
uint8_t * pdu);
int bvlc_encode_delete_fdt_entry(
@@ -76,6 +81,11 @@ extern "C" {
uint8_t * npdu,
unsigned npdu_length);
#endif
int bvlc_encode_read_bdt(
uint8_t * pdu);
int bvlc_bbmd_read_bdt(
uint32_t bbmd_address,
uint16_t bbmd_port);
/* registers with a bbmd as a foreign device */
int bvlc_register_with_bbmd(
@@ -83,8 +93,6 @@ extern "C" {
uint16_t bbmd_port, /* in network byte order */
uint16_t time_to_live_seconds);
struct sockaddr_in; /* Defined elsewhere, needed here. */
/* Note any BVLC_RESULT code, or NAK the BVLL message in the unsupported cases. */
int bvlc_for_non_bbmd(
struct sockaddr_in *sout,