[ERROR] = "Error"
};
-static const char * const str_pdu_type(uint type) {
+static const char *str_pdu_type(uint type) {
if (type < PDU_TYPE_MAX)
return str_pdu_type_[type];
else
}
int
-rpki_rx_hook(struct birdsock *sk, int size)
+rpki_rx_hook(struct birdsock *sk, uint size)
{
struct rpki_cache *cache = sk->data;
struct rpki_proto *p = cache->p;
byte *pkt_start = sk->rbuf;
byte *end = pkt_start + size;
- DBG("rx hook got %d bytes \n", size);
+ DBG("rx hook got %u bytes \n", size);
while (end >= pkt_start + RPKI_PDU_HEADER_LEN)
{
int rpki_send_serial_query(struct rpki_cache *cache);
int rpki_send_reset_query(struct rpki_cache *cache);
-int rpki_rx_hook(sock *sk, int size);
+int rpki_rx_hook(sock *sk, uint size);
void rpki_connected_hook(sock *sk);
void rpki_err_hook(sock *sk, int size);