Updated the who-is-router-to-network demo.

This commit is contained in:
skarg
2008-09-06 13:56:25 +00:00
parent 61759224a6
commit e27d2abff2
6 changed files with 645 additions and 19 deletions
+2 -2
View File
@@ -117,7 +117,7 @@ static void print_address_cache(
for (i = 0; i < MAX_ADDRESS_CACHE; i++) {
if (address_get_by_index(i, &device_id, &max_apdu, &address)) {
printf("%7u ", device_id);
for (j = 0; j < 7; j++) {
for (j = 0; j < MAX_MAC_LEN; j++) {
if (j < address.mac_len) {
printf("%02X", address.mac[j]);
} else {
@@ -127,7 +127,7 @@ static void print_address_cache(
printf(" %4hu ", max_apdu);
printf("%5hu ", address.net);
if (address.net) {
for (j = 0; j < 7; j++) {
for (j = 0; j < MAX_MAC_LEN; j++) {
if (j < address.len) {
printf("%02X", address.adr[j]);
} else {