~ubuntu-branches/ubuntu/natty/hostapd/natty-security

« back to all changes in this revision

Viewing changes to l2_packet_linux.c

  • Committer: Bazaar Package Importer
  • Author(s): Faidon Liambotis
  • Date: 2007-12-12 03:43:13 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20071212034313-sdoxw14hik327ybb
Tags: 1:0.5.9-1
* New upstream release.
* Bumped to Standards-Version 3.7.3, no changed needed.
* Switched to Vcs-* instead of XS-Vcs.
* Added Homepage field.
* Refer to GPL-2 explicitely, as this is a GPL v2-only software.
* Remove remnants of patches for dscape/mac80211.
* Update to madwifi 0.9.3.3 headers; no functional changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
177
177
        os_memset(&ifr, 0, sizeof(ifr));
178
178
        os_strncpy(ifr.ifr_name, l2->ifname, sizeof(ifr.ifr_name));
179
179
        if (ioctl(s, SIOCGIFADDR, &ifr) < 0) {
180
 
                perror("ioctl[SIOCGIFADDR]");
 
180
                if (errno != EADDRNOTAVAIL)
 
181
                        perror("ioctl[SIOCGIFADDR]");
181
182
                close(s);
182
183
                return -1;
183
184
        }