RTRlib
 All Data Structures Functions Typedefs Enumerations Enumerator Groups Pages
utils.h
1 /*
2  * This file is part of RTRlib.
3  *
4  * RTRlib is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License as published by
6  * the Free Software Foundation; either version 3 of the License, or (at your
7  * option) any later version.
8  *
9  * RTRlib is distributed in the hope that it will be useful, but
10  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
11  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
12  * License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public License
15  * along with RTRlib; see the file COPYING.LESSER.
16  *
17  * INET group, Hamburg University of Applied Sciences,
18  * CST group, Freie Universitaet Berlin
19  * Website: http://rpki.realmv6.org/
20  */
21 
22 #ifndef RTR_UTILS_H
23 #define RTR_UTILS_H
24 #include <time.h>
25 #include "rtrlib/lib/ip.h"
26 
33 int rtr_get_monotonic_time(time_t *seconds);
34 
43 uint32_t rtr_get_bits(const uint32_t val, const uint8_t from, const uint8_t number);
44 
45 #endif