diff options
Diffstat (limited to 'ospfd/ospf_lsa.c')
| -rw-r--r-- | ospfd/ospf_lsa.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ospfd/ospf_lsa.c b/ospfd/ospf_lsa.c index ebdb390abb..732496d9a8 100644 --- a/ospfd/ospf_lsa.c +++ b/ospfd/ospf_lsa.c @@ -97,6 +97,17 @@ tv_floor (struct timeval a) } struct timeval +intms2tv (int a) +{ + struct timeval ret; + + ret.tv_sec = a/1000; + ret.tv_usec = (a%1000)*1000; + + return ret; +} + +struct timeval int2tv (int a) { struct timeval ret; |
