blob: 60baa3f1656e043c183eae22da9f72660939de47 [file] [log] [blame]
"Robert P. J. Day"63fc1a92006-07-02 19:47:05 +00001/* vi: set sw=4 ts=4: */
Glenn L McGrath9a2d2722002-11-10 01:33:55 +00002#ifndef RT_NAMES_H_
3#define RT_NAMES_H_ 1
4
Denis Vlasenko98636eb2008-05-09 17:59:34 +00005#if __GNUC_PREREQ(4,1)
6# pragma GCC visibility push(hidden)
7#endif
Glenn L McGrath9a2d2722002-11-10 01:33:55 +00008
Bernhard Reutner-Fischer1d62d3b2005-10-08 20:47:15 +00009extern const char* rtnl_rtprot_n2a(int id, char *buf, int len);
10extern const char* rtnl_rtscope_n2a(int id, char *buf, int len);
Bernhard Reutner-Fischer921f5df2006-11-21 15:36:08 +000011extern const char* rtnl_rtrealm_n2a(int id, char *buf, int len);
Bernhard Reutner-Fischer1d62d3b2005-10-08 20:47:15 +000012extern const char* rtnl_dsfield_n2a(int id, char *buf, int len);
Bernhard Reutner-Fischer921f5df2006-11-21 15:36:08 +000013extern const char* rtnl_rttable_n2a(int id, char *buf, int len);
Bernhard Reutner-Fischer1d62d3b2005-10-08 20:47:15 +000014extern int rtnl_rtprot_a2n(uint32_t *id, char *arg);
15extern int rtnl_rtscope_a2n(uint32_t *id, char *arg);
Bernhard Reutner-Fischer1d62d3b2005-10-08 20:47:15 +000016extern int rtnl_rtrealm_a2n(uint32_t *id, char *arg);
17extern int rtnl_dsfield_a2n(uint32_t *id, char *arg);
Bernhard Reutner-Fischer921f5df2006-11-21 15:36:08 +000018extern int rtnl_rttable_a2n(uint32_t *id, char *arg);
Glenn L McGrath9a2d2722002-11-10 01:33:55 +000019
20
Denis Vlasenko27a131e2007-01-30 00:44:41 +000021extern const char* ll_type_n2a(int type, char *buf, int len);
Glenn L McGrath9a2d2722002-11-10 01:33:55 +000022
Denis Vlasenko27a131e2007-01-30 00:44:41 +000023extern const char* ll_addr_n2a(unsigned char *addr, int alen, int type,
Bernhard Reutner-Fischer1d62d3b2005-10-08 20:47:15 +000024 char *buf, int blen);
25extern int ll_addr_a2n(unsigned char *lladdr, int len, char *arg);
Glenn L McGrath9a2d2722002-11-10 01:33:55 +000026
Denis Vlasenkodfc07402007-10-29 19:33:26 +000027#ifdef UNUSED
Denis Vlasenko27a131e2007-01-30 00:44:41 +000028extern const char* ll_proto_n2a(unsigned short id, char *buf, int len);
Bernhard Reutner-Fischer1d62d3b2005-10-08 20:47:15 +000029extern int ll_proto_a2n(unsigned short *id, char *buf);
Denis Vlasenkodfc07402007-10-29 19:33:26 +000030#endif
Glenn L McGrath9a2d2722002-11-10 01:33:55 +000031
Denis Vlasenko98636eb2008-05-09 17:59:34 +000032#if __GNUC_PREREQ(4,1)
33# pragma GCC visibility pop
34#endif
35
Glenn L McGrath9a2d2722002-11-10 01:33:55 +000036#endif