Searched refs:cp (Results 26 - 50 of 2051) sorted by relevance

1234567891011>>

/freebsd-11-stable/contrib/tcpdump/
H A Dprint-ahcp.c101 ahcp_time_print(netdissect_options *ndo, const u_char *cp, const u_char *ep) argument
107 if (cp + 4 != ep)
109 ND_TCHECK2(*cp, 4);
110 t = EXTRACT_32BITS(cp);
121 ND_TCHECK2(*cp, ep - cp);
129 ahcp_seconds_print(netdissect_options *ndo, const u_char *cp, const u_char *ep) argument
131 if (cp + 4 != ep)
133 ND_TCHECK2(*cp, 4);
134 ND_PRINT((ndo, ": %us", EXTRACT_32BITS(cp)));
147 ahcp_ipv6_addresses_print(netdissect_options *ndo, const u_char *cp, const u_char *ep) argument
171 ahcp_ipv4_addresses_print(netdissect_options *ndo, const u_char *cp, const u_char *ep) argument
195 ahcp_ipv6_prefixes_print(netdissect_options *ndo, const u_char *cp, const u_char *ep) argument
219 ahcp_ipv4_prefixes_print(netdissect_options *ndo, const u_char *cp, const u_char *ep) argument
262 ahcp1_options_print(netdissect_options *ndo, const u_char *cp, const u_char *ep) argument
303 ahcp1_body_print(netdissect_options *ndo, const u_char *cp, const u_char *ep) argument
348 ahcp_print(netdissect_options *ndo, const u_char *cp, const u_int len) argument
[all...]
H A Dprint-loopback.c58 loopback_message_print(netdissect_options *ndo, const u_char *cp, const u_int len) argument
60 const u_char *ep = cp + len;
66 ND_TCHECK2(*cp, 2);
67 function = EXTRACT_LE_16BITS(cp);
68 cp += 2;
76 ND_TCHECK2(*cp, 2);
77 ND_PRINT((ndo, ", receipt number %u", EXTRACT_LE_16BITS(cp)));
78 cp += 2;
81 ND_TCHECK2(*cp, len - 4);
87 ND_TCHECK2(*cp, ETHER_ADDR_LE
109 loopback_print(netdissect_options *ndo, const u_char *cp, const u_int len) argument
[all...]
H A Dprint-domain.c55 register const u_char *cp)
59 if (!ND_TTEST2(*cp, 1))
61 i = *cp++;
64 return (cp + 1);
70 if (!ND_TTEST2(*cp, 1))
72 if ((bitlen = *cp++) == 0)
75 cp += bytelen;
77 cp += i;
78 if (!ND_TTEST2(*cp, 1))
80 i = *cp
54 ns_nskip(netdissect_options *ndo, register const u_char *cp) argument
87 blabel_print(netdissect_options *ndo, const u_char *cp) argument
124 labellen(netdissect_options *ndo, const u_char *cp) argument
148 ns_nprint(netdissect_options *ndo, register const u_char *cp, register const u_char *bp) argument
234 ns_cprint(netdissect_options *ndo, register const u_char *cp) argument
323 ns_qprint(netdissect_options *ndo, register const u_char *cp, register const u_char *bp, int is_mdns) argument
358 ns_rprint(netdissect_options *ndo, register const u_char *cp, register const u_char *bp, int is_mdns) argument
582 register const u_char *cp; local
[all...]
H A Dprint-openflow.c79 of_header_body_print(netdissect_options *ndo, const u_char *cp, const u_char *ep) argument
85 if (ep < cp + OF_HEADER_LEN)
88 ND_TCHECK2(*cp, 1);
89 version = *cp;
90 cp += 1;
92 ND_TCHECK2(*cp, 1);
93 type = *cp;
94 cp += 1;
96 ND_TCHECK2(*cp, 2);
97 length = EXTRACT_16BITS(cp);
135 openflow_print(netdissect_options *ndo, const u_char *cp, const u_int len _U_) argument
[all...]
H A Dprint-openflow-1.0.c12 * * cp -- the pointer to the first octet to decode
739 const u_char *cp, const u_char *ep, const u_int len)
742 return cp;
745 ND_TCHECK2(*cp, len);
747 hex_and_ascii_print(ndo, "\n\t ", cp, len);
748 return cp + len;
757 const u_char *cp, const u_char *ep, const u_int len)
759 const u_char *cp0 = cp;
765 ND_TCHECK2(*cp, 4);
766 subtype = EXTRACT_32BITS(cp);
738 of10_data_print(netdissect_options *ndo, const u_char *cp, const u_char *ep, const u_int len) argument
756 of10_bsn_message_print(netdissect_options *ndo, const u_char *cp, const u_char *ep, const u_int len) argument
961 of10_bsn_actions_print(netdissect_options *ndo, const u_char *cp, const u_char *ep, const u_int len) argument
1035 of10_vendor_action_print(netdissect_options *ndo, const u_char *cp, const u_char *ep, const u_int len) argument
1064 of10_vendor_message_print(netdissect_options *ndo, const u_char *cp, const u_char *ep, const u_int len) argument
1094 of10_vendor_data_print(netdissect_options *ndo, const u_char *cp, const u_char *ep, const u_int len) argument
1119 of10_packet_data_print(netdissect_options *ndo, const u_char *cp, const u_char *ep, const u_int len) argument
1142 of10_phy_ports_print(netdissect_options *ndo, const u_char *cp, const u_char *ep, u_int len) argument
1217 of10_queue_props_print(netdissect_options *ndo, const u_char *cp, const u_char *ep, u_int len) argument
1293 of10_queues_print(netdissect_options *ndo, const u_char *cp, const u_char *ep, u_int len) argument
1341 of10_match_print(netdissect_options *ndo, const char *pfx, const u_char *cp, const u_char *ep) argument
1445 of10_actions_print(netdissect_options *ndo, const char *pfx, const u_char *cp, const u_char *ep, u_int len) argument
1612 of10_features_reply_print(netdissect_options *ndo, const u_char *cp, const u_char *ep, const u_int len) argument
1650 of10_flow_mod_print(netdissect_options *ndo, const u_char *cp, const u_char *ep, const u_int len) argument
1708 of10_port_mod_print(netdissect_options *ndo, const u_char *cp, const u_char *ep) argument
1745 of10_stats_request_print(netdissect_options *ndo, const u_char *cp, const u_char *ep, u_int len) argument
1829 of10_desc_stats_reply_print(netdissect_options *ndo, const u_char *cp, const u_char *ep, const u_int len) argument
1876 of10_flow_stats_reply_print(netdissect_options *ndo, const u_char *cp, const u_char *ep, u_int len) argument
1957 of10_aggregate_stats_reply_print(netdissect_options *ndo, const u_char *cp, const u_char *ep, const u_int len) argument
1990 of10_table_stats_reply_print(netdissect_options *ndo, const u_char *cp, const u_char *ep, u_int len) argument
2049 of10_port_stats_reply_print(netdissect_options *ndo, const u_char *cp, const u_char *ep, u_int len) argument
2134 of10_queue_stats_reply_print(netdissect_options *ndo, const u_char *cp, const u_char *ep, u_int len) argument
2182 of10_stats_reply_print(netdissect_options *ndo, const u_char *cp, const u_char *ep, const u_int len) argument
2222 of10_packet_out_print(netdissect_options *ndo, const u_char *cp, const u_char *ep, const u_int len) argument
2260 of10_packet_in_print(netdissect_options *ndo, const u_char *cp, const u_char *ep, const u_int len) argument
2293 of10_flow_removed_print(netdissect_options *ndo, const u_char *cp, const u_char *ep) argument
2347 of10_error_print(netdissect_options *ndo, const u_char *cp, const u_char *ep, const u_int len) argument
2379 of10_header_body_print(netdissect_options *ndo, const u_char *cp, const u_char *ep, const uint8_t type, const uint16_t len, const uint32_t xid) argument
[all...]
H A Dprint-rrcp.c75 register const u_char *cp,
83 ND_TCHECK(*(cp + RRCP_PROTO_OFFSET));
84 rrcp_proto = *(cp + RRCP_PROTO_OFFSET);
85 ND_TCHECK(*(cp + RRCP_OPCODE_ISREPLY_OFFSET));
86 rrcp_opcode = (*(cp + RRCP_OPCODE_ISREPLY_OFFSET)) & RRCP_OPCODE_MASK;
94 ((*(cp + RRCP_OPCODE_ISREPLY_OFFSET)) & RRCP_ISREPLY) ? "reply" : "query"));
100 ND_TCHECK2(*(cp + RRCP_REG_ADDR_OFFSET), 6);
102 EXTRACT_LE_16BITS(cp + RRCP_REG_ADDR_OFFSET),
103 EXTRACT_LE_32BITS(cp + RRCP_REG_DATA_OFFSET)));
106 ND_TCHECK2(*(cp
74 rrcp_print(netdissect_options *ndo, register const u_char *cp, u_int length _U_, const struct lladdr_info *src, const struct lladdr_info *dst) argument
[all...]
/freebsd-11-stable/contrib/ntp/libntp/
H A Dhextolfp.c18 register const char *cp; local
26 cp = str;
33 while (isspace((unsigned char)*cp))
34 cp++;
36 cpstart = cp;
37 while (*cp != '\0' && (cp - cpstart) < 8 &&
38 (ind = strchr(digits, *cp)) != NULL) {
43 cp++;
46 if ((cp
[all...]
/freebsd-11-stable/lib/libc/string/
H A Dwcscat.c42 wchar_t *cp; local
44 cp = s1;
45 while (*cp != L'\0')
46 cp++;
47 while ((*cp++ = *s2++) != L'\0')
/freebsd-11-stable/crypto/openssh/openbsd-compat/
H A Dstrnlen.c30 const char *cp; local
32 for (cp = str; maxlen != 0 && *cp != '\0'; cp++, maxlen--)
35 return (size_t)(cp - str);
/freebsd-11-stable/usr.bin/mail/
H A Dhead.c95 char *cp, *sp; local
101 cp = line;
106 cp = nextword(cp, word);
110 if (isdate(cp)) {
111 hl->l_date = copyin(cp, &sp);
114 cp = nextword(cp, word);
117 if (cp != NULL && strncmp(cp, "tt
134 char *cp, *top; local
195 cmatch(char *cp, char *tp) argument
[all...]
H A Dtemp.c52 char *cp; local
59 cp = tmpdir + strlen(tmpdir) - 1;
60 while (cp > tmpdir && *cp == '/') {
61 *cp = '\0';
62 cp--;
73 if ((cp = username()) == NULL) {
78 myname = savestr(cp);
80 if ((cp = getenv("HOME")) == NULL || *cp
[all...]
/freebsd-11-stable/contrib/mdocml/
H A Ddba_read.c42 const char *cp; local
53 for (cp = pdata->name; *cp != '\0'; cp = strchr(cp, '\0') + 1)
54 dba_page_add(page, DBP_NAME, cp);
55 for (cp = pdata->sect; *cp != '\0'; cp = strchr(cp, '\
[all...]
H A Dtest-strcasestr.c11 char *cp = strcasestr(big, "Gst"); local
12 return cp != big + 2;
/freebsd-11-stable/contrib/ntp/lib/isc/pthreads/include/isc/
H A Dcondition.h32 #define isc_condition_init(cp) \
33 ((pthread_cond_init((cp), NULL) == 0) ? \
37 #define isc_condition_wait(cp, mp) \
38 ((pthread_cond_wait((cp), &((mp)->mutex)) == 0) ? \
41 #define isc_condition_wait(cp, mp) \
42 ((pthread_cond_wait((cp), (mp)) == 0) ? \
46 #define isc_condition_signal(cp) \
47 ((pthread_cond_signal((cp)) == 0) ? \
50 #define isc_condition_broadcast(cp) \
51 ((pthread_cond_broadcast((cp))
[all...]
/freebsd-11-stable/tools/regression/tmpfs/
H A Dt_exec45 cp /bin/cp . || die
47 [ $(md5 cp | cut -d ' ' -f 4) = $(md5 /bin/cp | cut -d ' ' -f 4) ] || \
50 ./cp cp foo || die
/freebsd-11-stable/contrib/amd/libamu/
H A Dhasmntopt.c60 char *cp = *p; local
66 while (*cp && isspace((unsigned char) *cp))
67 cp++;
72 rp = cp;
77 while (*cp && *cp != ',')
78 cp++;
83 if (*cp) {
84 *cp
[all...]
/freebsd-11-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/java_api/
H A Dtst.FunctionLookup.ksh39 java -cp test.jar TestFunctionLookup ./tst.FunctionLookup.exe
H A Dtst.MaxConsumers.ksh39 java -cp test.jar TestMaxConsumers
40 java -DJAVA_DTRACE_MAX_CONSUMERS=-1 -cp test.jar TestMaxConsumers
41 java -DJAVA_DTRACE_MAX_CONSUMERS=0 -cp test.jar TestMaxConsumers
42 java -DJAVA_DTRACE_MAX_CONSUMERS=1 -cp test.jar TestMaxConsumers
43 java -DJAVA_DTRACE_MAX_CONSUMERS=2 -cp test.jar TestMaxConsumers
44 java -DJAVA_DTRACE_MAX_CONSUMERS=7 -cp test.jar TestMaxConsumers
45 java -DJAVA_DTRACE_MAX_CONSUMERS=8 -cp test.jar TestMaxConsumers
46 java -DJAVA_DTRACE_MAX_CONSUMERS=9 -cp test.jar TestMaxConsumers
47 java -DJAVA_DTRACE_MAX_CONSUMERS=19 -cp test.jar TestMaxConsumers
H A Dtst.MultiAggPrinta.ksh38 java -cp test.jar TestMultiAggPrinta tst.printa.d
H A Dtst.ProbeData.ksh38 java -cp test.jar TestProbeData ./tst.ProbeData.exe
H A Dtst.ProbeDescription.ksh38 java -cp test.jar TestProbeDescription syscall:::entry
39 java -cp test.jar TestProbeDescription BEGIN
40 java -cp test.jar TestProbeDescription isdigit entry
41 java -cp test.jar TestProbeDescription genunix isdigit entry
42 java -cp test.jar TestProbeDescription fbt genunix isdigit entry
43 java -cp test.jar TestProbeDescription fbt:genunix:isdigit:entry
44 java -cp test.jar TestProbeDescription syscall::entry
45 java -cp test.jar TestProbeDescription syscall:entry
/freebsd-11-stable/stand/libsa/
H A Din_cksum.c58 u_char *cp = p; local
63 sum += v + *cp++;
66 if (((long)cp & 1) == 0) {
68 sum += *(u_short *)cp;
69 cp += 2;
74 sum += *cp++ << 8;
75 sum += *cp++;
77 sum += *cp++;
78 sum += *cp++ << 8;
84 v = *cp <<
[all...]
/freebsd-11-stable/sys/cddl/contrib/opensolaris/uts/common/sys/
H A Dcallb.h118 * cp - ptr to the callb_cpr_t structure for this kernel thread
130 * Note: lockp is the lock to protect the callb_cpr_t (cp) structure
133 #define CALLB_CPR_INIT(cp, lockp, func, name) { \
136 bzero((caddr_t)(cp), sizeof (callb_cpr_t)); \
137 (cp)->cc_lockp = lockp; \
138 (cp)->cc_id = callb_add(func, (void *)(cp), \
140 cv_init(&(cp)->cc_callb_cv, NULL, CV_DEFAULT, NULL); \
141 cv_init(&(cp)->cc_stop_cv, NULL, CV_DEFAULT, NULL); \
145 #define CALLB_CPR_ASSERT(cp) ASSER
[all...]
/freebsd-11-stable/contrib/tcp_wrappers/
H A Dmisc.c61 char *cp; local
66 for (cp = string; cp && *cp; cp++) {
67 switch (*cp) {
75 if (bracket == 0 && *cp == delimiter) {
76 *cp++ = 0;
77 return cp;
84 if ((cp
97 char *cp = str; local
[all...]
H A Dsetenv.c26 char *cp; local
30 if ((cp = malloc(strlen(name) + strlen(value) + 2)) == 0)
32 sprintf(cp, "%s=%s", name, value);
33 return (putenv(cp));

Completed in 132 milliseconds

1234567891011>>