core.h (c95baf12f5077419db01313ab61c2aac007d40cd) | core.h (d966ddcc38217a6110a6a0ff37ad2dee7d42e23e) |
---|---|
1/* 2 * net/tipc/core.h: Include file for TIPC global declarations 3 * 4 * Copyright (c) 2005-2006, 2013-2018 Ericsson AB 5 * Copyright (c) 2005-2007, 2010-2013, Wind River Systems 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 76 unchanged lines hidden (view full) --- 85#define TIPC_DEF_MON_THRESHOLD 32 86#define NODE_ID_LEN 16 87#define NODE_ID_STR_LEN (NODE_ID_LEN * 2 + 1) 88 89extern unsigned int tipc_net_id __read_mostly; 90extern int sysctl_tipc_rmem[3] __read_mostly; 91extern int sysctl_tipc_named_timeout __read_mostly; 92 | 1/* 2 * net/tipc/core.h: Include file for TIPC global declarations 3 * 4 * Copyright (c) 2005-2006, 2013-2018 Ericsson AB 5 * Copyright (c) 2005-2007, 2010-2013, Wind River Systems 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 76 unchanged lines hidden (view full) --- 85#define TIPC_DEF_MON_THRESHOLD 32 86#define NODE_ID_LEN 16 87#define NODE_ID_STR_LEN (NODE_ID_LEN * 2 + 1) 88 89extern unsigned int tipc_net_id __read_mostly; 90extern int sysctl_tipc_rmem[3] __read_mostly; 91extern int sysctl_tipc_named_timeout __read_mostly; 92 |
93struct tipc_net_work { 94 struct work_struct work; 95 struct net *net; 96 u32 addr; 97}; 98 |
|
93struct tipc_net { 94 u8 node_id[NODE_ID_LEN]; 95 u32 node_addr; 96 u32 trial_addr; 97 unsigned long addr_trial_end; 98 char node_id_string[NODE_ID_STR_LEN]; 99 int net_id; 100 int random; --- 37 unchanged lines hidden (view full) --- 138 139 /* Tracing of node internal messages */ 140 struct packet_type loopback_pt; 141 142#ifdef CONFIG_TIPC_CRYPTO 143 /* TX crypto handler */ 144 struct tipc_crypto *crypto_tx; 145#endif | 99struct tipc_net { 100 u8 node_id[NODE_ID_LEN]; 101 u32 node_addr; 102 u32 trial_addr; 103 unsigned long addr_trial_end; 104 char node_id_string[NODE_ID_STR_LEN]; 105 int net_id; 106 int random; --- 37 unchanged lines hidden (view full) --- 144 145 /* Tracing of node internal messages */ 146 struct packet_type loopback_pt; 147 148#ifdef CONFIG_TIPC_CRYPTO 149 /* TX crypto handler */ 150 struct tipc_crypto *crypto_tx; 151#endif |
152 /* Work item for net finalize */ 153 struct tipc_net_work final_work; |
|
146}; 147 148static inline struct tipc_net *tipc_net(struct net *net) 149{ 150 return net_generic(net, tipc_net_id); 151} 152 153static inline int tipc_netid(struct net *net) --- 62 unchanged lines hidden --- | 154}; 155 156static inline struct tipc_net *tipc_net(struct net *net) 157{ 158 return net_generic(net, tipc_net_id); 159} 160 161static inline int tipc_netid(struct net *net) --- 62 unchanged lines hidden --- |