Commit 09a59d51 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek Committed by Juliusz Chroboczek

Make low-level message formatting functions take a struct buffered.

parent 024d2db6
...@@ -130,9 +130,9 @@ flush_interface(char *ifname) ...@@ -130,9 +130,9 @@ flush_interface(char *ifname)
/* This should be no more than half the hello interval, so that hellos /* This should be no more than half the hello interval, so that hellos
aren't sent late. The result is in milliseconds. */ aren't sent late. The result is in milliseconds. */
unsigned unsigned
jitter(struct interface *ifp, int urgent) jitter(struct buffered *buf, int urgent)
{ {
unsigned interval = ifp->buf.flush_interval; unsigned interval = buf->flush_interval;
if(urgent) if(urgent)
interval = MIN(interval, 20); interval = MIN(interval, 20);
else else
......
...@@ -143,7 +143,7 @@ if_up(struct interface *ifp) ...@@ -143,7 +143,7 @@ if_up(struct interface *ifp)
struct interface *add_interface(char *ifname, struct interface_conf *if_conf); struct interface *add_interface(char *ifname, struct interface_conf *if_conf);
int flush_interface(char *ifname); int flush_interface(char *ifname);
unsigned jitter(struct interface *ifp, int urgent); unsigned jitter(struct buffered *buf, int urgent);
unsigned update_jitter(struct interface *ifp, int urgent); unsigned update_jitter(struct interface *ifp, int urgent);
void set_timeout(struct timeval *timeout, int msecs); void set_timeout(struct timeval *timeout, int msecs);
int interface_up(struct interface *ifp, int up); int interface_up(struct interface *ifp, int up);
......
This diff is collapsed.
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