X-Git-Url: http://git.scottworley.com/tattlekey/blobdiff_plain/1e0a316ef9271ddd7e1422883a0a8db771b77a13..8c76d103da962e8c973f16df51c2e6bbacd00d3a:/client/net.c?ds=sidebyside diff --git a/client/net.c b/client/net.c index da33727..b38d0a8 100644 --- a/client/net.c +++ b/client/net.c @@ -20,10 +20,10 @@ static void initialize_the_pcb() { signal_error_by_blinking(); ip_addr_t ipaddr; - if (ip4addr_aton(tattle_server_ip_address, &ipaddr) == 0) + if (ip4addr_aton(config_tattle_server_ip_address, &ipaddr) == 0) signal_error_by_blinking(); - if (udp_connect(the_pcb, &ipaddr, htons(tattle_port)) != ERR_OK) + if (udp_connect(the_pcb, &ipaddr, config_tattle_port) != ERR_OK) signal_error_by_blinking(); } @@ -33,7 +33,7 @@ struct tattle_message_wire_format { u16_t ago; }; -void send_report(u16_t seq, u16_t ago) { +void send_report_packet(u16_t seq, u16_t ago) { cyw43_arch_lwip_begin(); initialize_the_pcb(); @@ -45,7 +45,7 @@ void send_report(u16_t seq, u16_t ago) { struct tattle_message_wire_format *msg = (struct tattle_message_wire_format *)(p->payload); - msg->sender = htons(this_tattler_identity); + msg->sender = htons(config_this_tattler_identity); msg->seq = htons(seq); msg->ago = htons(ago);