~ubuntu-branches/ubuntu/quantal/net-tools/quantal

« back to all changes in this revision

Viewing changes to ifconfig.c

  • Committer: Bazaar Package Importer
  • Author(s): Scott James Remnant
  • Date: 2008-11-11 17:04:09 UTC
  • Revision ID: james.westby@ubuntu.com-20081111170409-v5djvvkgnm3ad1ko
Tags: 1.60-21ubuntu1
* Merge from debian unstable, remaining changes:
  - Ubuntu Policy: output using standard SI unit multiples:
    KB (10^3), MB (10^6), GB (10^9), TB (10^12) and PB (10^15).
    Includes manpage update to remove comment about IEC units.
    LP: #240073.
  - lib/ec_hw.c: #include <stddef.h to get definition of NULL.
  - lib/fddi.c: #include <linux/types.h> to get types.  LP: #66209.

Show diffs side-by-side

added added

removed removed

Lines of Context:
112
112
        struct interface *ife;
113
113
 
114
114
        ife = lookup_interface(ifname);
 
115
        if (!ife) {
 
116
                return -1;
 
117
        }
115
118
        res = do_if_fetch(ife); 
116
119
        if (res >= 0) 
117
120
            ife_print(ife);