15 |
#include "libbb.h" |
#include "libbb.h" |
16 |
#include "rt_names.h" |
#include "rt_names.h" |
17 |
|
|
18 |
const char *ll_type_n2a(int type, char *buf, int len) |
const char* FAST_FUNC ll_type_n2a(int type, char *buf) |
19 |
{ |
{ |
20 |
static const char arphrd_name[] = |
static const char arphrd_name[] = |
21 |
/* 0, */ "generic" "\0" |
/* 0, */ "generic" "\0" |
200 |
return aname; |
return aname; |
201 |
aname += strlen(aname) + 1; |
aname += strlen(aname) + 1; |
202 |
} |
} |
203 |
snprintf(buf, len, "[%d]", type); |
sprintf(buf, "[%d]", type); |
204 |
return buf; |
return buf; |
205 |
} |
} |