public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: chrubis@suse.cz
To: Zhouping Liu <zliu@redhat.com>
Cc: LTP List <ltp-list@lists.sourceforge.net>
Subject: Re: [LTP] [PATCH] syscalls/sendmsg01: using 'ip' command to replace 'ifconfig'
Date: Mon, 21 Jan 2013 17:00:36 +0100	[thread overview]
Message-ID: <20130121160036.GE3768@rei> (raw)
In-Reply-To: <4ef1b12514c08ad8ee67c571a9a9b79c8c184829.1358783800.git.zliu@redhat.com>

Hi!
> 'ip' tools is more general than 'ifconfig', and there are some
> distros don't support to install 'ifconfig' tools under default,
> which will cause such below error:
> 
>    sh: ifconfig: command not found
>    sendmsg01    1  TBROK  :  ifconfig failed to bring up loop back device
>    sendmsg01    2  TBROK  :  Remaining cases broken
> 
> the patch displaced 'ifconfig' using 'ip', and also the case need root
> permission and checking capture unexpected signal.

But this breaks distros that yet doesn't install ip by default. What
about trying ip and fallback to ifconfig if ip has failed?

-- 
Cyril Hrubis
chrubis@suse.cz

------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122412
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

      reply	other threads:[~2013-01-21 16:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-21 15:59 [LTP] [PATCH] syscalls/sendmsg01: using 'ip' command to replace 'ifconfig' Zhouping Liu
2013-01-21 16:00 ` chrubis [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130121160036.GE3768@rei \
    --to=chrubis@suse.cz \
    --cc=ltp-list@lists.sourceforge.net \
    --cc=zliu@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox