return ret;
}
-inline void fwp_timespec_add (struct timespec *sum, const struct timespec *left,
- const struct timespec *right);
-
+inline void fwp_timespec_add (struct timespec *sum, const struct timespec *left,
+ const struct timespec *right);
inline void fwp_timespec_sub (struct timespec *diff, const struct timespec *left,
- const struct timespec *right);
+ const struct timespec *right);
+void fwp_timespec_modulo(struct timespec *dividend, struct timespec *dividor,
+ struct timespec *remainder);
int fwp_set_rt_prio(int priority);
-
int fwp_create_unix_socket(char *path, struct sockaddr_un *addr);
-
int fwp_create_inet_socket(unsigned int port, struct sockaddr_in *addr);
#endif /* _FWP_UTILS_H */