vendor/phost/src/cmdif.c in trema-0.3.20 vs vendor/phost/src/cmdif.c in trema-0.3.21
- old
+ new
@@ -253,20 +253,19 @@
reply.hdr.status = CMDIF_STATUS_NG;
reply.n_pkts = 0;
reply.duration_sec = 0;
reply.duration_usec = 0;
length = sizeof(reply);
- cmdif_send((void*)&reply, &length);
+ cmdif_send((void*)&reply, (uint32_t*)&length);
}
return ret;
}
void cmdif_do_send_packets(void *req)
{
int update_ip;
- int update_udp;
uint8_t *payload;
uint8_t udp_buf[PKT_BUF_SIZE];
uint8_t ip_buf[PKT_BUF_SIZE];
uint8_t macsa[ETH_ADDR_LEN];
uint8_t macda[ETH_ADDR_LEN];
@@ -364,10 +363,9 @@
}
#endif
eth = eth_create(macsa, macda, ETH_TYPE_IPV4, ip_buf, ip_len);
update_ip = 0;
- update_udp = 0;
gettimeofday(&tv, NULL);
time_t start_sec = tv.tv_sec;
long double now;
long double next;