[Bug 2527] brctl with linux 2.4
bugzilla at busybox.net
bugzilla at busybox.net
Tue Sep 14 09:27:07 UTC 2010
https://bugs.busybox.net/show_bug.cgi?id=2527
emmeciu at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from emmeciu at gmail.com ---
I confirm that brctl is not working with linux 2.4
The linux 2.4 uses IOCTL in a different way when creating bridge or adding
interfacs.
The IOCTL defines at the beginning of brctl.c file need to be removed and the
following code must be updated:
-------
#ifdef SIOCBRADDBR || SIOCBRDELBR
ioctl_or_perror_and_die(fd,
key == ARG_addbr ? SIOCBRADDBR : SIOCBRDELBR,
br, "bridge %s", br);
#else
arm_ioctl(args,
key == ARG_addbr ? BRCTL_ADD_BRIDGE : BRCTL_DEL_BRIDGE,
(unsigned long) br,
0);
ioctl_or_perror_and_die(fd, SIOCGIFBR, &args, "bridge %s", br);
#endif
-------
-------
#ifdef SIOCBRADDIF || SIOCBRDELIF
ioctl_or_perror_and_die(fd,
key == ARG_addif ? SIOCBRADDIF : SIOCBRDELIF,
&ifr,
"bridge %s", br);
#else
arm_ioctl(args,
key == ARG_addif ? BRCTL_ADD_IF : BRCTL_DEL_IF,
ifr.ifr_ifindex, 0);
ifr.ifr_data = (char *)args;
xioctl(fd, SIOCDEVPRIVATE, &ifr);
#endif
-------
Please feel free to contact me if you need more info.
Regs,
Thierry
--
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the busybox-cvs
mailing list