Changeset 1420

Show
Ignore:
Timestamp:
09/18/09 19:01:57 (3 years ago)
Author:
gbastien
Message:

* Documented #537
* Fixed #472, patch by Jean-Philippe Menil
* Fixed #515, using the gateway interface instead of the gateway id in the iptables chain

Location:
trunk/wifidog
Files:
6 added
6 modified

Legend:

Unmodified
Added
Removed
  • trunk/wifidog/ChangeLog

    r1400 r1420  
    11# $Id$ 
     2 
     32009-09-17 Geneviève Bastien <gbastien@versatic.net> 
     4        * Documented #537 
     5        * Fixed #472, patch by Jean-Philippe Menil 
     6        * Fixed #515, using the gateway interface instead of the gateway id in the iptables chain 
     7 
    282009-07-02 Benoit Grégoire  <bock@step.polymtl.ca> 
    39        * Re-fix #505, #525 and fix #584, sorry about that. 
  • trunk/wifidog/contrib/build-openwrt-kamikazeipk/wifidog/Makefile

    r1344 r1420  
    1212PKG_NAME:=wifidog 
    1313PKG_VERSION:=1.1.5 
    14 PKG_RELEASE:=1 
     14PKG_RELEASE:=2 
    1515 
    1616PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
     
    5555        $(INSTALL_DIR) $(1)/etc 
    5656        $(INSTALL_CONF) $(PKG_BUILD_DIR)/wifidog.conf $(1)/etc/ 
     57        $(INSTALL_CONF) $(PKG_BUILD_DIR)/wifidog-msg.html $(1)/etc/ 
    5758        $(INSTALL_DIR) $(1)/etc/init.d 
    5859        $(INSTALL_BIN) ./files/$(PKG_NAME).init $(1)/etc/init.d/wifidog 
  • trunk/wifidog/contrib/build-openwrt-kamikazeipk/wifidog/files/wifidog.init

    r1340 r1420  
    11#!/bin/sh /etc/rc.common 
    22# Copyright (C) 2006 OpenWrt.org 
    3 START=50 
     3START=65 
     4EXTRA_COMMANDS="status" 
     5EXTRA_HELP="        status Print the status of the service" 
     6 
    47 
    58start() { 
     
    1114} 
    1215 
     16status() { 
     17        /usr/bin/wifidog-init status 
     18} 
  • trunk/wifidog/contrib/build-openwrt-whiterussianipk/wifidog/Makefile

    r1344 r1420  
    88PKG_NAME:=wifidog 
    99PKG_VERSION:=1.1.5 
    10 PKG_RELEASE:=1 
     10PKG_RELEASE:=2 
    1111PKG_MD5SUM:=842b21e1b02d0a90677b289d794e0e21 
    1212PKG_SOURCE_URL:= @SF/$(PKG_NAME) 
     
    5050        install -m0755 ./files/$(PKG_NAME).init $(IDIR_WIFIDOG)/etc/init.d/S65wifidog 
    5151        install -m0644 $(PKG_BUILD_DIR)/wifidog.conf $(IDIR_WIFIDOG)/etc/ 
     52        install -m0644 $(PKG_BUILD_DIR)/wifidog-msg.html $(IDIR_WIFIDOG)/etc/ 
    5253        install -m0755 -d $(IDIR_WIFIDOG)/usr/bin 
    5354        install -m0755 -d $(IDIR_WIFIDOG)/usr/lib 
  • trunk/wifidog/contrib/build-openwrt-whiterussianipk/wifidog/files/wifidog.init

    r1189 r1420  
    1 #!/bin/sh 
    2 /usr/bin/wifidog-init start 
     1#!/bin/sh /etc/rc.common 
     2# Copyright (C) 2006 OpenWrt.org 
     3START=50 
    34 
     5start() { 
     6        /usr/bin/wifidog-init start 
     7} 
     8 
     9stop() { 
     10        /usr/bin/wifidog-init stop 
     11} 
     12 
     13status() { 
     14        /usr/bin/wifidog-init status 
     15} 
  • trunk/wifidog/src/fw_iptables.c

    r1398 r1420  
    8484 
    8585        config = config_get_config(); 
    86         safe_asprintf(&buffer, *input, config->gw_id); 
     86        safe_asprintf(&buffer, *input, config->gw_interface); 
    8787 
    8888        free(*input); 
     
    534534                ; 
    535535        while (output && !(feof(output))) { 
    536                 rc = fscanf(output, "%*s %llu %*s %*s %*s %*s %*s %15[0-9.] %*s %*s %*s %*s %*s 0x%*u", &counter, ip); 
     536                rc = fscanf(output, "%*s %llu %*s %*s %*s %*s %*s %15[0-9.] %*s %*s %*s %*s %*s %*s", &counter, ip); 
     537                //rc = fscanf(output, "%*s %llu %*s %*s %*s %*s %*s %15[0-9.] %*s %*s %*s %*s %*s 0x%*u", &counter, ip); 
    537538                if (2 == rc && EOF != rc) { 
    538539                        /* Sanity*/