Skip to content

Commit

Permalink
Merge git://tipc.cslab.ericsson.net/pub/git/tipc
Browse files Browse the repository at this point in the history
  • Loading branch information
David S. Miller committed Jan 18, 2006
2 parents ad12583 + 4323add commit 27a7b04
Show file tree
Hide file tree
Showing 49 changed files with 1,702 additions and 1,705 deletions.
6 changes: 3 additions & 3 deletions MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -2536,11 +2536,11 @@ S: Maintained

TIPC NETWORK LAYER
P: Per Liden
M: per.liden@nospam.ericsson.com
M: per.liden@ericsson.com
P: Jon Maloy
M: jon.maloy@nospam.ericsson.com
M: jon.maloy@ericsson.com
P: Allan Stephens
M: allan.stephens@nospam.windriver.com
M: allan.stephens@windriver.com
L: tipc-discussion@lists.sourceforge.net
W: http://tipc.sourceforge.net/
W: http://tipc.cslab.ericsson.net/
Expand Down
1 change: 1 addition & 0 deletions include/linux/if_ether.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
* over Ethernet
*/
#define ETH_P_AOE 0x88A2 /* ATA over Ethernet */
#define ETH_P_TIPC 0x88CA /* TIPC */

/*
* Non DIX types. Won't clash for 1500 types.
Expand Down
7 changes: 5 additions & 2 deletions include/linux/tipc_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,13 @@
#define TIPC_MAX_LINK_NAME 60 /* format = Z.C.N:interface-Z.C.N:interface */

/*
* Link priority limits (range from 0 to # priorities - 1)
* Link priority limits (min, default, max, media default)
*/

#define TIPC_NUM_LINK_PRI 32
#define TIPC_MIN_LINK_PRI 0
#define TIPC_DEF_LINK_PRI 10
#define TIPC_MAX_LINK_PRI 31
#define TIPC_MEDIA_LINK_PRI (TIPC_MAX_LINK_PRI + 1)

/*
* Link tolerance limits (min, default, max), in ms
Expand Down
2 changes: 1 addition & 1 deletion net/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ endif

source "net/dccp/Kconfig"
source "net/sctp/Kconfig"
source "net/tipc/Kconfig"
source "net/atm/Kconfig"
source "net/bridge/Kconfig"
source "net/8021q/Kconfig"
Expand All @@ -159,7 +160,6 @@ source "net/ipx/Kconfig"
source "drivers/net/appletalk/Kconfig"
source "net/x25/Kconfig"
source "net/lapb/Kconfig"
source "net/tipc/Kconfig"

config NET_DIVERT
bool "Frame Diverter (EXPERIMENTAL)"
Expand Down
7 changes: 6 additions & 1 deletion net/tipc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@ menu "TIPC Configuration (EXPERIMENTAL)"
config TIPC
tristate "The TIPC Protocol (EXPERIMENTAL)"
---help---
TBD.
The Transparent Inter Process Communication (TIPC) protocol is
specially designed for intra cluster communication. This protocol
originates from Ericsson where it has been used in carrier grade
cluster applications for many years.

For more information about TIPC, see http://tipc.sourceforge.net.

This protocol support is also available as a module ( = code which
can be inserted in and removed from the running kernel whenever you
Expand Down
10 changes: 5 additions & 5 deletions net/tipc/addr.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,15 @@ u32 tipc_get_addr(void)
}

/**
* addr_domain_valid - validates a network domain address
* tipc_addr_domain_valid - validates a network domain address
*
* Accepts <Z.C.N>, <Z.C.0>, <Z.0.0>, and <0.0.0>,
* where Z, C, and N are non-zero and do not exceed the configured limits.
*
* Returns 1 if domain address is valid, otherwise 0
*/

int addr_domain_valid(u32 addr)
int tipc_addr_domain_valid(u32 addr)
{
u32 n = tipc_node(addr);
u32 c = tipc_cluster(addr);
Expand All @@ -79,16 +79,16 @@ int addr_domain_valid(u32 addr)
}

/**
* addr_node_valid - validates a proposed network address for this node
* tipc_addr_node_valid - validates a proposed network address for this node
*
* Accepts <Z.C.N>, where Z, C, and N are non-zero and do not exceed
* the configured limits.
*
* Returns 1 if address can be used, otherwise 0
*/

int addr_node_valid(u32 addr)
int tipc_addr_node_valid(u32 addr)
{
return (addr_domain_valid(addr) && tipc_node(addr));
return (tipc_addr_domain_valid(addr) && tipc_node(addr));
}

4 changes: 2 additions & 2 deletions net/tipc/addr.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ static inline char *addr_string_fill(char *string, u32 addr)
return string;
}

int addr_domain_valid(u32);
int addr_node_valid(u32 addr);
int tipc_addr_domain_valid(u32);
int tipc_addr_node_valid(u32 addr);

#endif
Loading

0 comments on commit 27a7b04

Please sign in to comment.