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

123

/macosx-10.10/tcpdump-61/tcpdump/
H A Dprint-vtp.c127 const u_char *tptr; local
133 tptr = pptr;
135 if (!TTEST2(*tptr, VTP_HEADER_LEN))
138 type = *(tptr+1);
140 *tptr,
142 *(tptr+1),
152 (tptr+4),
153 tok2str(vtp_header_values,"Unknown",*(tptr+1)),
154 *(tptr+2));
156 tptr
[all...]
H A Dprint-udld.c89 const u_char *tptr; local
94 tptr = pptr;
96 if (!TTEST2(*tptr, UDLD_HEADER_LEN))
99 code = UDLD_EXTRACT_OPCODE(*tptr);
102 UDLD_EXTRACT_VERSION(*tptr),
105 bittok2str(udld_flags_values, "none", *(tptr+1)),
106 *(tptr+1),
116 printf("\n\tChecksum 0x%04x (unverified)", EXTRACT_16BITS(tptr+2));
118 tptr += UDLD_HEADER_LEN;
120 while (tptr < (ppt
[all...]
H A Dprint-dtp.c52 const u_char *tptr; local
57 tptr = pptr;
59 if (!TTEST2(*tptr, DTP_HEADER_LEN))
63 (*tptr),
73 tptr += DTP_HEADER_LEN;
75 while (tptr < (pptr+length)) {
77 if (!TTEST2(*tptr, 4))
80 type = EXTRACT_16BITS(tptr);
81 len = EXTRACT_16BITS(tptr+2);
94 printf(", %s", tptr
[all...]
H A Dprint-isoclns.c863 const u_int8_t *tptr; local
879 tptr = pptr;
893 tok2str(clnp_option_sr_rr_values,"Unknown",*tptr),
895 nsap_offset=*(tptr+1);
905 tptr+=nsap_offset;
908 source_address_length=*tptr;
914 source_address=(tptr+1);
925 printf("0x%1x", *tptr&0x0f);
930 tok2str(clnp_option_scope_values,"Reserved",*tptr&CLNP_OPTION_SCOPE_MASK));
932 if ((*tptr
1234 const u_int8_t *tptr; local
1329 isis_print_mt_port_cap_subtlv(const u_int8_t *tptr, int len) argument
1441 isis_print_mt_capability_subtlv(const u_int8_t *tptr, int len) argument
1669 isis_print_ip_reach_subtlv(const u_int8_t *tptr,int subt,int subl,const char *ident) argument
1722 isis_print_is_reach_subtlv(const u_int8_t *tptr,u_int subt,u_int subl,const char *ident) argument
1886 isis_print_ext_is_reach(const u_int8_t *tptr,const char *ident, int tlv_type) argument
1935 isis_print_mtid(const u_int8_t *tptr,const char *ident) argument
1961 isis_print_extd_ip_reach(const u_int8_t *tptr, const char *ident, u_int16_t afi) argument
2094 const u_int8_t *optr, *pptr, *tptr; local
[all...]
H A Dprint-mpcp.c146 const u_char *tptr; local
151 tptr=pptr;
154 if (!TTEST2(*tptr, sizeof(const struct mpcp_common_header_t)))
166 tptr += sizeof(const struct mpcp_common_header_t);
173 if (!TTEST2(*tptr, MPCP_GRANT_NUMBER_LEN))
175 grant_numbers = *tptr & MPCP_GRANT_NUMBER_MASK;
180 *tptr &~ MPCP_GRANT_NUMBER_MASK));
181 tptr++;
184 if (!TTEST2(*tptr, sizeof(const struct mpcp_grant_t)))
186 mpcp.grant = (const struct mpcp_grant_t *)tptr;
[all...]
H A Dprint-eap.c167 const u_char *tptr; local
171 tptr = cp;
192 tptr += sizeof(const struct eap_frame_t);
197 type = *(tptr);
198 len = EXTRACT_16BITS(tptr+2);
202 *(tptr+1),
205 if (!TTEST2(*tptr, len))
209 subtype = *(tptr+4);
211 tok2str(eap_type_values, "unknown", *(tptr+4)),
212 *(tptr
[all...]
H A Dprint-ldp.c242 TCHECK2(*tptr, minlen); if (tlv_tlen < minlen) goto badtlv;
245 ldp_tlv_print(register const u_char *tptr) { argument
259 ldp_tlv_header = (const struct ldp_tlv_header *)tptr;
274 tptr+=sizeof(struct ldp_tlv_header);
281 EXTRACT_16BITS(tptr),
282 (EXTRACT_16BITS(tptr+2)&0x8000) ? "Targeted" : "Link",
283 (EXTRACT_16BITS(tptr+2)&0x4000) ? ", Request for targeted Hellos" : "");
288 printf("\n\t IPv4 Transport Address: %s", ipaddr_string(tptr));
293 printf("\n\t IPv6 Transport Address: %s", ip6addr_string(tptr));
298 printf("\n\t Sequence Number: %u", EXTRACT_32BITS(tptr));
565 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-lldp.c580 lldp_private_8021_print(const u_char *tptr, u_int tlv_len) argument
588 subtype = *(tptr+3);
600 EXTRACT_16BITS(tptr+4));
607 EXTRACT_16BITS(tptr+5),
608 bittok2str(lldp_8021_port_protocol_id_values, "none", *(tptr+4)),
609 *(tptr+4));
616 EXTRACT_16BITS(tptr+4));
620 sublen = *(tptr+6);
625 safeputs((const char *)tptr+7, sublen);
631 sublen = *(tptr
651 lldp_private_8023_print(const u_char *tptr, u_int tlv_len) argument
715 lldp_extract_latlon(const u_char *tptr) argument
729 lldp_private_tia_print(const u_char *tptr, u_int tlv_len) argument
917 const u_char *tptr, *mptr; local
1070 lldp_network_addr_print(const u_char *tptr, u_int len) argument
1118 const u_char *tptr; local
1181 const u_char *tptr; local
[all...]
H A Dprint-cfm.c240 cfm_mgmt_addr_print(register const u_char *tptr) { argument
250 mgmt_addr_type = *tptr;
260 printf(", %s", ipaddr_string(tptr + 1));
265 printf(", %s", ip6addr_string(tptr + 1));
281 cfm_egress_id_string(register const u_char *tptr) { argument
286 EXTRACT_16BITS(tptr),
287 etheraddr_string(tptr+2));
297 const u_int8_t *tptr, *tlv_ptr, *ma_name, *ma_nameformat, *ma_namelength; local
308 tptr=pptr;
336 tptr
[all...]
H A Dprint-bgp.c1242 const u_char *tptr = pptr; local
1257 while (tptr < pptr + len) {
1258 TCHECK(tptr[0]);
1263 if (tptr[0] < BGP_AS_SEG_TYPE_MIN || tptr[0] > BGP_AS_SEG_TYPE_MAX) {
1266 TCHECK(tptr[1]);
1267 tptr += 2 + tptr[1] * 2;
1274 if (tptr == pptr + len) {
1301 const u_char *tptr; local
2530 const u_char *tptr; local
[all...]
H A Dprint-vqp.c114 const u_char *tptr; local
120 tptr=pptr;
157 tptr+=sizeof(const struct vqp_common_header_t);
162 vqp_obj_tlv = (const struct vqp_obj_tlv_t *)tptr;
165 tptr+=sizeof(struct vqp_obj_tlv_t);
178 if (!TTEST2(*tptr, vqp_obj_len))
183 printf("%s (0x%08x)", ipaddr_string(tptr), EXTRACT_32BITS(tptr));
190 safeputs((const char *)tptr, vqp_obj_len);
195 printf("%s", etheraddr_string(tptr));
[all...]
H A Dprint-rpki-rtr.c178 rpki_rtr_pdu_print (const u_char *tptr, u_int indent) argument
184 pdu_header = (rpki_rtr_pdu *)tptr;
231 pdu = (rpki_rtr_pdu_ipv4_prefix *)tptr;
245 pdu = (rpki_rtr_pdu_ipv6_prefix *)tptr;
261 pdu = (rpki_rtr_pdu_error_report *)tptr;
271 tptr += sizeof(*pdu);
280 rpki_rtr_pdu_print(tptr, indent+2);
283 tptr += encapsulated_pdu_length;
291 text_length = EXTRACT_32BITS(tptr);
292 tptr
321 const u_char *tptr; local
[all...]
H A Dprint-lwapp.c176 const u_char *tptr; local
180 tptr=pptr;
184 if (!TTEST2(*tptr, 6))
224 etheraddr_string(tptr));
225 tptr+=sizeof(const struct lwapp_transport_header)+6;
227 tptr+=sizeof(const struct lwapp_transport_header);
233 if (!TTEST2(*tptr, sizeof(struct lwapp_control_header)))
236 lwapp_control_header = (const struct lwapp_control_header *)tptr;
248 if (!TTEST2(*tptr, msg_tlen))
288 tptr
301 const u_char *tptr; local
[all...]
H A Dprint-ospf.c200 ospf_print_grace_lsa (const u_int8_t *tptr, u_int ls_length) { argument
206 TCHECK2(*tptr, 4);
211 tlv_type = EXTRACT_16BITS(tptr);
212 tlv_length = EXTRACT_16BITS(tptr+2);
213 tptr+=4;
232 TCHECK2(*tptr, tlv_length);
240 printf("%us",EXTRACT_32BITS(tptr));
249 tok2str(lsa_opaque_grace_tlv_reason_values, "Unknown", *tptr),
250 *tptr);
258 printf("%s", ipaddr_string(tptr));
282 ospf_print_te_lsa(const u_int8_t *tptr, u_int ls_length) argument
573 const u_int8_t *tptr; local
[all...]
H A Dprint-sflow.c474 const u_char *tptr; local
482 tptr = pointer;
489 sflow_counter_record = (const struct sflow_counter_record_t *)tptr;
501 tptr += sizeof(struct sflow_counter_record_t);
509 if (print_sflow_counter_generic(tptr,tlen))
513 if (print_sflow_counter_ethernet(tptr,tlen))
517 if (print_sflow_counter_token_ring(tptr,tlen))
521 if (print_sflow_counter_basevg(tptr,tlen))
525 if (print_sflow_counter_vlan(tptr,tlen))
529 if (print_sflow_counter_processor(tptr,tle
667 const u_char *tptr; local
818 const u_char *tptr; local
[all...]
H A Dprint-slow.c340 void slow_marker_lacp_print(register const u_char *tptr, register u_int tlen) { argument
355 TCHECK2(*tptr, sizeof(struct tlv_header_t));
356 tlv_header = (const struct tlv_header_t *)tptr;
371 print_unknown_data(tptr+sizeof(struct tlv_header_t),"\n\t ",tlen);
375 tlv_tptr=tptr+sizeof(struct tlv_header_t);
379 TCHECK2(*tptr, tlv_len);
444 print_unknown_data(tptr+sizeof(struct tlv_header_t),"\n\t ",
448 tptr+=tlv_len;
456 void slow_oam_print(register const u_char *tptr, register u_int tlen) { argument
483 ptr.slow_oam_common_header = (struct slow_oam_common_header_t *)tptr;
[all...]
H A Dprint-ospf6.c163 ospf6_print_lsaprefix(const u_int8_t *tptr, u_int lsa_length) argument
165 const struct lsa6_prefix *lsapp = (struct lsa6_prefix *)tptr;
223 const u_int8_t *tptr; local
239 tptr = (u_int8_t *)lsap+sizeof(struct lsa6_hdr);
325 tptr = (u_int8_t *)lsap->lsa_un.un_inter_ap.inter_ap_prefix;
327 bytelen = ospf6_print_lsaprefix(tptr, lsa_length);
331 tptr += bytelen;
347 tptr = (u_int8_t *)lsap->lsa_un.un_asla.asla_prefix;
348 lsapp = (struct lsa6_prefix *)tptr;
349 bytelen = ospf6_print_lsaprefix(tptr, lsa_lengt
[all...]
H A Dprint-rsvp.c498 rsvp_intserv_print(const u_char *tptr, u_short obj_tlen) { argument
508 parameter_id = *(tptr);
509 parameter_length = EXTRACT_16BITS(tptr+2)<<2; /* convert wordcount to bytecount */
515 *(tptr+1));
530 printf("\n\t\tIS hop count: %u", EXTRACT_32BITS(tptr+4));
542 bw.i = EXTRACT_32BITS(tptr+4);
557 if (EXTRACT_32BITS(tptr+4) == 0xffffffff)
560 printf("%u", EXTRACT_32BITS(tptr+4));
574 printf("\n\t\tComposed MTU: %u bytes", EXTRACT_32BITS(tptr+4));
594 bw.i = EXTRACT_32BITS(tptr
639 rsvp_obj_print(const u_char *pptr _U_ , u_int plen _U_ , const u_char *tptr, const char *ident, u_int tlen) argument
1810 const u_char *tptr,*subtptr; local
[all...]
/macosx-10.10/cups-408/cups/cups/
H A Dsnprintf.c49 *tptr, /* Pointer into temporary format */ local
69 tptr = tformat;
70 *tptr++ = *format++;
81 *tptr++ = *format;
96 snprintf(tptr, sizeof(tformat) - (tptr - tformat), "%d", width);
97 tptr += strlen(tptr);
105 if (tptr < (tformat + sizeof(tformat) - 1))
106 *tptr
[all...]
H A Ddebug.c101 *tptr, /* Pointer into temporary format */ local
122 tptr = tformat;
123 *tptr++ = *format++;
134 *tptr++ = *format++;
145 snprintf(tptr, sizeof(tformat) - (size_t)(tptr - tformat), "%d", width);
146 tptr += strlen(tptr);
154 if (tptr < (tformat + sizeof(tformat) - 1))
155 *tptr
[all...]
/macosx-10.10/ntp-92/ntpd/
H A Drefclock_bancomm.c343 struct vmedate *tptr; local
352 tptr = &vme->vmedata;
353 if ((tptr = get_datumtime(tptr)) == NULL ) {
369 tptr->year = (unsigned short)(tadr->tm_year + 1900);
373 tptr->day,
374 tptr->hr,
375 tptr->mn,
376 tptr->sec,
377 tptr
[all...]
/macosx-10.10/Libc-1044.1.2/stdtime/FreeBSD/
H A Dstrftime.c140 _fmt(format, t, pt, ptlim, warnp, tptr, loc)
146 struct lc_time_T * tptr;
164 "?" : tptr->weekday[t->tm_wday],
170 "?" : tptr->wday[t->tm_wday],
176 "?" : (Oalternative ? tptr->alt_month :
177 tptr->month)[t->tm_mon],
184 "?" : tptr->mon[t->tm_mon],
190 ** _fmt("%a %b %e %X %Y", t, tptr, loc);
202 pt = _fmt(tptr->c_fmt, t, pt, ptlim, &warn2, tptr, lo
[all...]
H A Dstrptime.c134 struct lc_time_T *tptr = __get_current_time_locale(loc); local
169 buf = _strptime(buf, tptr->date_fmt, tm, convp, loc);
196 buf = _strptime(buf, tptr->c_fmt, tm, convp, loc);
232 buf = _strptime(buf, tptr->ampm_fmt, tm, convp, loc);
252 buf = _strptime(buf, tptr->X_fmt, tm, convp, loc);
258 buf = _strptime(buf, tptr->x_fmt, tm, convp, loc);
348 len = strlen(tptr->am);
349 if (strncasecmp_l(buf, tptr->am, len, loc) == 0) {
358 len = strlen(tptr->pm);
359 if (strncasecmp_l(buf, tptr
[all...]
/macosx-10.10/vim-55/src/
H A Dtermlib.c148 char *tptr; local
153 tptr = tbuf;
154 while (*tptr && *tptr != ':') /* : terminates name field */
158 while (*tptr == '|') /* | separates names */
159 tptr++;
160 nexttptr = _find(tptr, ":|"); /* Rhialto */
161 if (tptr + tlen == nexttptr &&
162 _match(tptr, term) == tlen) /* FOUND! */
168 tptr
[all...]

Completed in 291 milliseconds

123