mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
Fix transparent proxy with ipf
PR: 29954 Submitted by: nottebrock@crosswinds.net No response: maintainer
This commit is contained in:
parent
ab629ba060
commit
2392e213b6
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=50497
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= tircproxy
|
||||
PORTVERSION= 0.4.5
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= irc
|
||||
MASTER_SITES= http://bre.klaki.net/programs/tircproxy/
|
||||
|
||||
|
59
irc/tircproxy/files/patch-ad
Normal file
59
irc/tircproxy/files/patch-ad
Normal file
@ -0,0 +1,59 @@
|
||||
*** tircproxy.c.orig Thu May 4 22:53:30 2000
|
||||
--- tircproxy.c Wed Aug 22 13:42:46 2001
|
||||
***************
|
||||
*** 1065,1074 ****
|
||||
{
|
||||
struct sockaddr_in to_addr;
|
||||
int to_len;
|
||||
#if IPF
|
||||
! struct sockaddr_in socketin, sloc;
|
||||
! natlookup_t natlook;
|
||||
! int fd;
|
||||
#endif
|
||||
|
||||
/* Give this thing 10 minutes to get started (paranoia).
|
||||
--- 1065,1084 ----
|
||||
{
|
||||
struct sockaddr_in to_addr;
|
||||
int to_len;
|
||||
+
|
||||
#if IPF
|
||||
! struct sockaddr_in socketin, sloc;
|
||||
! natlookup_t natlook;
|
||||
!
|
||||
! #if __FreeBSD__ >= 2
|
||||
! #include <osreldate.h>
|
||||
! #if __FreeBSD_version >= 430000
|
||||
!
|
||||
! natlookup_t *natlookp = &natlook;
|
||||
!
|
||||
! #endif
|
||||
! #endif
|
||||
! int fd;
|
||||
#endif
|
||||
|
||||
/* Give this thing 10 minutes to get started (paranoia).
|
||||
***************
|
||||
*** 1152,1158 ****
|
||||
natlook.nl_inport = sloc.sin_port;
|
||||
|
||||
fd = open(IPL_NAT, O_RDONLY);
|
||||
! if (ioctl(fd, SIOCGNATL, &natlook) == -1)
|
||||
{
|
||||
perror("ioctl");
|
||||
exit(-1);
|
||||
--- 1162,1175 ----
|
||||
natlook.nl_inport = sloc.sin_port;
|
||||
|
||||
fd = open(IPL_NAT, O_RDONLY);
|
||||
! #if __FreeBSD__ >= 2
|
||||
! #include <osreldate.h>
|
||||
! #if __FreeBSD_version >= 430000
|
||||
! if (ioctl(fd, SIOCGNATL, &natlookp) == -1)
|
||||
! #else
|
||||
! if (ioctl(fd, SIOCGNATL, &natlook) == -1)
|
||||
! #endif
|
||||
! #endif
|
||||
{
|
||||
perror("ioctl");
|
||||
exit(-1);
|
Loading…
Reference in New Issue
Block a user