Lines Matching refs:z
133 struct z_packet z; in zephyr_print() local
141 z.kind = 0; in zephyr_print()
142 z.class = 0; in zephyr_print()
143 z.inst = 0; in zephyr_print()
144 z.opcode = 0; in zephyr_print()
145 z.sender = 0; in zephyr_print()
146 z.recipient = 0; in zephyr_print()
160 PARSE_FIELD_STR(z.version); in zephyr_print()
162 if (strncmp(z.version, "ZEPH", 4)) in zephyr_print()
165 PARSE_FIELD_INT(z.numfields); in zephyr_print()
166 PARSE_FIELD_INT(z.kind); in zephyr_print()
167 PARSE_FIELD_STR(z.uid); in zephyr_print()
168 PARSE_FIELD_INT(z.port); in zephyr_print()
169 PARSE_FIELD_INT(z.auth); in zephyr_print()
170 PARSE_FIELD_INT(z.authlen); in zephyr_print()
171 PARSE_FIELD_STR(z.authdata); in zephyr_print()
172 PARSE_FIELD_STR(z.class); in zephyr_print()
173 PARSE_FIELD_STR(z.inst); in zephyr_print()
174 PARSE_FIELD_STR(z.opcode); in zephyr_print()
175 PARSE_FIELD_STR(z.sender); in zephyr_print()
176 PARSE_FIELD_STR(z.recipient); in zephyr_print()
177 PARSE_FIELD_STR(z.format); in zephyr_print()
178 PARSE_FIELD_INT(z.cksum); in zephyr_print()
179 PARSE_FIELD_INT(z.multi); in zephyr_print()
180 PARSE_FIELD_STR(z.multi_uid); in zephyr_print()
188 if (strncmp(z.version+4, "0.2", 3)) { in zephyr_print()
189 ND_PRINT((ndo, " v%s", z.version+4)); in zephyr_print()
193 ND_PRINT((ndo, " %s", tok2str(z_types, "type %d", z.kind))); in zephyr_print()
194 if (z.kind == Z_PACKET_SERVACK) { in zephyr_print()
201 if (*z.sender) ND_PRINT((ndo, " %s", z.sender)); in zephyr_print()
203 if (!strcmp(z.class, "USER_LOCATE")) { in zephyr_print()
204 if (!strcmp(z.opcode, "USER_HIDE")) in zephyr_print()
206 else if (!strcmp(z.opcode, "USER_UNHIDE")) in zephyr_print()
209 ND_PRINT((ndo, " locate %s", z.inst)); in zephyr_print()
213 if (!strcmp(z.class, "ZEPHYR_ADMIN")) { in zephyr_print()
214 ND_PRINT((ndo, " zephyr-admin %s", str_to_lower(z.opcode))); in zephyr_print()
218 if (!strcmp(z.class, "ZEPHYR_CTL")) { in zephyr_print()
219 if (!strcmp(z.inst, "CLIENT")) { in zephyr_print()
220 if (!strcmp(z.opcode, "SUBSCRIBE") || in zephyr_print()
221 !strcmp(z.opcode, "SUBSCRIBE_NODEFS") || in zephyr_print()
222 !strcmp(z.opcode, "UNSUBSCRIBE")) { in zephyr_print()
224 ND_PRINT((ndo, " %ssub%s", strcmp(z.opcode, "SUBSCRIBE") ? "un" : "", in zephyr_print()
225 strcmp(z.opcode, "SUBSCRIBE_NODEFS") ? "" : in zephyr_print()
227 if (z.kind != Z_PACKET_SERVACK) { in zephyr_print()
238 if (!strcmp(z.opcode, "GIMME")) { in zephyr_print()
243 if (!strcmp(z.opcode, "GIMMEDEFS")) { in zephyr_print()
248 if (!strcmp(z.opcode, "CLEARSUB")) { in zephyr_print()
253 ND_PRINT((ndo, " %s", str_to_lower(z.opcode))); in zephyr_print()
257 if (!strcmp(z.inst, "HM")) { in zephyr_print()
258 ND_PRINT((ndo, " %s", str_to_lower(z.opcode))); in zephyr_print()
262 if (!strcmp(z.inst, "REALM")) { in zephyr_print()
263 if (!strcmp(z.opcode, "ADD_SUBSCRIBE")) in zephyr_print()
265 if (!strcmp(z.opcode, "REQ_SUBSCRIBE")) in zephyr_print()
267 if (!strcmp(z.opcode, "RLM_SUBSCRIBE")) in zephyr_print()
269 if (!strcmp(z.opcode, "RLM_UNSUBSCRIBE")) in zephyr_print()
275 if (!strcmp(z.class, "HM_CTL")) { in zephyr_print()
276 ND_PRINT((ndo, " hm_ctl %s", str_to_lower(z.inst))); in zephyr_print()
277 ND_PRINT((ndo, " %s", str_to_lower(z.opcode))); in zephyr_print()
281 if (!strcmp(z.class, "HM_STAT")) { in zephyr_print()
282 if (!strcmp(z.inst, "HMST_CLIENT") && !strcmp(z.opcode, "GIMMESTATS")) { in zephyr_print()
288 if (!strcmp(z.class, "WG_CTL")) { in zephyr_print()
289 ND_PRINT((ndo, " wg_ctl %s", str_to_lower(z.inst))); in zephyr_print()
290 ND_PRINT((ndo, " %s", str_to_lower(z.opcode))); in zephyr_print()
294 if (!strcmp(z.class, "LOGIN")) { in zephyr_print()
295 if (!strcmp(z.opcode, "USER_FLUSH")) { in zephyr_print()
300 if (!strcmp(z.opcode, "NONE") || in zephyr_print()
301 !strcmp(z.opcode, "OPSTAFF") || in zephyr_print()
302 !strcmp(z.opcode, "REALM-VISIBLE") || in zephyr_print()
303 !strcmp(z.opcode, "REALM-ANNOUNCED") || in zephyr_print()
304 !strcmp(z.opcode, "NET-VISIBLE") || in zephyr_print()
305 !strcmp(z.opcode, "NET-ANNOUNCED")) { in zephyr_print()
306 ND_PRINT((ndo, " set-exposure %s", str_to_lower(z.opcode))); in zephyr_print()
311 if (!*z.recipient) in zephyr_print()
312 z.recipient = "*"; in zephyr_print()
314 ND_PRINT((ndo, " to %s", z_triple(z.class, z.inst, z.recipient))); in zephyr_print()
315 if (*z.opcode) in zephyr_print()
316 ND_PRINT((ndo, " op %s", z.opcode)); in zephyr_print()