Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 258343 | Differences between
and this patch

Collapse All | Expand All

(-)ddclient-3.7.3.orig/ddclient (-3 / +3 lines)
Lines 503-509 Link Here
503
    [ "ip",          "=s", "-ip address           : set the IP address to 'address'" ],
503
    [ "ip",          "=s", "-ip address           : set the IP address to 'address'" ],
504
    "",			     
504
    "",			     
505
    [ "if",          "=s", "-if interface         : obtain IP address from 'interface'" ],
505
    [ "if",          "=s", "-if interface         : obtain IP address from 'interface'" ],
506
    [ "if-skip",     "=s", "-if-skip pattern      : skip any IP addresses before 'pattern' in the output of ifconfig {if}" ],
506
    [ "if-skip",     "=s", "-if-skip pattern      : skip any IP addresses before 'pattern' in the output of ip addr show {if}" ],
507
    "",
507
    "",
508
    [ "web",         "=s", "-web provider|url     : obtain IP address from provider's IP checking page" ],
508
    [ "web",         "=s", "-web provider|url     : obtain IP address from provider's IP checking page" ],
509
    [ "web-skip",    "=s", "-web-skip pattern     : skip any IP addresses before 'pattern' on the web provider|url" ],
509
    [ "web-skip",    "=s", "-web-skip pattern     : skip any IP addresses before 'pattern' on the web provider|url" ],
Lines 1192-1198 Link Here
1192
1192
1193
    {
1193
    {
1194
	local $opt{'use'} = 'if';
1194
	local $opt{'use'} = 'if';
1195
	foreach my $if (grep {/^[a-zA-Z]/} `ifconfig -a`) {
1195
	foreach my $if (grep {/^[a-zA-Z]/} `ip addr show`) {
1196
	    $if =~ s/:?\s.*//is;
1196
	    $if =~ s/:?\s.*//is;
1197
	    local $opt{'if'} = $if;
1197
	    local $opt{'if'} = $if;
1198
	    printf "use=if, if=%s address is %s\n", opt('if'), define(get_ip('if'), 'NOT FOUND');
1198
	    printf "use=if, if=%s address is %s\n", opt('if'), define(get_ip('if'), 'NOT FOUND');
Lines 1799-1805 Link Here
1799
1799
1800
    } elsif ($use eq 'if') {
1800
    } elsif ($use eq 'if') {
1801
	$skip  = opt('if-skip')  || '';
1801
	$skip  = opt('if-skip')  || '';
1802
	$reply = `ifconfig $arg 2> /dev/null`;
1802
	$reply = `ip addr show $arg 2> /dev/null`;
1803
	$reply = '' if $?;
1803
	$reply = '' if $?;
1804
1804
1805
    } elsif ($use eq 'cmd') {
1805
    } elsif ($use eq 'cmd') {

Return to bug 258343