]> git.proxmox.com Git - mirror_iproute2.git/blobdiff - lib/ll_proto.c
Merge branch 'iproute2-master' into next
[mirror_iproute2.git] / lib / ll_proto.c
index d8df68c110b06b802c7378876d2ea8ef91a3d73b..8316a75539efd603177fafa9b8285b3f3792c43c 100644 (file)
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
-#include <syslog.h>
 #include <fcntl.h>
 #include <sys/ioctl.h>
 #include <sys/socket.h>
-#include <sys/ioctl.h>
 #include <netinet/in.h>
 #include <arpa/inet.h>
 #include <string.h>
@@ -111,8 +109,7 @@ int ll_proto_a2n(unsigned short *id, const char *buf)
                         return 0;
                 }
        }
-       if (get_u16(id, buf, 0))
+       if (get_be16(id, buf, 0))
                return -1;
-       *id = htons(*id);
        return 0;
 }