Lines Matching refs:subclassid
45 u_int8_t classid, subclassid; member
51 u_int8_t classid, subclassid, protocolid; member
116 const char *names_subclass(u_int8_t classid, u_int8_t subclassid) in names_subclass() argument
120 s = subclasses[hashnum((classid << 8) | subclassid)]; in names_subclass()
122 if (s->classid == classid && s->subclassid == subclassid) in names_subclass()
127 const char *names_protocol(u_int8_t classid, u_int8_t subclassid, in names_protocol() argument
132 p = protocols[hashnum((classid << 16) | (subclassid << 8) in names_protocol()
135 if (p->classid == classid && p->subclassid == subclassid && in names_protocol()
247 static int new_subclass(const char *name, u_int8_t classid, u_int8_t subclassid) in new_subclass() argument
250 unsigned int h = hashnum((classid << 8) | subclassid); in new_subclass()
254 if (s->classid == classid && s->subclassid == subclassid) in new_subclass()
261 s->subclassid = subclassid; in new_subclass()
267 static int new_protocol(const char *name, u_int8_t classid, u_int8_t subclassid, in new_protocol() argument
271 unsigned int h = hashnum((classid << 16) | (subclassid << 8) in new_protocol()
276 if (p->classid == classid && p->subclassid == subclassid in new_protocol()
284 p->subclassid = subclassid; in new_protocol()