Lines Matching full:z
146 struct z_packet z = {
185 PARSE_FIELD_STR(z.version);
189 if (strncmp(z.version, "ZEPH", 4))
192 PARSE_FIELD_INT(z.numfields);
193 PARSE_FIELD_INT(z.kind);
194 PARSE_FIELD_STR(z.uid);
195 PARSE_FIELD_INT(z.port);
196 PARSE_FIELD_INT(z.auth);
197 PARSE_FIELD_INT(z.authlen);
198 PARSE_FIELD_STR(z.authdata);
199 PARSE_FIELD_STR(z.class);
200 PARSE_FIELD_STR(z.inst);
201 PARSE_FIELD_STR(z.opcode);
202 PARSE_FIELD_STR(z.sender);
203 PARSE_FIELD_STR(z.recipient);
204 PARSE_FIELD_STR(z.format);
205 PARSE_FIELD_INT(z.cksum);
206 PARSE_FIELD_INT(z.multi);
207 PARSE_FIELD_STR(z.multi_uid);
213 if (strncmp(z.version+4, "0.2", 3)) {
214 ZEPHYR_PRINT(" v", z.version+4)
218 ND_PRINT(" %s", tok2str(z_types, "type %d", z.kind));
219 if (z.kind == Z_PACKET_SERVACK) {
226 if (*z.sender) ZEPHYR_PRINT(" ", z.sender);
228 if (!strcmp(z.class, "USER_LOCATE")) {
229 if (!strcmp(z.opcode, "USER_HIDE"))
231 else if (!strcmp(z.opcode, "USER_UNHIDE"))
234 ZEPHYR_PRINT(" locate ", z.inst);
238 if (!strcmp(z.class, "ZEPHYR_ADMIN")) {
239 ZEPHYR_PRINT(" zephyr-admin ", str_to_lower(z.opcode));
243 if (!strcmp(z.class, "ZEPHYR_CTL")) {
244 if (!strcmp(z.inst, "CLIENT")) {
245 if (!strcmp(z.opcode, "SUBSCRIBE") ||
246 !strcmp(z.opcode, "SUBSCRIBE_NODEFS") ||
247 !strcmp(z.opcode, "UNSUBSCRIBE")) {
249 ND_PRINT(" %ssub%s", strcmp(z.opcode, "SUBSCRIBE") ? "un" : "",
250 strcmp(z.opcode, "SUBSCRIBE_NODEFS") ? "" :
252 if (z.kind != Z_PACKET_SERVACK) {
263 if (!strcmp(z.opcode, "GIMME")) {
268 if (!strcmp(z.opcode, "GIMMEDEFS")) {
273 if (!strcmp(z.opcode, "CLEARSUB")) {
278 ZEPHYR_PRINT(" ", str_to_lower(z.opcode));
282 if (!strcmp(z.inst, "HM")) {
283 ZEPHYR_PRINT(" ", str_to_lower(z.opcode));
287 if (!strcmp(z.inst, "REALM")) {
288 if (!strcmp(z.opcode, "ADD_SUBSCRIBE"))
290 if (!strcmp(z.opcode, "REQ_SUBSCRIBE"))
292 if (!strcmp(z.opcode, "RLM_SUBSCRIBE"))
294 if (!strcmp(z.opcode, "RLM_UNSUBSCRIBE"))
300 if (!strcmp(z.class, "HM_CTL")) {
301 ZEPHYR_PRINT(" hm_ctl ", str_to_lower(z.inst));
302 ZEPHYR_PRINT(" ", str_to_lower(z.opcode));
306 if (!strcmp(z.class, "HM_STAT")) {
307 if (!strcmp(z.inst, "HMST_CLIENT") && !strcmp(z.opcode, "GIMMESTATS")) {
313 if (!strcmp(z.class, "WG_CTL")) {
314 ZEPHYR_PRINT(" wg_ctl ", str_to_lower(z.inst));
315 ZEPHYR_PRINT(" ", str_to_lower(z.opcode));
319 if (!strcmp(z.class, "LOGIN")) {
320 if (!strcmp(z.opcode, "USER_FLUSH")) {
325 if (!strcmp(z.opcode, "NONE") ||
326 !strcmp(z.opcode, "OPSTAFF") ||
327 !strcmp(z.opcode, "REALM-VISIBLE") ||
328 !strcmp(z.opcode, "REALM-ANNOUNCED") ||
329 !strcmp(z.opcode, "NET-VISIBLE") ||
330 !strcmp(z.opcode, "NET-ANNOUNCED")) {
331 ZEPHYR_PRINT(" set-exposure ", str_to_lower(z.opcode));
336 if (!*z.recipient)
337 z.recipient = "*";
339 ZEPHYR_PRINT(" to ", z_triple(z.class, z.inst, z.recipient));
340 if (*z.opcode)
341 ZEPHYR_PRINT(" op ", z.opcode);