-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
37 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
|
||
/* | ||
* TinyNATPMPd: simple nat-pmp daemon for openwrt | ||
* | ||
* Copyright 2015 Fu Hai Technology Co., Ltd | ||
* Author: easion,<[email protected]> | ||
* Website: http://www.envcat.com/ | ||
*/ | ||
|
||
#include <stdio.h> | ||
#include <stdlib.h> | ||
|
@@ -41,12 +47,8 @@ static int execute(char *cmd_line, int quiet) | |
} | ||
exit(21); | ||
} | ||
|
||
/* for the parent: */ | ||
//LOG_DBG( "Waiting for PID %d to exit", pid); | ||
rc = waitpid(pid, &status, 0); | ||
//LOG_DBG( "Process PID %d exited", rc); | ||
|
||
return (WEXITSTATUS(status)); | ||
} | ||
|
||
|
@@ -100,7 +102,6 @@ static int iptables_do_command(const char *format, ...) | |
} | ||
|
||
/* | ||
delete_redirect_and_filter_rules | ||
*/ | ||
int _fw_delete_redir(unsigned short eport, int proto) | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
/* | ||
* TinyNATPMPd: simple nat-pmp daemon for openwrt | ||
* | ||
* Copyright 2015 Fu Hai Technology Co., Ltd | ||
* Author: easion,<[email protected]> | ||
* Website: http://www.envcat.com/ | ||
*/ | ||
|
||
#include <stdio.h> | ||
#include <sys/types.h> | ||
#include <sys/socket.h> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
|
||
/* | ||
* TinyNATPMPd: simple nat-pmp daemon for openwrt | ||
* | ||
* Copyright 2015 Fu Hai Technology Co., Ltd | ||
* Author: easion,<[email protected]> | ||
* Website: http://www.envcat.com/ | ||
*/ | ||
|
||
#include <stdio.h> | ||
#include <stdlib.h> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
/* | ||
* TinyNATPMPd: simple nat-pmp daemon for openwrt | ||
* | ||
* Copyright 2015 Fu Hai Technology Co., Ltd | ||
* Author: easion,<[email protected]> | ||
* Website: http://www.envcat.com/ | ||
*/ | ||
|
||
#include <unistd.h> | ||
#include <string.h> | ||
#include <errno.h> | ||
|
||
#include <stdio.h> | ||
#include <fcntl.h> | ||
#include <string.h> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
/* | ||
* TinyNATPMPd: simple nat-pmp daemon for openwrt | ||
* | ||
* Copyright 2015 Fu Hai Technology Co., Ltd | ||
* Author: easion,<[email protected]> | ||
* Website: http://www.envcat.com/ | ||
*/ | ||
|
||
#ifndef _NATPMP_H | ||
#define _NATPMP_H | ||
|