Searched refs:tptr (Results 1 - 22 of 22) sorted by relevance

/haiku-fatelf/src/bin/network/tcpdump/
H A Dprint-ldp.c244 ldp_tlv_print(register const u_char *tptr) { argument
258 ldp_tlv_header = (const struct ldp_tlv_header *)tptr;
273 tptr+=sizeof(struct ldp_tlv_header);
279 EXTRACT_16BITS(tptr),
280 (EXTRACT_16BITS(tptr+2)&0x8000) ? "Targeted" : "Link",
281 (EXTRACT_16BITS(tptr+2)&0x4000) ? ", Request for targeted Hellos" : "");
285 printf("\n\t IPv4 Transport Address: %s", ipaddr_string(tptr));
289 printf("\n\t IPv6 Transport Address: %s", ip6addr_string(tptr));
293 printf("\n\t Sequence Number: %u", EXTRACT_32BITS(tptr));
297 af = EXTRACT_16BITS(tptr);
504 const u_char *tptr,*msg_tptr; local
[all...]
H A Dprint-cdp.c92 const u_char *tptr; local
99 tptr = pptr; /* temporary pointer */
101 if (!TTEST2(*tptr, CDP_HEADER_LEN))
103 printf("CDPv%u, ttl: %us", *tptr, *(tptr+1));
105 printf(", checksum: %u (unverified), length %u", EXTRACT_16BITS(tptr), length);
106 tptr += CDP_HEADER_LEN;
108 while (tptr < (pptr+length)) {
110 if (!TTEST2(*tptr, 4)) /* read out Type and Length */
112 type = EXTRACT_16BITS(tptr);
[all...]
H A Dprint-isoclns.c805 const u_int8_t *tptr; local
821 tptr = pptr;
835 tok2str(clnp_option_sr_rr_values,"Unknown",*tptr),
837 nsap_offset=*(tptr+1);
847 tptr+=nsap_offset;
850 source_address_length=*tptr;
856 source_address=(tptr+1);
867 printf("0x%1x", *tptr&0x0f);
872 tok2str(clnp_option_scope_values,"Reserved",*tptr&CLNP_OPTION_SCOPE_MASK));
874 if ((*tptr
1179 const u_int8_t *tptr; local
1359 isis_print_ip_reach_subtlv(const u_int8_t *tptr,int subt,int subl,const char *ident) argument
1412 isis_print_is_reach_subtlv(const u_int8_t *tptr,u_int subt,u_int subl,const char *ident) argument
1541 isis_print_ext_is_reach(const u_int8_t *tptr,const char *ident, int tlv_type) argument
1590 isis_print_mtid(const u_int8_t *tptr,const char *ident) argument
1616 isis_print_extd_ip_reach(const u_int8_t *tptr, const char *ident, u_int16_t afi) argument
1746 const u_int8_t *optr, *pptr, *tptr; local
2688 osi_cksum(const u_int8_t *tptr, u_int len) argument
[all...]
H A Dprint-ospf.c258 const u_int8_t *tptr; local
265 tptr = (u_int8_t *)lsap->lsa_un.un_unknown; /* squelch compiler warnings */
451 tptr = (u_int8_t *)(&lsap->lsa_un.un_ri_tlv.type);
454 TCHECK2(*tptr, 4);
459 tlv_type = EXTRACT_16BITS(tptr);
460 tlv_length = EXTRACT_16BITS(tptr+2);
461 tptr+=4;
475 TCHECK2(*tptr, tlv_length);
484 bittok2str(lsa_opaque_ri_tlv_cap_values, "Unknown", EXTRACT_32BITS(tptr)));
488 if(!print_unknown_data(tptr,"\
[all...]
H A Dprint-bgp.c888 const u_char *tptr; local
892 tptr = pptr;
900 TCHECK(*tptr);
903 tptr[0],
918 while (tptr < pptr + len) {
919 TCHECK(tptr[0]);
921 "?", tptr[0],
923 for (i = 0; i < tptr[1] * 2; i += 2) {
924 TCHECK2(tptr[2 + i], 2);
925 printf("%u ", EXTRACT_16BITS(&tptr[
1865 const u_char *tptr; local
[all...]
H A Dprint-slow.c124 const u_char *tptr,*tlv_tptr; local
134 tptr=pptr;
162 tptr+=sizeof(const struct slow_common_header);
166 TCHECK2(*tptr, sizeof(struct tlv_header_t));
167 tlv_header = (const struct tlv_header_t *)tptr;
182 print_unknown_data(tptr+sizeof(sizeof(struct tlv_header_t)),"\n\t ",tlen);
186 tlv_tptr=tptr+sizeof(struct tlv_header_t);
190 TCHECK2(*tptr, tlv_len);
255 print_unknown_data(tptr+sizeof(sizeof(struct tlv_header_t)),"\n\t ",
258 tptr
[all...]
H A Dprint-rsvp.c428 rsvp_intserv_print(const u_char *tptr, u_short obj_tlen) { argument
438 parameter_id = *(tptr);
439 parameter_length = EXTRACT_16BITS(tptr+2)<<2; /* convert wordcount to bytecount */
445 *(tptr+1));
460 printf("\n\t\tIS hop count: %u", EXTRACT_32BITS(tptr+4));
472 bw.i = EXTRACT_32BITS(tptr+4);
487 if (EXTRACT_32BITS(tptr+4) == 0xffffffff)
490 printf("%u", EXTRACT_32BITS(tptr+4));
504 printf("\n\t\tComposed MTU: %u bytes", EXTRACT_32BITS(tptr+4));
524 bw.i = EXTRACT_32BITS(tptr
569 rsvp_obj_print(const u_char *tptr, const char *ident, u_int tlen) argument
1443 const u_char *tptr,*subtptr; local
[all...]
H A Dprint-fr.c394 const u_int8_t *tptr; local
417 tptr = p + 3;
425 TCHECK2(*tptr, sizeof(struct ie_tlv_header_t));
426 ie_type=tptr[0];
427 ie_len=tptr[1];
438 TCHECK2(*tptr,ie_len);
439 tptr+=sizeof(struct ie_tlv_header_t);
447 printf("0x%08x",EXTRACT_32BITS(tptr));
453 if (*(tptr+idx) != 0) /* don't print null termination */
454 safeputchar(*(tptr
[all...]
H A Dprint-ppp.c430 const u_char *tptr; local
432 tptr=pptr;
439 TCHECK2(*tptr, 2);
441 code = *tptr++;
446 *tptr++, /* ID */
455 TCHECK2(*tptr, 2);
456 len = EXTRACT_16BITS(tptr);
457 tptr += 2;
469 TCHECK2(*tptr, 4);
470 printf("\n\t Magic-Num 0x%08x", EXTRACT_32BITS(tptr));
[all...]
H A Dprint-lspping.c466 const u_char *tptr,*tlv_tptr,*subtlv_tptr; local
492 tptr=pptr;
565 tptr+=sizeof(const struct lspping_common_header);
570 if (!TTEST2(*tptr, sizeof(struct lspping_tlv_header)))
573 lspping_tlv_header = (const struct lspping_tlv_header *)tptr;
592 tlv_tptr=tptr+sizeof(struct lspping_tlv_header);
596 if (!TTEST2(*tptr, lspping_tlv_len))
605 if (!TTEST2(*tptr, sizeof(struct lspping_tlv_header)))
837 tptr += sizeof(struct lspping_tlv_header);
838 if (!TTEST2(*tptr, LSPPING_TLV_BFD_DISCRIMINATOR_LE
[all...]
H A Dprint-eigrp.c218 const u_char *tptr,*tlv_tptr; local
232 tptr=pptr;
270 tptr+=sizeof(const struct eigrp_common_header);
274 TCHECK2(*tptr, sizeof(struct eigrp_tlv_header));
276 eigrp_tlv_header = (const struct eigrp_tlv_header *)tptr;
283 print_unknown_data(tptr+sizeof(sizeof(struct eigrp_tlv_header)),"\n\t ",tlen);
294 tlv_tptr=tptr+sizeof(struct eigrp_tlv_header);
298 TCHECK2(*tptr, eigrp_tlv_len);
471 print_unknown_data(tptr+sizeof(sizeof(struct eigrp_tlv_header)),"\n\t ",
474 tptr
[all...]
H A Dprint-lmp.c366 const u_char *tptr,*obj_tptr; local
377 tptr=pptr;
409 tptr+=sizeof(const struct lmp_common_header);
414 if (!TTEST2(*tptr, sizeof(struct lmp_object_header)))
417 lmp_obj_header = (const struct lmp_object_header *)tptr;
436 obj_tptr=tptr+sizeof(struct lmp_object_header);
440 if (!TTEST2(*tptr, lmp_obj_len))
872 print_unknown_data(tptr+sizeof(sizeof(struct lmp_object_header)),"\n\t ",
875 tptr+=lmp_obj_len;
/haiku-fatelf/src/system/libroot/posix/time/
H A Dstrptime.c54 struct lc_time_t *tptr = __get_current_time_locale(); local
84 buf = _strptime(buf, tptr->date_fmt, tm, GMTp);
107 buf = _strptime(buf, tptr->c_fmt, tm, GMTp);
143 buf = _strptime(buf, tptr->ampm_fmt, tm, GMTp);
155 buf = _strptime(buf, tptr->X_fmt, tm, GMTp);
161 buf = _strptime(buf, tptr->x_fmt, tm, GMTp);
251 len = strlen(tptr->am);
252 if (strncasecmp(buf, tptr->am, len) == 0) {
261 len = strlen(tptr->pm);
262 if (strncasecmp(buf, tptr
[all...]
/haiku-fatelf/src/libs/print/libgutenprint/src/main/
H A Ddither-predithered.c42 unsigned char *tptr = dc->ptr + d->ptr_offset; local
48 for (i = 0, j = 1; i < dc->signif_bits; i++, j += j, tptr += length)
51 tptr[0] |= bit;
H A Ddither-very-fast.c45 unsigned char *tptr = dc->ptr + d->ptr_offset; local
51 for (j = 1; j <= bits; j += j, tptr += length)
54 tptr[0] |= bit;
H A Ddither-ordered.c191 unsigned char *tptr = dc->ptr + d->ptr_offset; local
197 for (j = 1; j <= bits; j += j, tptr += length)
200 tptr[0] |= bit;
242 unsigned char *tptr = dc->ptr + d->ptr_offset; local
248 for (j = 1; j <= bits; j += j, tptr += length)
251 tptr[0] |= bit;
412 unsigned char *tptr = dc->ptr + d->ptr_offset; local
414 for (j = 1; j <= bits; j += j, tptr += length)
417 tptr[0] |= bit;
H A Ddither-ed.c137 unsigned char *tptr; local
300 tptr = dc->ptr + d->ptr_offset;
309 for (j = 1; j <= bits; j += j, tptr += length)
312 tptr[0] |= bit;
H A Ddither-eventone.c370 print_ink(stpi_dither_t *d, unsigned char *tptr, const stpi_ink_defn_t *ink, argument
375 if (tptr != 0)
377 tptr += d->ptr_offset;
381 tptr[0] |= bit;
384 tptr[length] |= bit;
387 tptr[0] |= bit;
388 tptr[length] |= bit;
391 for (j=1; j <= ink->bits; j+=j, tptr += length)
394 *tptr |= bit;
/haiku-fatelf/src/libs/util/
H A Dlogin_ok.c224 struct tm *tptr; local
229 if ((tptr = localtime(&t)) != NULL) {
233 if (lt != NULL && in_ltms(lt, tptr, NULL) == -1)
238 if (lt != NULL && in_ltms(lt, tptr, NULL) != -1)
/haiku-fatelf/src/bin/zip/
H A Dfileio.c820 char *tptr = &temp_subvol[0];
834 *tptr = *cptr = '\0';
837 strncat(tptr, zip, _min(FILENAME_MAX, (zptr - zip)) ); /* temp subvol */
840 err = chvol(tptr);
/haiku-fatelf/src/tools/docbook/libxml2/
H A Dxmlunicode.c37 static xmlIntFunc *xmlUnicodeLookup(xmlUnicodeNameTable *tptr, const char *tname);
938 * @tptr: pointer to the name table
946 *xmlUnicodeLookup(xmlUnicodeNameTable *tptr, const char *tname) { argument
950 if ((tptr == NULL) || (tname == NULL)) return(NULL);
953 high = tptr->numentries - 1;
954 sptr = tptr->table;
/haiku-fatelf/src/bin/bash/
H A Dvariables.c4403 int tptr; local
4411 tptr = 0;
4412 while (val = extract_colon_unit (temp, &tptr))

Completed in 147 milliseconds