1/* 2 * misc.h Miscellaneous TIPC helper functions. 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU General Public License 6 * as published by the Free Software Foundation; either version 7 * 2 of the License, or (at your option) any later version. 8 * 9 * Authors: Richard Alpe <richard.alpe@ericsson.com> 10 */ 11 12#ifndef _TIPC_MISC_H 13#define _TIPC_MISC_H 14 15#include <stdint.h> 16 17uint32_t str2addr(char *str); 18int str2nodeid(char *str, uint8_t *id); 19void nodeid2str(uint8_t *id, char *str); 20void hash2nodestr(uint32_t hash, char *str); 21int str2key(char *str, struct tipc_aead_key *key); 22 23#endif 24