Changeset 18252


Ignore:
Timestamp:
01/21/12 13:56:18 (17 months ago)
Author:
BrainSlayer
Message:

ignore interface type to allow configuration of specific devices like madwifi legacy devices

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/router/busybox/networking/ifconfig.c

    r17628 r18252  
    444444                                                /*safe_strncpy(host, *argv, sizeof(host));*/ 
    445445                                                host = *argv; 
     446                                                struct ifreq ifr_copy; 
     447                                                strncpy_IFNAMSIZ(ifr_copy.ifr_name,ifr.ifr_name); 
     448                                                ioctl(sockfd, SIOCGIFHWADDR, &ifr_copy); 
     449                                                sa.sa_family = ifr_copy.ifr_hwaddr.sa_family; 
    446450                                                if (hw_class == 1 ? in_ether(host, &sa) : in_ib(host, &sa)) 
    447451                                                        bb_error_msg_and_die("invalid hw-addr %s", host); 
     
    520524        unsigned char c; 
    521525 
    522         sap->sa_family = ARPHRD_ETHER; 
    523526        ptr = (char *) sap->sa_data; 
    524527 
Note: See TracChangeset for help on using the changeset viewer.