Switch to AUTORELEASE for simplicity. Remove upstreamed patches. Signed-off-by: Rosen Penev <rosenp@gmail.com>lilik-openwrt-22.03
@ -1,20 +0,0 @@ | |||||
--- a/src/Listener.cpp | |||||
+++ b/src/Listener.cpp | |||||
@@ -723,6 +723,7 @@ int Listener::L2_setup (void) { | |||||
// Now optimize packet flow up the raw socket | |||||
// Establish the flow BPF to forward up only "connected" packets to this raw socket | |||||
+#ifdef HAVE_IPV6 | |||||
if (l->sa_family == AF_INET6) { | |||||
#ifdef HAVE_IPV6 | |||||
struct in6_addr *v6peer = SockAddr_get_in6_addr(&server->peer); | |||||
@@ -740,6 +741,9 @@ int Listener::L2_setup (void) { | |||||
return -1; | |||||
#endif /* HAVE_IPV6 */ | |||||
} else { | |||||
+#else | |||||
+ { | |||||
+#endif | |||||
rc = SockAddr_v4_Connect_BPF(server->mSock, ((struct sockaddr_in *)(l))->sin_addr.s_addr, ((struct sockaddr_in *)(p))->sin_addr.s_addr, ((struct sockaddr_in *)(l))->sin_port, ((struct sockaddr_in *)(p))->sin_port); | |||||
WARN_errno( rc == SOCKET_ERROR, "l2 connect ip bpf"); | |||||
} |
@ -1,12 +0,0 @@ | |||||
--- a/config.h.in | |||||
+++ b/config.h.in | |||||
@@ -360,7 +360,9 @@ | |||||
#undef _REENTRANT | |||||
/* */ | |||||
+#ifndef __cplusplus | |||||
#undef bool | |||||
+#endif | |||||
/* Define to empty if `const' does not conform to ANSI C. */ | |||||
#undef const |
@ -1,24 +0,0 @@ | |||||
--- a/src/pdfs.c | |||||
+++ b/src/pdfs.c | |||||
@@ -80,7 +80,7 @@ float box_muller(void) { | |||||
fprintf(stderr, "pdf box_muller() rand() error\n"); | |||||
return 0; | |||||
} else { | |||||
- w = sqrt( (-2.0 * log( w ) ) / w ); | |||||
+ w = sqrt( (-2.0 * logf( w ) ) / w ); | |||||
y1 = x1 * w; | |||||
y2 = x2 * w; | |||||
} | |||||
@@ -93,8 +93,8 @@ float normal(float mean, float variance) | |||||
} | |||||
float lognormal(float mu, float sigma) { | |||||
- float phi = sqrt((mu * mu) + (sigma * sigma)); | |||||
- float mu_prime = log(((mu * mu)/phi)); | |||||
- float sigma_prime = sqrt(log((phi * phi)/(mu * mu))); | |||||
- return (exp(normal(mu_prime,sigma_prime))); | |||||
+ float phi = sqrtf((mu * mu) + (sigma * sigma)); | |||||
+ float mu_prime = logf(((mu * mu)/phi)); | |||||
+ float sigma_prime = sqrtf(logf((phi * phi)/(mu * mu))); | |||||
+ return (expf(normal(mu_prime,sigma_prime))); | |||||
} |