brctl: fix compilation on 2.4.x kernels

This commit is contained in:
Denis Vlasenko 2009-01-31 20:08:21 +00:00
parent 9ec0ecbfdd
commit 802cab15e5

View File

@ -16,6 +16,20 @@
#include <linux/sockios.h>
#include <net/if.h>
#ifndef SIOCBRADDBR
# define SIOCBRADDBR BRCTL_ADD_BRIDGE
#endif
#ifndef SIOCBRDELBR
# define SIOCBRDELBR BRCTL_DEL_BRIDGE
#endif
#ifndef SIOCBRADDIF
# define SIOCBRADDIF BRCTL_ADD_IF
#endif
#ifndef SIOCBRDELIF
# define SIOCBRDELIF BRCTL_DEL_IF
#endif
/* Maximum number of ports supported per bridge interface. */
#ifndef MAX_PORTS
#define MAX_PORTS 32