Changeset 550


Ignore:
Timestamp:
01/03/11 21:17:38 (17 months ago)
Author:
eagle
Message:

OC now works on DragonFly? BSD.
Misleading config file error message removed.
DNS interception started (but not in use yet).

Location:
trunk
Files:
1 added
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/config.h.in

    r547 r550  
    99/* enable handling of accidental HTTP requests */ 
    1010#undef HANDLE_HTTP 
     11 
     12/* Define to 1 if you have the <arpa/nameser.h> header file. */ 
     13#undef HAVE_ARPA_NAMESER_H 
    1114 
    1215/* Define to 1 if you have the <endian.h> header file. */ 
     
    5861#undef HAVE_NETINET_IP_H 
    5962 
     63/* Define to 1 if you have the <netinet/udp.h> header file. */ 
     64#undef HAVE_NETINET_UDP_H 
     65 
    6066/* Define to 1 if you have the <net/ethernet.h> header file. */ 
    6167#undef HAVE_NET_ETHERNET_H 
     
    6672/* Define to 1 if you have the <net/if_tun.h> header file. */ 
    6773#undef HAVE_NET_IF_TUN_H 
     74 
     75/* Define to 1 if you have the <net/tun/if_tun.h> header file. */ 
     76#undef HAVE_NET_TUN_IF_TUN_H 
    6877 
    6978/* Define if you have POSIX threads libraries and header files. */ 
  • trunk/configure

    r549 r550  
    11#! /bin/sh 
    22# Guess values for system-dependent variables and create Makefiles. 
    3 # Generated by GNU Autoconf 2.62 for onioncat 0.2.2.r549. 
     3# Generated by GNU Autoconf 2.62 for onioncat 0.2.2.r550. 
    44# 
    55# Report bugs to <rahra@cypherpunk.at>. 
     
    597597PACKAGE_NAME='onioncat' 
    598598PACKAGE_TARNAME='onioncat' 
    599 PACKAGE_VERSION='0.2.2.r549' 
    600 PACKAGE_STRING='onioncat 0.2.2.r549' 
     599PACKAGE_VERSION='0.2.2.r550' 
     600PACKAGE_STRING='onioncat 0.2.2.r550' 
    601601PACKAGE_BUGREPORT='rahra@cypherpunk.at' 
    602602 
     
    12631263  # This message is too long to be a string in the A/UX 3.1 sh. 
    12641264  cat <<_ACEOF 
    1265 \`configure' configures onioncat 0.2.2.r549 to adapt to many kinds of systems. 
     1265\`configure' configures onioncat 0.2.2.r550 to adapt to many kinds of systems. 
    12661266 
    12671267Usage: $0 [OPTION]... [VAR=VALUE]... 
     
    13331333if test -n "$ac_init_help"; then 
    13341334  case $ac_init_help in 
    1335      short | recursive ) echo "Configuration of onioncat 0.2.2.r549:";; 
     1335     short | recursive ) echo "Configuration of onioncat 0.2.2.r550:";; 
    13361336   esac 
    13371337  cat <<\_ACEOF 
     
    14261426if $ac_init_version; then 
    14271427  cat <<\_ACEOF 
    1428 onioncat configure 0.2.2.r549 
     1428onioncat configure 0.2.2.r550 
    14291429generated by GNU Autoconf 2.62 
    14301430 
     
    14401440running configure, to aid debugging if configure makes a mistake. 
    14411441 
    1442 It was created by onioncat $as_me 0.2.2.r549, which was 
     1442It was created by onioncat $as_me 0.2.2.r550, which was 
    14431443generated by GNU Autoconf 2.62.  Invocation command line was 
    14441444 
     
    20892089# Define the identity of the package. 
    20902090 PACKAGE='onioncat' 
    2091  VERSION='0.2.2.r549' 
     2091 VERSION='0.2.2.r550' 
    20922092 
    20932093 
     
    22402240 
    22412241cat >>confdefs.h <<\_ACEOF 
    2242 #define SVN_REVISION "549" 
     2242#define SVN_REVISION "550" 
    22432243_ACEOF 
    22442244 
     
    43254325 
    43264326 
    4327 for ac_header in sys/types.h sys/wait.h sys/socket.h sys/stat.h netdb.h netinet/in.h netinet/in_systm.h netinet/ip.h netinet/ip6.h netinet/in6.h net/if.h net/if_tun.h linux/if_tun.h linux/sockios.h endian.h sys/endian.h netinet/icmp6.h net/ethernet.h netinet/if_ether.h netinet/ether.h sys/ethernet.h fcntl.h time.h 
     4327 
     4328 
     4329 
     4330for ac_header in sys/types.h sys/wait.h sys/socket.h sys/stat.h netdb.h arpa/nameser.h netinet/in.h netinet/in_systm.h netinet/ip.h netinet/ip6.h netinet/in6.h net/if.h net/if_tun.h net/tun/if_tun.h linux/if_tun.h linux/sockios.h endian.h sys/endian.h netinet/icmp6.h net/ethernet.h netinet/if_ether.h netinet/ether.h netinet/udp.h sys/ethernet.h fcntl.h time.h 
    43284331do 
    43294332as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 
     
    59455948# values after options handling. 
    59465949ac_log=" 
    5947 This file was extended by onioncat $as_me 0.2.2.r549, which was 
     5950This file was extended by onioncat $as_me 0.2.2.r550, which was 
    59485951generated by GNU Autoconf 2.62.  Invocation command line was 
    59495952 
     
    59986001cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 
    59996002ac_cs_version="\\ 
    6000 onioncat config.status 0.2.2.r549 
     6003onioncat config.status 0.2.2.r550 
    60016004configured by $0, generated by GNU Autoconf 2.62, 
    60026005  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 
  • trunk/configure.ac

    r547 r550  
    6161# Checks for header files. 
    6262#AC_HEADER_STDC 
    63 AC_CHECK_HEADERS([sys/types.h sys/wait.h sys/socket.h sys/stat.h netdb.h netinet/in.h netinet/in_systm.h netinet/ip.h netinet/ip6.h netinet/in6.h net/if.h net/if_tun.h linux/if_tun.h linux/sockios.h endian.h sys/endian.h netinet/icmp6.h net/ethernet.h netinet/if_ether.h netinet/ether.h sys/ethernet.h fcntl.h time.h], [], [], 
     63AC_CHECK_HEADERS([sys/types.h sys/wait.h sys/socket.h sys/stat.h netdb.h arpa/nameser.h netinet/in.h netinet/in_systm.h netinet/ip.h netinet/ip6.h netinet/in6.h net/if.h net/if_tun.h net/tun/if_tun.h linux/if_tun.h linux/sockios.h endian.h sys/endian.h netinet/icmp6.h net/ethernet.h netinet/if_ether.h netinet/ether.h netinet/udp.h sys/ethernet.h fcntl.h time.h], [], [], 
    6464[[ 
    6565#ifdef HAVE_SYS_TYPES_H 
  • trunk/src/Makefile.am

    r547 r550  
    11bin_PROGRAMS = ocat 
    2 ocat_SOURCES = ocat.c ocatlog.c ocatroute.c ocatthread.c ocattun.c ocatv6conv.c ocatcompat.c ocatpeer.c ocatsetup.c ocatipv4route.c ocateth.c ocatsocks.c ocatlibe.c ocatctrl.c ocatipv6route.c ocaticmp.c ocat_wintuntap.c ocat_netdesc.c ocathosts.c 
     2ocat_SOURCES = ocat.c ocatlog.c ocatroute.c ocatthread.c ocattun.c ocatv6conv.c ocatcompat.c ocatpeer.c ocatsetup.c ocatipv4route.c ocateth.c ocatsocks.c ocatlibe.c ocatctrl.c ocatipv6route.c ocaticmp.c ocat_wintuntap.c ocat_netdesc.c ocathosts.c ocatresolv.c 
    33noinst_HEADERS = ocat.h ocat_netdesc.h strlcpy.c strlcat.c ocathosts.h 
    44AM_CFLAGS = -DSYSCONFDIR=\"$(sysconfdir)\" 
  • trunk/src/Makefile.in

    r547 r550  
    5959        ocatlibe.$(OBJEXT) ocatctrl.$(OBJEXT) ocatipv6route.$(OBJEXT) \ 
    6060        ocaticmp.$(OBJEXT) ocat_wintuntap.$(OBJEXT) \ 
    61         ocat_netdesc.$(OBJEXT) ocathosts.$(OBJEXT) 
     61        ocat_netdesc.$(OBJEXT) ocathosts.$(OBJEXT) \ 
     62        ocatresolv.$(OBJEXT) 
    6263ocat_OBJECTS = $(am_ocat_OBJECTS) 
    6364ocat_LDADD = $(LDADD) 
     
    164165sysconfdir = @sysconfdir@ 
    165166target_alias = @target_alias@ 
    166 ocat_SOURCES = ocat.c ocatlog.c ocatroute.c ocatthread.c ocattun.c ocatv6conv.c ocatcompat.c ocatpeer.c ocatsetup.c ocatipv4route.c ocateth.c ocatsocks.c ocatlibe.c ocatctrl.c ocatipv6route.c ocaticmp.c ocat_wintuntap.c ocat_netdesc.c ocathosts.c 
     167ocat_SOURCES = ocat.c ocatlog.c ocatroute.c ocatthread.c ocattun.c ocatv6conv.c ocatcompat.c ocatpeer.c ocatsetup.c ocatipv4route.c ocateth.c ocatsocks.c ocatlibe.c ocatctrl.c ocatipv6route.c ocaticmp.c ocat_wintuntap.c ocat_netdesc.c ocathosts.c ocatresolv.c 
    167168noinst_HEADERS = ocat.h ocat_netdesc.h strlcpy.c strlcat.c ocathosts.h 
    168169AM_CFLAGS = -DSYSCONFDIR=\"$(sysconfdir)\" 
     
    246247@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ocatlog.Po@am__quote@ 
    247248@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ocatpeer.Po@am__quote@ 
     249@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ocatresolv.Po@am__quote@ 
    248250@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ocatroute.Po@am__quote@ 
    249251@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ocatsetup.Po@am__quote@ 
  • trunk/src/ocat.c

    r547 r550  
    472472      CNF(config_failed) = errno; 
    473473      CNF(config_read) = 1; 
     474      log_debug("opening config file \"%s\" failed: \"%s\"", CNF(config_file), strerror(CNF(config_failed))); 
    474475   } 
    475476   else 
     
    502503   detach_thread(); 
    503504 
    504    if (CNF(config_failed)) 
     505   if (CNF(config_failed) && (CNF(config_failed != ENOENT))) 
    505506      log_msg(LOG_NOTICE, "could not open config file %s: %s", CNF(config_file), strerror(CNF(config_failed))); 
    506507 
  • trunk/src/ocat.h

    r548 r550  
    8585#include <netinet/ip6.h> 
    8686#endif 
     87#ifdef HAVE_NETINET_UDP_H 
     88#include <netinet/udp.h> 
     89#endif 
     90#ifdef HAVE_ARPA_NAMESER_H 
     91#include <arpa/nameser.h> 
     92#endif 
    8793#ifdef HAVE_NET_ETHERNET_H 
    8894#include <net/ethernet.h> 
     
    96102#ifdef HAVE_NET_IF_TUN_H 
    97103#include <net/if_tun.h> 
     104#endif 
     105#ifdef HAVE_NET_TUN_IF_TUN_H 
     106#include <net/tun/if_tun.h> 
    98107#endif 
    99108 
     
    341350   int sig_usr1, clear_stats; 
    342351   int hosts_lookup; 
     352   struct in6_addr oc_vdns; 
    343353}; 
    344354 
     
    658668#endif 
    659669 
    660  
    661 #endif 
    662  
     670/* ocatresolv.c */ 
     671int check_dns(const struct ip6_hdr *, int); 
     672 
     673#endif 
     674 
  • trunk/src/ocateth.c

    r547 r550  
    3838 * RFC2461 is obsoleted by RFC4861 
    3939 * RFC4862 IPv6 Stateless Address Autoconfiguration 
     40 * RFC4443 ICMP6 (updates 2780, obsoletes 2463) (20101230) 
    4041 */ 
    4142 
  • trunk/src/ocatsetup.c

    r547 r550  
    205205#endif 
    206206   setup_.pid_file = NDESC(pid_file); 
     207   setup_.oc_vdns = NDESC(prefix); 
     208   setup_.oc_vdns.s6_addr[15] = 1; 
    207209} 
    208210 
     
    349351         log_msg(LOG_WARNING, "could not convert struct sockaddr: \"%s\"", strerror(errno)); 
    350352   } 
     353 
     354   inet_ntop(AF_INET6, &setup_.oc_vdns, ip6, SBUF); 
     355   fprintf(f, "ocat_dir               = %s\n", ip6); 
    351356} 
    352357 
  • trunk/src/ocattun.c

    r547 r550  
    144144   */ 
    145145 
    146 #ifdef __FreeBSD__ 
     146#if defined __FreeBSD__ || defined __DragonFly__ 
    147147 
    148148   int prm = 1; 
Note: See TracChangeset for help on using the changeset viewer.