Commit 8c92a503 authored by Tomasz Wlostowski's avatar Tomasz Wlostowski

lib: fixed compile error in ipv4 support, make snmp_respond() public

parent c54a9cd4
......@@ -106,7 +106,7 @@ static int bootp_poll(void)
if (len > 0)
ret = process_bootp(buf, len);
if (task_not_yet(&bootp_tics, TICS_PER_SECOND))
if (wrc_task_not_yet(&bootp_tics, TICS_PER_SECOND))
return ret;
len = prepare_bootp(&addr, buf, ++bootp_retry);
......
......@@ -78,4 +78,6 @@ int snmp_poll(void);
int net_bh_poll(void);
int snmp_respond(uint8_t *buf);
#endif
......@@ -1482,7 +1482,7 @@ static uint8_t snmp_prepare_error(uint8_t *buf, uint8_t error)
}
/* And, now, work out your generic frame responder... */
static int snmp_respond(uint8_t *buf)
int snmp_respond(uint8_t *buf)
{
struct snmp_oid_limb *oid_limb = NULL;
uint8_t *newbuf = NULL;
......@@ -1659,6 +1659,7 @@ int snmp_poll(void)
if (len <= UDP_END + sizeof(match_array))
return 0;
/* Check the destination IP of SNMP packets. IP version, protocol and
* port are checked in the function update_rx_queues, so no need to
* check it again */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment