Reduce waiting time for router demo. [bugs:#47].
This commit is contained in:
@@ -119,7 +119,7 @@ void *dl_ip_thread(
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
status = dl_ip_recv(&ip_data, &msg_data, &address, 1000);
|
status = dl_ip_recv(&ip_data, &msg_data, &address, 5);
|
||||||
if (status > 0) {
|
if (status > 0) {
|
||||||
memmove(&msg_data->src.len, &address.mac_len, 1);
|
memmove(&msg_data->src.len, &address.mac_len, 1);
|
||||||
memmove(&msg_data->src.adr[0], &address.mac[0], MAX_MAC_LEN);
|
memmove(&msg_data->src.adr[0], &address.mac[0], MAX_MAC_LEN);
|
||||||
|
|||||||
@@ -144,7 +144,7 @@ void *dl_mstp_thread(
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
pdu_len = dlmstp_receive(&mstp_port, NULL, NULL, 0, 1000);
|
pdu_len = dlmstp_receive(&mstp_port, NULL, NULL, 0, 5);
|
||||||
|
|
||||||
if (pdu_len > 0) {
|
if (pdu_len > 0) {
|
||||||
msg_data = (MSG_DATA *) malloc(sizeof(MSG_DATA));
|
msg_data = (MSG_DATA *) malloc(sizeof(MSG_DATA));
|
||||||
|
|||||||
Reference in New Issue
Block a user