Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 30392
b: refs/heads/master
c: 4938450
h: refs/heads/master
v: v3
  • Loading branch information
Allan Stephens authored and David S. Miller committed Jun 26, 2006
1 parent 3b9f6bc commit ed01be8
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2535ec50b7a51833ff65dc97ca85e1155d4090f8
refs/heads/master: 49384507896ee26e67266cebef6b6a9f2e31081c
12 changes: 10 additions & 2 deletions trunk/include/net/tipc/tipc_bearer.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,18 @@

#define TIPC_MEDIA_TYPE_ETH 1

/*
* Destination address structure used by TIPC bearers when sending messages
*
* IMPORTANT: The fields of this structure MUST be stored using the specified
* byte order indicated below, as the structure is exchanged between nodes
* as part of a link setup process.
*/

struct tipc_media_addr {
__u32 type;
__u32 type; /* bearer type (network byte order) */
union {
__u8 eth_addr[6]; /* Ethernet bearer */
__u8 eth_addr[6]; /* 48 bit Ethernet addr (byte array) */
#if 0
/* Prototypes for other possible bearer types */

Expand Down
4 changes: 3 additions & 1 deletion trunk/net/tipc/eth_media.c
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,9 @@ int tipc_eth_media_start(void)
if (eth_started)
return -EINVAL;

memset(&bcast_addr, 0xff, sizeof(bcast_addr));
bcast_addr.type = htonl(TIPC_MEDIA_TYPE_ETH);
memset(&bcast_addr.dev_addr, 0xff, ETH_ALEN);

memset(eth_bearers, 0, sizeof(eth_bearers));

res = tipc_register_media(TIPC_MEDIA_TYPE_ETH, "eth",
Expand Down

0 comments on commit ed01be8

Please sign in to comment.