X-Git-Url: http://git.onelab.eu/?p=iproute2.git;a=blobdiff_plain;f=lib%2Fll_addr.c;fp=lib%2Fll_addr.c;h=0000000000000000000000000000000000000000;hp=581487dfaff0f3e620ea0eed036431a4d6aa70cb;hb=3331a68859fd71047bb1f309048960b48eab2d83;hpb=2bd4a72f2100be7ad7d9518cb1d49bb2a5b71994 diff --git a/lib/ll_addr.c b/lib/ll_addr.c deleted file mode 100644 index 581487d..0000000 --- a/lib/ll_addr.c +++ /dev/null @@ -1,94 +0,0 @@ -/* - * ll_addr.c - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version - * 2 of the License, or (at your option) any later version. - * - * Authors: Alexey Kuznetsov, - */ - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include -#include -#include - -#include "rt_names.h" -#include "utils.h" - - -const char *ll_addr_n2a(unsigned char *addr, int alen, int type, char *buf, int blen) -{ - int i; - int l; - - if (alen == 4 && - (type == ARPHRD_TUNNEL || type == ARPHRD_SIT || type == ARPHRD_IPGRE)) { - return inet_ntop(AF_INET, addr, buf, blen); - } - l = 0; - for (i=0; i 255) { - fprintf(stderr, "\"%s\" is invalid lladdr.\n", arg); - return -1; - } - lladdr[i] = temp; - if (!cp) - break; - arg = cp; - } - return i+1; - } -}