mirror of
https://github.com/bol-van/zapret.git
synced 2026-03-09 06:45:24 +00:00
tpws: move portfilter code
This commit is contained in:
@@ -47,3 +47,11 @@ static inline void phton16(uint8_t *p, uint16_t v) {
|
||||
int fprint_localtime(FILE *F);
|
||||
|
||||
time_t file_mod_time(const char *filename);
|
||||
|
||||
typedef struct
|
||||
{
|
||||
uint16_t from,to;
|
||||
bool neg;
|
||||
} port_filter;
|
||||
bool pf_in_range(uint16_t port, const port_filter *pf);
|
||||
bool pf_parse(const char *s, port_filter *pf);
|
||||
|
||||
Reference in New Issue
Block a user