corrected code to make it work

This commit is contained in:
skarg
2005-03-23 16:53:10 +00:00
parent a69905c8a3
commit e68f8008d5
2 changed files with 6 additions and 15 deletions
+3 -3
View File
@@ -35,8 +35,7 @@ void Send_IAm(void)
BACNET_ADDRESS src;
// I-Am is a global broadcast
dest.mac_len = 0;
ethernet_set_broadcast_address(&dest);
ethernet_get_my_address(&src);
// encode the NPDU portion of the packet
@@ -59,6 +58,7 @@ void Send_IAm(void)
&dest, // destination address
&Tx_Buf[0],
pdu_len); // number of bytes of data
fprintf(stderr,"Sent I-Am Request!\n");
}
void WhoIsHandler(
@@ -70,7 +70,7 @@ void WhoIsHandler(
int32_t low_limit = 0;
int32_t high_limit = 0;
fprintf(stderr,"Received Who-Is Request!\r");
fprintf(stderr,"Received Who-Is Request!\n");
len = whois_decode_service_request(
service_request,
service_len,