core.c (8e8c668927b029f6ccc350eb1aa936864cc4eb6f) core.c (35c55c9877f8de0ab129fa1a309271d0ecc868b9)
1/*
2 * net/tipc/core.c: TIPC module code
3 *
4 * Copyright (c) 2003-2006, 2013, Ericsson AB
5 * Copyright (c) 2005-2006, 2010-2013, Wind River Systems
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 43 unchanged lines hidden (view full) ---

52
53static int __net_init tipc_init_net(struct net *net)
54{
55 struct tipc_net *tn = net_generic(net, tipc_net_id);
56 int err;
57
58 tn->net_id = 4711;
59 tn->own_addr = 0;
1/*
2 * net/tipc/core.c: TIPC module code
3 *
4 * Copyright (c) 2003-2006, 2013, Ericsson AB
5 * Copyright (c) 2005-2006, 2010-2013, Wind River Systems
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 43 unchanged lines hidden (view full) ---

52
53static int __net_init tipc_init_net(struct net *net)
54{
55 struct tipc_net *tn = net_generic(net, tipc_net_id);
56 int err;
57
58 tn->net_id = 4711;
59 tn->own_addr = 0;
60 tn->mon_threshold = TIPC_DEF_MON_THRESHOLD;
60 get_random_bytes(&tn->random, sizeof(int));
61 INIT_LIST_HEAD(&tn->node_list);
62 spin_lock_init(&tn->node_list_lock);
63
64 err = tipc_sk_rht_init(net);
65 if (err)
66 goto out_sk_rht;
67

--- 110 unchanged lines hidden ---
61 get_random_bytes(&tn->random, sizeof(int));
62 INIT_LIST_HEAD(&tn->node_list);
63 spin_lock_init(&tn->node_list_lock);
64
65 err = tipc_sk_rht_init(net);
66 if (err)
67 goto out_sk_rht;
68

--- 110 unchanged lines hidden ---