Lines Matching +full:display +full:- +full:hub
4 * Copyright (c) 1996-1999 Whistle Communications, Inc.
22 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT.
148 COOKIE(HUB),
185 * Set debug level, ie, verbosity, if "level" is non-negative.
210 * Display a netgraph sockaddr
216 sg->sg_family, sg->sg_len, sg->sg_data); in _NgDebugSockaddr()
223 * Display a negraph message
230 struct ng_mesg *const bin = (struct ng_mesg *)req->data; in _NgDebugMsg()
231 int arglen, csock = -1; in _NgDebugMsg()
233 /* Display header stuff */ in _NgDebugMsg()
235 NGLOGX(" vers %d", msg->header.version); in _NgDebugMsg()
236 NGLOGX(" arglen %u", msg->header.arglen); in _NgDebugMsg()
237 NGLOGX(" flags %x", msg->header.flags); in _NgDebugMsg()
238 NGLOGX(" token %u", msg->header.token); in _NgDebugMsg()
240 NgCookie(msg->header.typecookie), msg->header.typecookie); in _NgDebugMsg()
256 arglen = msg->header.arglen; in _NgDebugMsg()
260 bin->header.arglen = arglen; in _NgDebugMsg()
263 _gNgDebugLevel -= RECURSIVE_DEBUG_ADJUST; in _NgDebugMsg()
267 NGM_BINARY2ASCII, bin, sizeof(*bin) + bin->header.arglen) < 0) { in _NgDebugMsg()
279 /* Display command string and arguments */ in _NgDebugMsg()
280 NGLOGX(" cmd %s (%d)", bin->header.cmdstr, bin->header.cmd); in _NgDebugMsg()
281 NGLOGX(" args %s", bin->data); in _NgDebugMsg()
285 /* Just display binary version */ in _NgDebugMsg()
288 NGLOGX(" cmd %d", msg->header.cmd); in _NgDebugMsg()
289 NGLOGX(" args (%d bytes)", msg->header.arglen); in _NgDebugMsg()
290 _NgDebugBytes((u_char *)msg->data, msg->header.arglen); in _NgDebugMsg()
293 if (csock != -1) in _NgDebugMsg()
330 sizeof(buf) - strlen(buf), "%02x ", ptr[k]); in _NgDebugBytes()
333 sizeof(buf) - strlen(buf), " "); in _NgDebugBytes()
334 snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf), " "); in _NgDebugBytes()
335 count -= BYPERLINE; in _NgDebugBytes()
341 sizeof(buf) - strlen(buf), in _NgDebugBytes()
345 sizeof(buf) - strlen(buf), " "); in _NgDebugBytes()
346 count -= BYPERLINE; in _NgDebugBytes()