Home | History | Annotate | Download | only in tcpdump

Lines Matching defs:addr_len

104                            u_int *addr_len, u_int8_t *flags)
109 *addr_len = 2;
121 (*addr_len)++; /* 3- or 4-byte Q.922 address */
124 (*addr_len)++; /* 4-byte Q.922 address */
168 fr_hdrlen(const u_char *p, u_int addr_len)
170 if (!p[addr_len + 1] /* pad exist */)
171 return addr_len + 1 /* UI */ + 1 /* pad */ + 1 /* NLPID */;
173 return addr_len + 1 /* UI */ + 1 /* NLPID */;
177 fr_hdr_print(int length, u_int addr_len, u_int dlci, u_int8_t *flags, u_int16_t nlpid)
186 addr_len,
194 addr_len,
226 u_int addr_len;
231 if (parse_q922_addr(p, &dlci, &sdlcore, &addr_len, flags)) {
236 TCHECK2(*p,addr_len+1+1);
237 hdr_len = fr_hdrlen(p, addr_len);
240 if (p[addr_len] != 0x03 && dlci != 0) {
243 extracted_ethertype = EXTRACT_16BITS(p+addr_len);
246 fr_hdr_print(length, addr_len, dlci, flags, extracted_ethertype);
249 p+addr_len+ETHERTYPE_LEN,
250 length-addr_len-ETHERTYPE_LEN,
251 length-addr_len-ETHERTYPE_LEN,
254 printf("UI %02x! ", p[addr_len]);
259 if (!p[addr_len + 1]) { /* pad byte should be used with 3-byte Q.922 */
260 if (addr_len != 3)
262 } else if (addr_len == 3)
268 fr_hdr_print(length, addr_len, dlci, flags, nlpid);
313 fr_hdr_print(length + hdr_len, addr_len,