Changeset 18252
- Timestamp:
- 01/21/12 13:56:18 (17 months ago)
- File:
-
- 1 edited
-
src/router/busybox/networking/ifconfig.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/router/busybox/networking/ifconfig.c
r17628 r18252 444 444 /*safe_strncpy(host, *argv, sizeof(host));*/ 445 445 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; 446 450 if (hw_class == 1 ? in_ether(host, &sa) : in_ib(host, &sa)) 447 451 bb_error_msg_and_die("invalid hw-addr %s", host); … … 520 524 unsigned char c; 521 525 522 sap->sa_family = ARPHRD_ETHER;523 526 ptr = (char *) sap->sa_data; 524 527
Note: See TracChangeset
for help on using the changeset viewer.
