Skip to content

Commit

Permalink
Merge pull request #51 from netfoundry/v0.7.8-release-candidate
Browse files Browse the repository at this point in the history
V0.7.8 release candidate
  • Loading branch information
r-caamano authored Jun 13, 2024
2 parents c821ffd + 97d3392 commit d85b41e
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 5 deletions.
10 changes: 8 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,20 @@
All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

---
---
# [0.7.8] - 2024-06-13

###

- Fixed issue where zombie processes were generated by zfw_tc_ingress.c when adding or deleting
routes via ip system calls.

# [0.7.7] - 2024-06-11

###

- Fixed fw-init.service changed after= to After=
- Cleanup in zfw_tunnel_wrapper.c removed various unused variables
-

# [0.7.6] - 2024-06-04

###
Expand Down
2 changes: 1 addition & 1 deletion src/zfw.c
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ char *log_file_name;
char *object_file;
char *direction_string;

const char *argp_program_version = "0.7.7";
const char *argp_program_version = "0.7.8";
struct ring_buffer *ring_buffer;

__u32 if_list[MAX_IF_LIST_ENTRIES];
Expand Down
25 changes: 23 additions & 2 deletions src/zfw_tunnel_wrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -834,6 +834,13 @@ void bind_route(struct in_addr *address, unsigned short mask)
{
execv("/usr/sbin/ip", parmList);
printf("execv error: unknown error binding route");
}else{
int status =0;
if(!(waitpid(pid, &status, 0) > 0)){
if(WIFEXITED(status) && !WEXITSTATUS(status)){
printf("bound %s to dev lo\n", cidr_block);
}
}
}
free(cidr_block);
}
Expand All @@ -854,6 +861,13 @@ void unbind_route_loopback(struct in_addr *address, unsigned short mask)
{
execv("/usr/sbin/ip", parmList);
printf("execv error: unknown error unbinding route");
}else{
int status =0;
if(!(waitpid(pid, &status, 0) > 0)){
if(WIFEXITED(status) && !WEXITSTATUS(status)){
printf("unbound %s from dev lo\n", cidr_block);
}
}
}
free(cidr_block);
}
Expand All @@ -874,6 +888,13 @@ void unbind_route(struct in_addr *address, unsigned short mask, char *dev)
{
execv("/usr/sbin/ip", parmList);
printf("execv error: unknown error unbinding route");
}else{
int status =0;
if(!(waitpid(pid, &status, 0) > 0)){
if(WIFEXITED(status) && !WEXITSTATUS(status)){
printf("unbound %s from dev %s\n", cidr_block, dev);
}
}
}
free(cidr_block);
}
Expand Down Expand Up @@ -999,7 +1020,7 @@ void zfw_update(char *ip, char *mask, char *lowport, char *highport, char *proto
int status =0;
if(!(waitpid(pid, &status, 0) > 0)){
if(WIFEXITED(status) && !WEXITSTATUS(status)){
printf("zfw %s action for : %s not set\n", action, ip);
printf("zfw %s action for : %s set\n", action, ip);
}
}
}
Expand All @@ -1017,7 +1038,7 @@ bool check_diag(){
int status =0;
if(!(waitpid(pid, &status, 0) > 0)){
if(WIFEXITED(status) && !WEXITSTATUS(status)){
printf("Diag Interface List Failed!");
printf("Diag Interface Listed!\n");
return false;
}
}
Expand Down

0 comments on commit d85b41e

Please sign in to comment.