Home
last modified time | relevance | path

Searched refs:pptr (Results 1 – 25 of 89) sorted by relevance

1234

/freebsd/contrib/tcpdump/
H A Dprint-bgp.c583 const u_char *pptr, u_int itemlen, char *buf, size_t buflen) in decode_prefix4() argument
589 plen = GET_U_1(pptr); in decode_prefix4()
597 GET_CPY_BYTES(&addr, pptr + 1, plenbytes); in decode_prefix4()
610 const u_char *pptr, u_int itemlen, char *buf, in decode_labeled_prefix4() argument
617 ND_TCHECK_4(pptr); in decode_labeled_prefix4()
619 plen = GET_U_1(pptr); /* get prefix length */ in decode_labeled_prefix4()
641 GET_CPY_BYTES(&addr, pptr + 4, plenbytes); in decode_labeled_prefix4()
649 GET_BE_U_3(pptr + 1)>>4, in decode_labeled_prefix4()
650 ((GET_U_1(pptr + 3) & 1) == 0) ? "(BOGUS: Bottom of Stack NOT set!)" : "(bottom)" ); in decode_labeled_prefix4()
668 const u_char *pptr, u_int addr_length) in bgp_vpn_ip_print() argument
[all …]
H A Dprint-bfd.c184 auth_print(netdissect_options *ndo, const u_char *pptr) in auth_print() argument
190 pptr += sizeof (struct bfd_header_t); in auth_print()
191 bfd_auth_header = (const struct bfd_auth_header_t *)pptr; in auth_print()
198 pptr += 2; in auth_print()
199 ND_PRINT("\n\t Auth Key ID: %u", GET_U_1(pptr)); in auth_print()
220 pptr++; in auth_print()
223 (void)nd_printn(ndo, pptr, auth_len - 3, NULL); in auth_print()
247 pptr += 2; in auth_print()
248 ND_PRINT(", Sequence Number: 0x%08x", GET_BE_U_4(pptr)); in auth_print()
249 pptr += 4; in auth_print()
[all …]
H A Dprint-ssh.c25 ssh_print_version(netdissect_options *ndo, const u_char *pptr, u_int len) in ssh_print_version() argument
29 if ( GET_U_1(pptr+idx) != 'S' ) in ssh_print_version()
32 if ( GET_U_1(pptr+idx) != 'S' ) in ssh_print_version()
35 if ( GET_U_1(pptr+idx) != 'H' ) in ssh_print_version()
38 if ( GET_U_1(pptr+idx) != '-' ) in ssh_print_version()
45 c = GET_U_1(pptr + idx); in ssh_print_version()
59 if (GET_U_1(pptr + idx + 1) == '\n') { in ssh_print_version()
87 ND_PRINT(": %.*s", (int)idx, pptr); in ssh_print_version()
92 ssh_print(netdissect_options *ndo, const u_char *pptr, u_int len) in ssh_print() argument
96 ssh_print_version(ndo, pptr, len); in ssh_print()
H A Dprint-forces.c66 int (*print) (netdissect_options *ndo, const u_char * pptr, u_int len,
232 int (*print) (netdissect_options *ndo, const u_char * pptr, u_int len,
236 static int genoptlv_print(netdissect_options *, const u_char * pptr, u_int len,
238 static int recpdoptlv_print(netdissect_options *, const u_char * pptr, u_int len,
240 static int invoptlv_print(netdissect_options *, const u_char * pptr, u_int len,
444 static int lfbselect_print(netdissect_options *, const u_char * pptr, u_int len,
446 static int redirect_print(netdissect_options *, const u_char * pptr, u_int len,
448 static int asrtlv_print(netdissect_options *, const u_char * pptr, u_int len,
450 static int asttlv_print(netdissect_options *, const u_char * pptr, u_int len,
503 int (*print) (netdissect_options *, const u_char * pptr, u_int len,
[all …]
H A Dprint-isoclns.c627 static void osi_print_cksum(netdissect_options *, const uint8_t *pptr,
826 const uint8_t *pptr, u_int length) in clnp_print() argument
835 clnp_header = (const struct clnp_header_t *) pptr; in clnp_print()
840 optr = pptr; in clnp_print()
862 while (pptr < ndo->ndo_snapend) { in clnp_print()
863 ND_PRINT("%02X", GET_U_1(pptr)); in clnp_print()
864 pptr++; in clnp_print()
874 pptr += sizeof(struct clnp_header_t); in clnp_print()
881 dest_address_length = GET_U_1(pptr); in clnp_print()
882 pptr += 1; in clnp_print()
[all …]
H A Dprint-syslog.c79 const u_char *pptr, u_int len) in syslog_print() argument
92 if (GET_U_1(pptr) != '<') in syslog_print()
97 GET_U_1(pptr + msg_off) >= '0' && in syslog_print()
98 GET_U_1(pptr + msg_off) <= '9') { in syslog_print()
99 pri = pri * 10 + (GET_U_1(pptr + msg_off) - '0'); in syslog_print()
103 if (GET_U_1(pptr + msg_off) != '>') in syslog_print()
139 (void)nd_printn(ndo, pptr + msg_off, len - msg_off, NULL); in syslog_print()
142 print_unknown_data(ndo, pptr, "\n\t", len); in syslog_print()
H A Dsignature.c117 signature_verify(netdissect_options *ndo, const u_char *pptr, u_int plen, in signature_verify() argument
132 if (!ND_TTEST_LEN(pptr, plen)) { in signature_verify()
144 if (sig_ptr + sizeof(sig) > pptr + plen) { in signature_verify()
157 memcpy(packet_copy, pptr, plen); in signature_verify()
162 sig_copy = packet_copy + (sig_ptr - pptr); in signature_verify()
169 (*clear_rtn)((void *)(packet_copy + ((const uint8_t *)clear_arg - pptr))); in signature_verify()
200 signature_verify(netdissect_options *ndo _U_, const u_char *pptr _U_, in signature_verify()
H A Dutil-print.c700 fetch_token(netdissect_options *ndo, const u_char *pptr, u_int idx, u_int len, in fetch_token() argument
707 if (!ND_TTEST_1(pptr + idx)) { in fetch_token()
711 c = GET_U_1(pptr + idx); in fetch_token()
742 if (!ND_TTEST_1(pptr + idx)) { in fetch_token()
746 c = GET_U_1(pptr + idx); in fetch_token()
771 const u_char *pptr, u_int idx, u_int len) in print_txt_line() argument
779 c = GET_U_1(pptr + idx); in print_txt_line()
795 if (GET_U_1(pptr + idx + 1) == '\n') { in print_txt_line()
828 ND_PRINT("%s%.*s", prefix, (int)linelen, pptr + startidx); in print_txt_line()
832 ND_PRINT("%s%.*s", prefix, (int)linelen, pptr + startidx); in print_txt_line()
[all …]
H A Dprint-lwapp.c165 const u_char *pptr, u_int len, int has_ap_ident) in lwapp_control_print() argument
175 tptr=pptr; in lwapp_control_print()
180 lwapp_trans_header = (const struct lwapp_transport_header *)(pptr+6); in lwapp_control_print()
182 lwapp_trans_header = (const struct lwapp_transport_header *)pptr; in lwapp_control_print()
300 const u_char *pptr, u_int len) in lwapp_data_print() argument
308 tptr=pptr; in lwapp_data_print()
312 lwapp_trans_header = (const struct lwapp_transport_header *)pptr; in lwapp_data_print()
H A Dprint-slow.c245 const u_char *pptr, u_int len) in slow_print() argument
253 subtype = GET_U_1(pptr); in slow_print()
262 if (GET_U_1(pptr + 1) != LACP_VERSION) { in slow_print()
264 GET_U_1(pptr + 1)); in slow_print()
273 if (GET_U_1(pptr + 1) != MARKER_VERSION) { in slow_print()
275 GET_U_1(pptr + 1)); in slow_print()
294 GET_U_1((pptr + 1)), in slow_print()
305 print_unknown_data(ndo, pptr, "\n\t", len); in slow_print()
319 pptr += 1; in slow_print()
320 slow_oam_print(ndo, pptr, len); in slow_print()
[all …]
H A Dchecksum.c104 create_osi_cksum (const uint8_t *pptr, int checksum_offset, int length) in create_osi_cksum() argument
125 pptr++; in create_osi_cksum()
127 c0 = c0 + *(pptr++); in create_osi_cksum()
H A Dprint-mpcp.c119 mpcp_print(netdissect_options *ndo, const u_char *pptr, u_int length) in mpcp_print() argument
134 tptr=pptr; in mpcp_print()
135 mpcp_common_header = (const struct mpcp_common_header_t *)pptr; in mpcp_print()
230 print_unknown_data(ndo,pptr, "\n\t", length); in mpcp_print()
H A Dprint-zephyr.c87 parse_field(netdissect_options *ndo, const char **pptr, int *len) in parse_field() argument
92 s = *pptr; in parse_field()
99 if (GET_U_1(*pptr) == '\0') { in parse_field()
104 (*pptr)++; in parse_field()
108 (*pptr)++; in parse_field()
H A Dprint-whois.c25 whois_print(netdissect_options *ndo, const u_char *pptr, u_int len) in whois_print() argument
28 txtproto_print(ndo, pptr, len, NULL, 0); in whois_print()
/freebsd/lib/libsecureboot/openpgp/
H A Ddecode.c109 decode_new_len(unsigned char **pptr) in decode_new_len() argument
114 if (pptr == NULL) in decode_new_len()
116 ptr = *pptr; in decode_new_len()
133 *pptr = ptr; in decode_new_len()
143 decode_len(unsigned char **pptr, int ltype) in decode_len() argument
149 return (decode_new_len(pptr)); in decode_len()
151 if (pptr == NULL) in decode_len()
154 ptr = *pptr; in decode_len()
176 *pptr = ptr; in decode_len()
186 decode_mpi(unsigned char **pptr, size_t *sz) in decode_mpi() argument
[all …]
H A Ddecode.h29 unsigned char * mpi2bn(unsigned char **pptr, size_t *sz);
35 BIGNUM * mpi2bn(unsigned char **pptr);
52 unsigned char * decode_mpi(unsigned char **pptr, size_t *sz);
54 int decode_packet(int want, unsigned char **pptr, size_t nbytes,
56 unsigned char * decode_subpacket(unsigned char **pptr, int *stag, int *sz);
/freebsd/contrib/libc-pwcache/
H A Dpwcache.c265 UIDC *ptr, **pptr; in user_from_uid() local
273 pptr = uidtb + (uid % UID_SZ); in user_from_uid()
274 ptr = *pptr; in user_from_uid()
295 *pptr = ptr = (UIDC *)malloc(sizeof(UIDC)); in user_from_uid()
334 GIDC *ptr, **pptr; in group_from_gid() local
342 pptr = gidtb + (gid % GID_SZ); in group_from_gid()
343 ptr = *pptr; in group_from_gid()
364 *pptr = ptr = (GIDC *)malloc(sizeof(GIDC)); in group_from_gid()
401 UIDC *ptr, **pptr; in uid_from_user() local
416 pptr = usrtb + st_hash(name, namelen, UNM_SZ); in uid_from_user()
[all …]
/freebsd/lib/libc/net/
H A Dgetproto.c54 struct protoent *pptr; in files_getprotobynumber() local
60 pptr = va_arg(ap, struct protoent *); in files_getprotobynumber()
80 if (__copy_protoent(&pe, pptr, buffer, buflen) != 0) { in files_getprotobynumber()
85 *((struct protoent **)retval) = pptr; in files_getprotobynumber()
90 getprotobynumber_r(int proto, struct protoent *pptr, char *buffer, in getprotobynumber_r() argument
112 defaultsrc, proto, pptr, buffer, buflen, &ret_errno); in getprotobynumber_r()
H A Dgetprotoname.c62 struct protoent *pptr; in files_getprotobyname() local
68 pptr = va_arg(ap, struct protoent *); in files_getprotobyname()
94 if (__copy_protoent(&pe, pptr, buffer, buflen) != 0) { in files_getprotobyname()
99 *((struct protoent **)retval) = pptr; in files_getprotobyname()
105 getprotobyname_r(const char *name, struct protoent *pptr, char *buffer, in getprotobyname_r() argument
126 defaultsrc, name, pptr, buffer, buflen, &ret_errno); in getprotobyname_r()
H A Dgetprotoent.c291 __copy_protoent(struct protoent *pe, struct protoent *pptr, char *buf, in __copy_protoent() argument
313 pptr->p_proto = pe->p_proto; in __copy_protoent()
320 pptr->p_name = cp; in __copy_protoent()
324 pptr->p_aliases = (char **)ALIGN(buf); in __copy_protoent()
328 pptr->p_aliases[i] = cp; in __copy_protoent()
331 pptr->p_aliases[i] = NULL; in __copy_protoent()
412 struct protoent *pptr; in files_getprotoent_r() local
417 pptr = va_arg(ap, struct protoent *); in files_getprotoent_r()
432 if (__copy_protoent(&pe, pptr, buffer, buflen) != 0) { in files_getprotoent_r()
437 *((struct protoent **)retval) = pptr; in files_getprotoent_r()
[all …]
/freebsd/contrib/llvm-project/libcxx/src/
H A Dstrstream.cpp103 int strstreambuf::pcount() const { return static_cast<int>(pptr() - pbase()); } in strstreambuf()
108 if (pptr() == epptr()) { in ~strstreambuf()
128 ptrdiff_t nout = pptr() - pbase();
140 *pptr() = static_cast<char>(__c);
166 if (egptr() >= pptr()) in overflow()
168 setg(eback(), gptr(), pptr()); in overflow()
190 if (pos_out && pptr() == nullptr) in overflow()
200 newoff = (pos_in ? gptr() : pptr()) - eback(); in pbackfail()
230 if ((pos_in && gptr() == nullptr) || (pos_out && pptr() == nullptr)) in underflow()
/freebsd/contrib/arm-optimized-routines/networking/
H A Dchksum.c14 slurp_head32(const void **pptr, uint32_t *nbytes) in slurp_head32() argument
18 uint32_t off = (uintptr_t) *pptr % 4; in slurp_head32()
22 const unsigned char *ptr32 = align_ptr(*pptr, 4); in slurp_head32()
25 *pptr = ptr32 + 4; in slurp_head32()
/freebsd/crypto/openssl/crypto/ui/
H A Dui_util.c72 void **pptr, int idx, long argl, void *argp) in ui_dup_method_data() argument
74 if (*pptr != NULL) { in ui_dup_method_data()
75 *pptr = OPENSSL_memdup(*pptr, sizeof(struct pem_password_cb_data)); in ui_dup_method_data()
76 if (*pptr != NULL) in ui_dup_method_data()
/freebsd/contrib/arm-optimized-routines/networking/aarch64/
H A Dchksum_simd.c19 slurp_head64(const void **pptr, uint32_t *nbytes) in slurp_head64() argument
23 uint32_t off = (uintptr_t) *pptr % 8; in slurp_head64()
27 const unsigned char *ptr64 = align_ptr(*pptr, 8); in slurp_head64()
33 *pptr = ptr64 + 8; in slurp_head64()
/freebsd/contrib/kyua/utils/process/
H A Dsystembuf.cpp127 PRE(pptr() >= epptr()); in overflow()
131 traits_type::assign(*pptr(), c); in overflow()
144 ssize_t cnt = pptr() - pbase(); in sync()

1234