Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
br_stp_if.c File Reference
#include <linux/kernel.h>
#include <linux/kmod.h>
#include <linux/etherdevice.h>
#include <linux/rtnetlink.h>
#include "br_private.h"
#include "br_private_stp.h"

Go to the source code of this file.


#define BR_MAX_PORT_PRIORITY   ((u16)~0 >> BR_PORT_BITS)


void br_init_port (struct net_bridge_port *p)
void br_stp_enable_bridge (struct net_bridge *br)
void br_stp_disable_bridge (struct net_bridge *br)
void br_stp_enable_port (struct net_bridge_port *p)
void br_stp_disable_port (struct net_bridge_port *p)
void br_stp_set_enabled (struct net_bridge *br, unsigned long val)
void br_stp_change_bridge_id (struct net_bridge *br, const unsigned char *addr)
bool br_stp_recalculate_bridge_id (struct net_bridge *br)
void br_stp_set_bridge_priority (struct net_bridge *br, u16 newprio)
int br_stp_set_port_priority (struct net_bridge_port *p, unsigned long newprio)
int br_stp_set_path_cost (struct net_bridge_port *p, unsigned long path_cost)
ssize_t br_show_bridge_id (char *buf, const struct bridge_id *id)

Macro Definition Documentation

#define BR_MAX_PORT_PRIORITY   ((u16)~0 >> BR_PORT_BITS)

Definition at line 33 of file br_stp_if.c.

Function Documentation

void br_init_port ( struct net_bridge_port p)

Definition at line 36 of file br_stp_if.c.

ssize_t br_show_bridge_id ( char buf,
const struct bridge_id id 

Definition at line 297 of file br_stp_if.c.

void br_stp_change_bridge_id ( struct net_bridge br,
const unsigned char addr 

Definition at line 179 of file br_stp_if.c.

void br_stp_disable_bridge ( struct net_bridge br)

Definition at line 65 of file br_stp_if.c.

void br_stp_disable_port ( struct net_bridge_port p)

Definition at line 96 of file br_stp_if.c.

void br_stp_enable_bridge ( struct net_bridge br)

Definition at line 46 of file br_stp_if.c.

void br_stp_enable_port ( struct net_bridge_port p)

Definition at line 87 of file br_stp_if.c.

bool br_stp_recalculate_bridge_id ( struct net_bridge br)

Definition at line 211 of file br_stp_if.c.

void br_stp_set_bridge_priority ( struct net_bridge br,
u16  newprio 

Definition at line 237 of file br_stp_if.c.

void br_stp_set_enabled ( struct net_bridge br,
unsigned long  val 

Definition at line 165 of file br_stp_if.c.

int br_stp_set_path_cost ( struct net_bridge_port p,
unsigned long  path_cost 

Definition at line 285 of file br_stp_if.c.

int br_stp_set_port_priority ( struct net_bridge_port p,
unsigned long  newprio 

Definition at line 262 of file br_stp_if.c.