Lines Matching refs:id
25 int id;
93 const char * ll_proto_n2a(unsigned short id, char *buf, int len)
97 id = ntohs(id);
100 if (llproto_names[i].id == id)
103 snprintf(buf, len, "[%d]", id);
107 int ll_proto_a2n(unsigned short *id, char *buf)
112 *id = htons(llproto_names[i].id);
116 if (get_u16(id, buf, 0))
118 *id = htons(*id);