Lines Matching +full:x +full:- +full:min

26 #include "netdissect-stdinc.h"
48 ndo->ndo_protocol = "chdlc"; in chdlc_if_print()
49 ndo->ndo_ll_hdr_len += chdlc_print(ndo, p, h->len); in chdlc_if_print()
58 ndo->ndo_protocol = "chdlc"; in chdlc_print()
62 if (ndo->ndo_eflag) { in chdlc_print()
63 ND_PRINT("%s, ethertype %s (0x%04x), length %u: ", in chdlc_print()
64 tok2str(chdlc_cast_values, "0x%02x", GET_U_1(p)), in chdlc_print()
70 length -= CHDLC_HDRLEN; in chdlc_print()
94 isoclns_print(ndo, p + 1, length - 1); in chdlc_print()
99 if (!ndo->ndo_eflag) in chdlc_print()
100 ND_PRINT("unknown CHDLC protocol (0x%04x)", proto); in chdlc_print()
112 * The fixed-length portion of a SLARP packet.
139 u_int sec,min,hrs,days; in chdlc_slarp_print() local
141 ndo->ndo_protocol = "chdlc_slarp"; in chdlc_slarp_print()
148 switch (GET_BE_U_4(slarp->code)) { in chdlc_slarp_print()
155 * https://web.archive.org/web/20190725151313/www.nethelp.no/net/cisco-hdlc.txt in chdlc_slarp_print()
157 * the address and mask aren't used in requests - in chdlc_slarp_print()
163 GET_IPADDR_STRING(slarp->un.addr.addr), in chdlc_slarp_print()
164 GET_IPADDR_STRING(slarp->un.addr.mask)); in chdlc_slarp_print()
167 ND_PRINT("keepalive: mineseen=0x%08x, yourseen=0x%08x, reliability=0x%04x", in chdlc_slarp_print()
168 GET_BE_U_4(slarp->un.keep.myseq), in chdlc_slarp_print()
169 GET_BE_U_4(slarp->un.keep.yourseq), in chdlc_slarp_print()
170 GET_BE_U_2(slarp->un.keep.rel)); in chdlc_slarp_print()
172 if (length >= SLARP_MAX_LEN) { /* uptime-stamp is optional */ in chdlc_slarp_print()
175 min = sec / 60; sec -= min * 60; in chdlc_slarp_print()
176 hrs = min / 60; min -= hrs * 60; in chdlc_slarp_print()
177 days = hrs / 24; hrs -= days * 24; in chdlc_slarp_print()
178 ND_PRINT(", link uptime=%ud%uh%um%us",days,hrs,min,sec); in chdlc_slarp_print()
182 ND_PRINT("0x%02x unknown", GET_BE_U_4(slarp->code)); in chdlc_slarp_print()
183 if (ndo->ndo_vflag <= 1) in chdlc_slarp_print()
184 print_unknown_data(ndo,cp+4,"\n\t",length-4); in chdlc_slarp_print()
188 if (SLARP_MAX_LEN < length && ndo->ndo_vflag) in chdlc_slarp_print()
189 ND_PRINT(", (trailing junk: %u bytes)", length - SLARP_MAX_LEN); in chdlc_slarp_print()
190 if (ndo->ndo_vflag > 1) in chdlc_slarp_print()
191 print_unknown_data(ndo,cp+4,"\n\t",length-4); in chdlc_slarp_print()