Browse Source

readability code clean-up (#549)

pull/554/head
Francesco Carli 4 years ago
committed by GitHub
parent
commit
de92fab878
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      include/network_traffic_filter.h
  2. 1064
      src/network_traffic_filter.c

8
include/network_traffic_filter.h

@ -25,13 +25,13 @@
#include "n2n_typedefs.h"
network_traffic_filter_t* create_network_traffic_filter();
network_traffic_filter_t* create_network_traffic_filter ();
void destroy_network_traffic_filter(network_traffic_filter_t* filter);
void destroy_network_traffic_filter (network_traffic_filter_t* filter);
void network_traffic_filter_add_rule(network_traffic_filter_t* filter, filter_rule_t* rules);
void network_traffic_filter_add_rule (network_traffic_filter_t* filter, filter_rule_t* rules);
//rule_str format: src_ip/len:[b_port,e_port],dst_ip/len:[s_port,e_port],TCP+/-,UDP+/-,ICMP+/-
uint8_t process_traffic_filter_rule_str(const char* rule_str, filter_rule_t* rule_struct);
uint8_t process_traffic_filter_rule_str (const char* rule_str, filter_rule_t* rule_struct);
#endif //N2N_NETWORK_TRAFFIC_FILTER_H

1064
src/network_traffic_filter.c

File diff suppressed because it is too large
Loading…
Cancel
Save