12 #include <linux/export.h>
14 #include <linux/kernel.h>
15 #include <linux/errno.h>
17 #include "oid_registry_data.c"
26 const unsigned char *octets =
data;
35 for (i = 0; i < datasize; i++)
36 hash += octets[i] * 33;
37 hash = (hash >> 24) ^ (hash >> 16) ^ (hash >> 8) ^ hash;
49 xhash = oid_search_table[
j].hash;
59 oid = oid_search_table[
j].oid;
60 len = oid_index[oid + 1] - oid_index[
oid];
74 unsigned char a = oid_data[oid_index[
oid] + --len];
75 unsigned char b = octets[len];
107 const unsigned char *
v =
data, *
end = v + datasize;
117 ret = count =
snprintf(buffer, bufsize,
"%u.%u", n / 40, n % 40);
138 ret += count =
snprintf(buffer, bufsize,
".%lu", num);
165 oid_index[oid + 1] - oid_index[oid],