[sane-devel] [PATCH 2/2] add option to bind address

Matteo Croce matteo at openwrt.org
Sat Sep 12 15:54:00 UTC 2015


Yes will do, but I noticed that I have to use bind_addr even in
do_bindings instead of INADDR_ANY, I have a newwer version of the
patch

2015-09-12 8:58 GMT+02:00 Olaf Meeuwissen <paddy-hack at member.fsf.org>:
> Hi Matteo,
>
> This also looks good but it is missing documentation for the option.
> Both in the usage message as well as the saned manual page.
>
> Could you fix that?
>
> Matteo Croce writes:
>
>> [snip]
>> @@ -3288,6 +3289,9 @@ main (int argc, char *argv[])
>>        run_mode = SANED_RUN_DEBUG;
>>        debug = atoi(optarg);
>>        break;
>> +    case 'b':
>> +      bind_addr = optarg;
>> +      break;
>>      case 'h':
>>        printf ("Usage: %s [ -a [ username ] | -d [ n ] | -s [ n ] ] | -h\n", argv[0]);
>>        return;
>
> Hope this helps,
> --
> Olaf Meeuwissen, LPIC-2            FSF Associate Member since 2004-01-27
> Support Free Software               Support the Free Software Foundation
> https://my.fsf.org/donate                        https://my.fsf.org/join



-- 
Matteo Croce
OpenWrt Developer
  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 CHAOS CALMER
 -----------------------------------------------------
  * 1 1/2 oz Gin            Shake with a glassful
  * 1/4 oz Triple Sec       of broken ice and pour
  * 3/4 oz Lime Juice       unstrained into a goblet.
  * 1 1/2 oz Orange Juice
  * 1 tsp. Grenadine Syrup
 -----------------------------------------------------



More information about the sane-devel mailing list