FreeBSD Bugzilla – Attachment 14139 Details for
Bug 26607
squid port don't work corretly when compiled with IPF_TRANSPARENT option
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 877 bytes, created by
Sergey N. Voronkov
on 2001-04-16 05:20:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Sergey N. Voronkov
Created:
2001-04-16 05:20:01 UTC
Size:
877 bytes
patch
obsolete
>--- src/client_side.c.orig Mon Apr 16 09:39:26 2001 >+++ src/client_side.c Mon Apr 16 09:51:08 2001 >@@ -1938,6 +1938,7 @@ > clientHttpRequest *http = NULL; > #if IPF_TRANSPARENT > struct natlookup natLookup; >+ natlookup_t *nlp = &natLookup; > static int natfd = -1; > #endif > >@@ -2089,7 +2090,14 @@ > xstrerror()); > return parseHttpRequestAbort(conn, "error:nat-open-failed"); > } >- if (ioctl(natfd, SIOCGNATL, &natLookup) < 0) { >+ >+#define NEWSIOCGNATLCMD _IOWR('r', 63, struct natlookup *) >+ if ( SIOCGNATL == NEWSIOCGNATLCMD) >+ r = ioctl(natfd, SIOCGNATL, &nlp); >+ else >+ r = ioctl(natfd, SIOCGNATL, &natLookup); >+#undef NEWSIOCGNATLCMD >+ if ( r < 0 ) { > if (errno != ESRCH) { > debug(50, 1) ("parseHttpRequest: NAT lookup failed: ioctl(SIOCGNATL)\n"); > close(natfd);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 26607
: 14139 |
14140