diff options
author | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2021-06-17 16:56:51 +0200 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2021-06-17 16:56:51 +0200 |
commit | f761be6b30633054a54369eee7d08b951a366e5e (patch) | |
tree | 9ecf47c42ae7542ba33515c38913d6126819bd1f /nest/protocol.h | |
parent | 1b9bf4e192a252db861acadc7f800d7046435a3f (diff) |
Nest: Clean up main channel handling
Remove assumption that main channel is the only channel.
Diffstat (limited to 'nest/protocol.h')
-rw-r--r-- | nest/protocol.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nest/protocol.h b/nest/protocol.h index 48eb01d2..abcc505d 100644 --- a/nest/protocol.h +++ b/nest/protocol.h @@ -616,7 +616,7 @@ struct channel { struct channel_config *proto_cf_find_channel(struct proto_config *p, uint net_type); static inline struct channel_config *proto_cf_main_channel(struct proto_config *pc) -{ struct channel_config *cc = HEAD(pc->channels); return NODE_VALID(cc) ? cc : NULL; } +{ return proto_cf_find_channel(pc, pc->net_type); } struct channel *proto_find_channel_by_table(struct proto *p, struct rtable *t); struct channel *proto_find_channel_by_name(struct proto *p, const char *n); |