/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/ |
H A D | chap_ms.c | 70 u_char LANManResp[24]; 71 u_char NTResp[24]; 72 u_char UseNT; /* If 1, ignore the LANMan response field */ 78 u_char PeerChallenge[16]; 79 u_char MustBeZero[8]; 80 u_char NTResp[24]; 81 u_char Flags; /* Should be zero (Win98 sends 04) */ 86 static void ChallengeResponse __P((u_char *, u_char *, u_char *)); 87 static void DesEncrypt __P((u_char *, u_char *, u_char *)); 88 static void MakeKey __P((u_char *, u_char *)); [all …]
|
H A D | fsm.h | 69 u_char id; /* Current id */ 70 u_char reqid; /* Current request id */ 71 u_char seen_ack; /* Have received valid Ack/Nak/Rej to Req */ 107 __P((fsm *, u_char *, int *)); 109 __P((fsm *, u_char *, int)); 111 __P((fsm *, u_char *, int)); 113 __P((fsm *, u_char *, int)); 115 __P((fsm *, u_char *, int *, int)); 127 __P((fsm *, int, int, u_char *, int)); 130 __P((fsm *p, int code, int id, u_char *inp, int len)); [all …]
|
H A D | chap.h | 79 u_char challenge[MAX_CHALLENGE_LENGTH]; /* last challenge string sent */ 80 u_char chal_len; /* challenge length */ 81 u_char chal_id; /* ID of last challenge */ 82 u_char chal_type; /* hash algorithm for challenges */ 83 u_char id; /* Current id */ 90 u_char response[MAX_RESPONSE_LENGTH]; /* Response to send */ 91 u_char resp_length; /* length of response */ 92 u_char resp_id; /* ID for response messages */ 93 u_char resp_type; /* hash algorithm for responses */ 94 u_char stat_length; /* Length of status message (MS-CHAP) */
|
H A D | cbcp.c | 50 static void cbcp_input __P((int unit, u_char *pkt, int len)); 52 static int cbcp_printpkt __P((u_char *pkt, int len, 81 static void cbcp_recvreq __P((cbcp_state *us, u_char *pckt, int len)); 82 static void cbcp_recvack __P((cbcp_state *us, u_char *pckt, int len)); 83 static void cbcp_send __P((cbcp_state *us, int code, u_char *buf, int len)); 134 u_char *inpacket; 137 u_char *inp; 138 u_char code, id; 216 u_char *p; in cbcp_printpkt() 222 u_char *pstart, cichar; [all …]
|
H A D | chap.c | 75 static void ChapInput __P((int, u_char *, int)); 77 static int ChapPrintPkt __P((u_char *, int, 105 static void ChapReceiveChallenge __P((chap_state *, u_char *, int, int)); 107 static void ChapReceiveResponse __P((chap_state *, u_char *, int, int)); 108 static void ChapReceiveSuccess __P((chap_state *, u_char *, int, int)); 109 static void ChapReceiveFailure __P((chap_state *, u_char *, int, int)); 360 u_char *inpacket; 364 u_char *inp; 365 u_char code, id; 422 u_char *inp; [all …]
|
H A D | upap.c | 67 static void upap_input __P((int, u_char *, int)); 69 static int upap_printpkt __P((u_char *, int, 96 static void upap_rauthreq __P((upap_state *, u_char *, int, int)); 97 static void upap_rauthack __P((upap_state *, u_char *, int, int)); 98 static void upap_rauthnak __P((upap_state *, u_char *, int, int)); 328 u_char *inpacket; 332 u_char *inp; 333 u_char code, id; 384 u_char *inp; 388 u_char ruserlen, rpasswdlen; [all …]
|
H A D | pppd.h | 197 extern u_char outpacket_buf[]; /* Buffer for outgoing packets */ 222 extern u_char nak_buffer[]; /* where we construct a nak packet */ 223 extern u_char inpacket_buf[]; /* buffer for incoming packet */ 356 void (*input) __P((int unit, u_char *pkt, int len)); 368 int (*printpkt) __P((u_char *pkt, int len, 372 void (*datainput) __P((int unit, u_char *pkt, int len)); 382 int (*active_pkt) __P((u_char *pkt, int len)); 446 extern void log_packet __P((u_char *, int, const char *, int)); 551 extern void output __P((int, u_char *, int)); /* Output a PPP packet */ 556 extern int read_packet __P((u_char *)); /* Read PPP packet */ [all …]
|
/illumos-gate/usr/src/lib/libresolv/ |
H A D | crossl.h | 27 extern int dn_comp(u_char *, u_char *, int, u_char **, u_char **); 28 extern int dn_expand(u_char *, u_char *, u_char *, u_char *, int); 29 extern int dn_skipname(u_char *, u_char *); 34 extern int res_query(char *, int, int, u_char *, int); 35 extern int res_querydomain(char *, char *, int, int, u_char *, int); 36 extern int res_search(char *, int, int, u_char *, int); 39 extern void putlong(u_long, u_char *); 40 extern void putshort(u_short, u_char *);
|
H A D | res_comp.c | 44 static int dn_find(u_char *exp_dn, u_char *msg, u_char **dnptrs, 45 u_char **lastdnptr); 57 u_char *msg, *eomorig, *comp_dn, *exp_dn; in dn_expand() 60 register u_char *cp, *dn; 62 u_char *eom; 137 u_char *exp_dn, *comp_dn; in dn_comp() 139 u_char **dnptrs, **lastdnptr; 141 register u_char *cp, *dn; 143 u_char **cpp, **lpp, *sp, *eob; 144 u_char *msg; [all …]
|
/illumos-gate/usr/src/boot/include/netinet/ |
H A D | if_ether.h | 51 (enaddr)[3] = ((const u_char *)ipaddr)[1] & 0x7f; \ 52 (enaddr)[4] = ((const u_char *)ipaddr)[2]; \ 53 (enaddr)[5] = ((const u_char *)ipaddr)[3]; \ 66 (enaddr)[2] = ((const u_char *)ip6addr)[12]; \ 67 (enaddr)[3] = ((const u_char *)ip6addr)[13]; \ 68 (enaddr)[4] = ((const u_char *)ip6addr)[14]; \ 69 (enaddr)[5] = ((const u_char *)ip6addr)[15]; \ 81 u_char arp_sha[ETHER_ADDR_LEN]; /* sender hardware address */ 82 u_char arp_spa[4]; /* sender protocol address */ 83 u_char arp_tha[ETHER_ADDR_LEN]; /* target hardware address */ [all …]
|
H A D | ip.h | 51 u_char ip_hl:4, /* header length */ 55 u_char ip_v:4, /* version */ 58 u_char ip_tos; /* type of service */ 66 u_char ip_ttl; /* time to live */ 67 u_char ip_p; /* protocol */ 167 u_char ipt_code; /* IPOPT_TS */ 168 u_char ipt_len; /* size of structure (variable) */ 169 u_char ipt_ptr; /* index of current entry */ 171 u_char ipt_flg:4, /* flags, see below */ 175 u_char ipt_oflw:4, /* overflow counter */ [all …]
|
/illumos-gate/usr/src/lib/libresolv/arpa/ |
H A D | nameser.h | 151 u_char qr:1; /* response flag */ 152 u_char opcode:4; /* purpose of message */ 153 u_char aa:1; /* authoritive answer */ 154 u_char tc:1; /* truncated message */ 155 u_char rd:1; /* recursion desired */ 157 u_char ra:1; /* recursion available */ 158 u_char pr:1; /* primary server required (non standard) */ 159 u_char unused:2; /* unused bits */ 160 u_char rcode:4; /* response code */ 165 u_char rd:1; /* recursion desired */ [all …]
|
/illumos-gate/usr/src/lib/libresolv2/common/nameser/ |
H A D | ns_name.c | 70 static int dn_find(const u_char *, const u_char *, 71 const u_char * const *, 72 const u_char * const *); 76 static int labellen(const u_char *); 93 ns_name_ntop(const u_char *src, char *dst, size_t dstsiz) in ns_name_ntop() 95 const u_char *cp; in ns_name_ntop() 97 u_char c; in ns_name_ntop() 197 ns_name_pton(const char *src, u_char *dst, size_t dstsiz) { in ns_name_pton() 214 ns_name_pton2(const char *src, u_char *dst, size_t dstsiz, size_t *dstlen) { in ns_name_pton2() 215 u_char *label, *bp, *eom; in ns_name_pton2() [all …]
|
H A D | ns_sign.c | 72 ns_sign(u_char *msg, int *msglen, int msgsize, int error, void *k, in ns_sign() 73 const u_char *querysig, int querysiglen, u_char *sig, int *siglen, in ns_sign() 82 ns_sign2(u_char *msg, int *msglen, int msgsize, int error, void *k, in ns_sign2() 83 const u_char *querysig, int querysiglen, u_char *sig, int *siglen, in ns_sign2() 84 time_t in_timesigned, u_char **dnptrs, u_char **lastdnptr) in ns_sign2() 88 u_char *cp, *eob; in ns_sign2() 89 u_char *lenp; in ns_sign2() 90 u_char *alg; in ns_sign2() 93 u_char name[NS_MAXCDNAME]; in ns_sign2() 107 (const u_char **)dnptrs, in ns_sign2() [all …]
|
/illumos-gate/usr/src/lib/libresolv2/common/resolv/ |
H A D | res_comp.c | 106 dn_expand(const u_char *msg, const u_char *eom, const u_char *src, in dn_expand() 123 dn_comp(const char *src, u_char *dst, int dstsiz, in dn_comp() 124 u_char **dnptrs, u_char **lastdnptr) in dn_comp() 127 (const u_char **)dnptrs, in dn_comp() 128 (const u_char **)lastdnptr)); in dn_comp() 136 dn_skipname(const u_char *ptr, const u_char *eom) { in dn_skipname() 137 const u_char *saveptr = ptr; in dn_skipname() 274 void __putlong(u_int32_t src, u_char *dst) { ns_put32(src, dst); } in __putlong() 275 void __putshort(u_int16_t src, u_char *dst) { ns_put16(src, dst); } in __putshort() 277 u_int32_t _getlong(const u_char *src) { return (ns_get32(src)); } in _getlong() [all …]
|
H A D | res_data.c | 140 p_query(const u_char *msg) { in p_query() 145 fp_query(const u_char *msg, FILE *file) { in fp_query() 150 fp_nquery(const u_char *msg, int len, FILE *file) { in fp_nquery() 161 const u_char *data, /*!< resource record data */ in res_mkquery() 163 const u_char *newrr_in, /*!< new rr for modify or append */ in res_mkquery() 164 u_char *buf, /*!< buffer to put query */ in res_mkquery() 177 res_mkupdate(ns_updrec *rrecp_in, u_char *buf, int buflen) { in res_mkupdate() 189 u_char *answer, /*!< buffer to put answer */ in res_query() 215 res_send(const u_char *buf, int buflen, u_char *ans, int anssiz) { in res_send() 225 res_sendsigned(const u_char *buf, int buflen, ns_tsig_key *key, in res_sendsigned() [all …]
|
/illumos-gate/usr/src/lib/libresolv2/include/isc/ |
H A D | dst.h | 65 const u_char *, /*!< data to be signed */ 67 u_char *, /*!< buffer to write signature to */ 72 const u_char *, /*!< data to be verified */ 74 const u_char *, /*!< buffer containing signature */ 83 const u_char *, /*!< KEY RDATA */ 86 u_char *, /*!< output buffer */ 92 const u_char *, /*!< key in dns wire fmt */ 94 int dst_key_to_buffer(DST_KEY *, u_char *, int); 109 u_int16_t dst_s_dns_key_id(const u_char *, const int); 110 u_int16_t dst_s_id_calc(const u_char *, const int);
|
/illumos-gate/usr/src/uts/sun4u/sunfire/io/ |
H A D | jtag.c | 158 typedef u_char jtag_ring; /* format is bbbb rrrr in binary */ 230 u_char ir_len; /* number of bits in instruction register */ 231 u_char dr_len; /* number of bits in DR for init/dump */ 235 u_char *init_pdesc; /* initialization patch descriptors */ 236 u_char *fmt_desc; /* reformat descriptor */ 377 static u_int jtag_bf_extract(u_char *s, int lsb, int msb); 378 static void jtag_bf_insert(u_char *s, int lsb, int msb, int value); 379 static void jtag_bf_zero(u_char *s, int nbits); 380 static int jtag_bf_cmp(u_char *s1, u_char *s2, int nbits); 387 static int tap_shift_multiple(volatile u_int *, u_char *, int, u_char *); [all …]
|
/illumos-gate/usr/src/lib/libresolv2/common/bsd/ |
H A D | strcasecmp.c | 53 static const u_char charmap[] = { 90 const u_char *cm = charmap, in strcasecmp() 91 *us1 = (const u_char *)s1, in strcasecmp() 92 *us2 = (const u_char *)s2; in strcasecmp() 103 const u_char *cm = charmap, in strncasecmp() 104 *us1 = (const u_char *)s1, in strncasecmp() 105 *us2 = (const u_char *)s2; in strncasecmp()
|
/illumos-gate/usr/src/cmd/ipf/lib/ |
H A D | inet_addr.c | 80 #define ISALNUM(x) isalnum((u_char)(x)) 81 #define ISALPHA(x) isalpha((u_char)(x)) 82 #define ISASCII(x) isascii((u_char)(x)) 83 #define ISDIGIT(x) isdigit((u_char)(x)) 84 #define ISPRINT(x) isprint((u_char)(x)) 85 #define ISSPACE(x) isspace((u_char)(x)) 86 #define ISUPPER(x) isupper((u_char)(x)) 87 #define ISXDIGIT(x) isxdigit((u_char)(x)) 88 #define ISLOWER(x) islower((u_char)(x))
|
/illumos-gate/usr/src/lib/libresolv2/common/dst/ |
H A D | support.c | 77 dst_s_calculate_bits(const u_char *str, const int max_bits) in dst_s_calculate_bits() 79 const u_char *p = str; in dst_s_calculate_bits() 80 u_char i, j = 0x80; in dst_s_calculate_bits() 95 dst_s_id_calc(const u_char *key, const int keysize) in dst_s_id_calc() 98 const u_char *kp = key; in dst_s_id_calc() 124 dst_s_dns_key_id(const u_char *dns_key_rdata, const int rdata_len) in dst_s_dns_key_id() 131 return dst_s_get_int16((const u_char *) in dst_s_dns_key_id() 153 dst_s_get_int16(const u_char *buf) in dst_s_get_int16() 172 dst_s_get_int32(const u_char *buf) in dst_s_get_int32() 322 dst_s_dump(const int mode, const u_char *data, const int size, in dst_s_dump() [all …]
|
/illumos-gate/usr/src/lib/libresolv2/common/inet/ |
H A D | inet_cidr_pton.c | 45 static int inet_cidr_pton_ipv4 __P((const char *src, u_char *dst, 47 static int inet_cidr_pton_ipv6 __P((const char *src, u_char *dst, 85 inet_cidr_pton_ipv4(const char *src, u_char *dst, int *pbits, int ipv6) { in inet_cidr_pton_ipv4() 86 const u_char *odst = dst; in inet_cidr_pton_ipv4() 103 *dst++ = (u_char) tmp; in inet_cidr_pton_ipv4() 152 inet_cidr_pton_ipv6(const char *src, u_char *dst, int *pbits) { in inet_cidr_pton_ipv6() 155 u_char tmp[NS_IN6ADDRSZ], *tp, *endp, *colonp; in inet_cidr_pton_ipv6() 197 *tp++ = (u_char) (val >> 8) & 0xff; in inet_cidr_pton_ipv6() 198 *tp++ = (u_char) val & 0xff; in inet_cidr_pton_ipv6() 220 *tp++ = (u_char) (val >> 8) & 0xff; in inet_cidr_pton_ipv6() [all …]
|
/illumos-gate/usr/src/boot/common/ |
H A D | isapnp.h | 248 u_char csn; /* assigned Card Select Number */ 249 u_char ldn; /* Logical Device Number */ 250 u_char enable; /* pnp enable */ 251 u_char override; /* override bios parms (in userconfig) */ 252 u_char irq[2]; /* IRQ Number */ 253 u_char irq_type[2]; /* IRQ Type */ 254 u_char drq[2]; 277 u_char checksum;
|
/illumos-gate/usr/src/test/libc-tests/tests/qsort/ |
H A D | merge.c | 54 static void setup(u_char *, u_char *, size_t, size_t, int (*)()); 55 static void insertionsort(u_char *, size_t, size_t, int (*)()); 58 #define PSIZE sizeof(u_char *) 83 #define EVAL(p) (u_char **) \ 84 ((u_char *)0 + \ 85 (((u_char *)p + PSIZE - 1 - (u_char *) 0) & ~(PSIZE - 1))) 96 u_char *f1, *f2, *t, *b, *tp2, *q, *l1, *l2; in mergesort() 97 u_char *list2, *list1, *p2, *p, *last, **p1; in mergesort() 251 setup(u_char *list1, u_char *list2, size_t n, size_t size, in setup() 255 u_char tmp, *f1, *f2, *s, *l2, *last, *p2; in setup() [all …]
|
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/libdb2/btree/ |
H A D | btree.h | 138 u_char flags; 148 LALIGN(sizeof(u_int32_t) + sizeof(db_pgno_t) + sizeof(u_char) + (len)) 156 *(u_char *)p = flags; \ 157 p += sizeof(u_char); \ 188 u_char flags; /* P_BIGDATA, P_BIGKEY */ 201 LALIGN(sizeof(u_int32_t) + sizeof(u_int32_t) + sizeof(u_char) + \ 210 *(u_char *)p = flags; \ 211 p += sizeof(u_char); \ 220 u_char flags; /* P_BIGDATA */ 233 LALIGN(sizeof(u_int32_t) + sizeof(u_char) + (dsize)) [all …]
|