Signed-off-by: Masatake YAMATO <yamato@redhat.com>
return false;
}
+static uint32_t kernel32_to_cpu(enum sysfs_byteorder byteorder, uint32_t v)
+{
+ if (byteorder == SYSFS_BYTEORDER_LITTLE)
+ return le32_to_cpu(v);
+ else
+ return be32_to_cpu(v);
+}
+
/*
* TCP
*/
return (strncmp(line, "sl", 2) == 0);
}
-static uint32_t kernel32_to_cpu(enum sysfs_byteorder byteorder, uint32_t v)
-{
- if (byteorder == SYSFS_BYTEORDER_LITTLE)
- return le32_to_cpu(v);
- else
- return be32_to_cpu(v);
-}
-
#define TCP_LINE_LEN 256
static void load_xinfo_from_proc_inet_L3(ino_t netns_inode, const char *proc_file,
const struct sock_xinfo_class *class)