Browse Source

Add workaround to openbsd's broken v6 API

dynamic-accesslists
erdgeist 16 years ago
parent
commit
ff3c0feab5
  1. 3
      Makefile
  2. 3
      opentracker.c

3
Makefile

@ -20,13 +20,14 @@ LIBOWFAT_LIBRARY=$(PREFIX)/libowfat
BINDIR?=$(PREFIX)/bin BINDIR?=$(PREFIX)/bin
#FEATURES+=-DWANT_V6 #FEATURES+=-DWANT_V6
#FEATURES+=-DWANT_BROKEN_OPENBSD_V6_API
#FEATURES+=-DWANT_ACCESSLIST_BLACK #FEATURES+=-DWANT_ACCESSLIST_BLACK
#FEATURES+=-DWANT_ACCESSLIST_WHITE #FEATURES+=-DWANT_ACCESSLIST_WHITE
#FEATURES+=-DWANT_SYNC_LIVE #FEATURES+=-DWANT_SYNC_LIVE
#FEATURES+=-DWANT_SYNC_SCRAPE #FEATURES+=-DWANT_SYNC_SCRAPE
#FEATURES+=-DWANT_IP_FROM_QUERY_STRING FEATURES+=-DWANT_IP_FROM_QUERY_STRING
#FEATURES+=-DWANT_COMPRESSION_GZIP #FEATURES+=-DWANT_COMPRESSION_GZIP
#FEATURES+=-DWANT_LOG_NETWORKS #FEATURES+=-DWANT_LOG_NETWORKS
#FEATURES+=-DWANT_RESTRICT_STATS #FEATURES+=-DWANT_RESTRICT_STATS

3
opentracker.c

@ -440,6 +440,9 @@ int main( int argc, char **argv ) {
#ifndef WANT_V6 #ifndef WANT_V6
serverip[10]=serverip[11]=0xff; serverip[10]=serverip[11]=0xff;
#endif #endif
#ifdef WANT_BROKEN_OPENBSD_V6_API
noipv6=1;
#endif
while( scanon ) { while( scanon ) {
switch( getopt( argc, argv, ":i:p:A:P:d:r:s:f:v" switch( getopt( argc, argv, ":i:p:A:P:d:r:s:f:v"

Loading…
Cancel
Save