Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37661267
en ru br
ALT Linux repos
S:20221126-alt1
5.0: 20071127-alt4
4.1: 20071127-alt0.M41.1
4.0: 20020927-alt4.2
3.0: 20020927-alt2

Group :: Networking/Other
RPM: iputils

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: bonding-0.2-alt-ioctl.patch
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));
 			}
 		}
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin