Skip to content

Commit

Permalink
new version
Browse files Browse the repository at this point in the history
  • Loading branch information
easion committed Jan 30, 2015
1 parent b345fa7 commit 1f14b8b
Show file tree
Hide file tree
Showing 8 changed files with 37 additions and 36 deletions.
Empty file modified LICENSE
100644 → 100755
Empty file.
13 changes: 7 additions & 6 deletions firewall.c
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>
Expand Down Expand Up @@ -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));
}

Expand Down Expand Up @@ -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)
{
Expand Down
8 changes: 8 additions & 0 deletions iface.c
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>
Expand Down
8 changes: 7 additions & 1 deletion main.c
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>
Expand Down
9 changes: 8 additions & 1 deletion natpmp.c
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>
Expand Down
7 changes: 7 additions & 0 deletions natpmp.h
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
Expand Down
Binary file added natpmpd
Binary file not shown.
28 changes: 0 additions & 28 deletions run.sh

This file was deleted.

0 comments on commit 1f14b8b

Please sign in to comment.