ALT Linux repos
Group :: Networking/Other
RPM: iputils
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: bonding-0.2-alt-ioctl.patch
Download
Download
--- bonding-0.2~/ifenslave.c Wed Nov 24 21:54:20 1999
+++ bonding-0.2/ifenslave.c Thu Jan 3 17:07:51 2002
@@ -165,9 +165,9 @@
printf("master has no hw address assigned; getting one from slave!\n");
strncpy(ifr2.ifr_name, master_ifname, IFNAMSIZ);
strncpy(ifr2.ifr_slave, slave_ifname, IFNAMSIZ);
- if (ioctl(skfd, BOND_SETHWADDR, &ifr2) < 0) {
+ if (ioctl(skfd, BOND_SETHWADDR_OLD, &ifr2) < 0) {
fprintf(stderr,
- "BOND_SETHWADDR on %s failed: %s\n", slave_ifname,
+ "BOND_SETHWADDR_OLD on %s failed: %s\n", slave_ifname,
strerror(errno));
return 1;
}
@@ -340,7 +340,7 @@
if ( ! opt_r) {
strncpy(if_flags.ifr_name, master_ifname, IFNAMSIZ);
strncpy(if_flags.ifr_slave, slave_ifname, IFNAMSIZ);
- if (ioctl(skfd, BOND_ENSLAVE, &if_flags) < 0) {
+ if (ioctl(skfd, BOND_ENSLAVE_OLD, &if_flags) < 0) {
fprintf(stderr, "SIOCSIFSLAVE: %d (%s).\n", errno, strerror(errno));
}
}