/freebsd-10.1-release/libexec/tftpd/ |
H A D | tftp-io.h | 38 void send_error(int peer, int); 39 int send_wrq(int peer, char *, char *); 40 int send_rrq(int peer, char *, char *); 41 int send_oack(int peer); 42 int send_ack(int peer, unsigned short); 43 int send_data(int peer, uint16_t, char *, int); 44 int receive_packet(int peer, char *, int, struct sockaddr_storage *, int);
|
H A D | tftp-options.h | 34 uint16_t make_options(int peer, char *buffer, uint16_t size); 35 int parse_options(int peer, char *buffer, uint16_t size); 38 int option_tsize(int peer, struct tftphdr *, int, struct stat *); 39 int option_timeout(int peer); 40 int option_blksize(int peer); 41 int option_blksize2(int peer); 42 int option_rollover(int peer); 51 int (*o_handler)(int peer);
|
H A D | tftp-transfer.h | 29 void tftp_send(int peer, uint16_t *block, struct tftp_stats *tp); 30 void tftp_receive(int peer, uint16_t *block, struct tftp_stats *tp,
|
/freebsd-10.1-release/crypto/heimdal/lib/hx509/ |
H A D | peer.c | 48 * Allocate a new peer info structure an init it to default values. 51 * @param peer return an allocated peer, free with hx509_peer_info_free(). 59 hx509_peer_info_alloc(hx509_context context, hx509_peer_info *peer) argument 61 *peer = calloc(1, sizeof(**peer)); 62 if (*peer == NULL) { 71 free_cms_alg(hx509_peer_info peer) argument 73 if (peer->val) { 75 for (i = 0; i < peer 92 hx509_peer_info_free(hx509_peer_info peer) argument 115 hx509_peer_info_set_cert(hx509_peer_info peer, hx509_cert cert) argument 137 hx509_peer_info_add_cms_alg(hx509_context context, hx509_peer_info peer, const AlgorithmIdentifier *val) argument 172 hx509_peer_info_set_cms_algs(hx509_context context, hx509_peer_info peer, const AlgorithmIdentifier *val, size_t len) argument [all...] |
/freebsd-10.1-release/contrib/ntp/ntpd/ |
H A D | ntp_peer.c | 2 * ntp_peer.c - management of data maintained for peer associations 22 * peer->mode | UNSPEC ACTIVE PASSIVE CLIENT SERVER BCAST 33 * a peer in CLIENT mode, but we that is a special case and we check for 40 #define NO_PEER 0 /* action when no peer is found */ 44 /* peer { UNSPEC, ACTIVE, PASSIVE, CLIENT, SERVER, BCAST } */ 64 * These routines manage the allocation of memory to peer structures 69 * - peer_adr_hash is an array of lists indexed by hashed peer address. 72 * They also maintain a free list of peer structures, peer_free. 75 * peer structures in the peer lis 209 struct peer *peer; local 766 struct peer * peer; local 1024 struct peer *peer; local 1040 struct peer *peer; local 1068 struct peer *peer; local [all...] |
H A D | refclock_local.c | 81 static int local_start (int, struct peer *); 82 static void local_poll (int, struct peer *); 109 struct peer *peer 114 pp = peer->procptr; 119 peer->precision = sys_precision; 121 peer->stratum = STRATUM; 145 struct peer *peer 156 if (!(sys_peer == NULL || sys_peer == peer)) [all...] |
H A D | refclock_atom.c | 57 * "mitigation rulse and the prefer peer" page. However, there is an 59 * to these rules, it is acrive only if (a) a prefer peer other than 95 static int atom_start (int, struct peer *); 96 static void atom_shutdown (int, struct peer *); 97 static void atom_poll (int, struct peer *); 98 static void atom_timer (int, struct peer *); 120 struct peer *peer /* peer structure pointer */ 130 pp = peer [all...] |
H A D | refclock_heath.c | 189 static int heath_start (int, struct peer *); 190 static void heath_shutdown (int, struct peer *); 192 static void heath_poll (int, struct peer *); 214 struct peer *peer 225 fd = refclock_open(device, speed[peer->ttl & 0x3], 229 pp = peer->procptr; 231 pp->io.srcclock = peer; 243 peer->precision = PRECISION; 256 struct peer *pee 276 struct peer *peer; local [all...] |
H A D | ntp_proto.c | 76 * peer_select groups statistics for a peer used by clock_select() and 80 struct peer * peer; member in struct:peer_select_tag 98 struct peer *sys_peer; /* current peer */ 185 enum nak_error_codes valid_NAK(struct peer *peer, struct recvbuf *rbufp, u_char hismode); 186 static double root_distance (struct peer *); 188 static void peer_xmit (struct peer *); 190 static void pool_xmit (struct peer *); 276 valid_NAK( struct peer *peer, struct recvbuf *rbufp, u_char hismode ) argument 580 register struct peer *peer; /* peer structure pointer */ local 2134 process_packet( register struct peer *peer, register struct pkt *pkt, u_int len ) argument 2650 poll_update( struct peer *peer, u_char mpoll ) argument 2766 peer_clear( struct peer *peer, const char *ident ) argument 2862 clock_filter( struct peer *peer, double sample_offset, double sample_delay, double sample_disp ) argument 3050 struct peer *peer; local [all...] |
H A D | refclock_pst.c | 94 static int pst_start (int, struct peer *); 95 static void pst_shutdown (int, struct peer *); 97 static void pst_poll (int, struct peer *); 119 struct peer *peer 139 pp = peer->procptr; 141 pp->io.srcclock = peer; 155 peer->precision = PRECISION; 168 struct peer *peer 193 struct peer *peer; local [all...] |
H A D | refclock_zyfer.c | 102 static int zyfer_start (int, struct peer *); 103 static void zyfer_shutdown (int, struct peer *); 105 static void zyfer_poll (int, struct peer *); 127 struct peer *peer 151 pp = peer->procptr; 153 pp->io.srcclock = peer; 167 peer->precision = PRECISION; 183 struct peer *peer 208 struct peer *peer; local [all...] |
H A D | refclock_arbiter.c | 112 #define COMMAND_HALT_BCAST ( (peer->MODE % 2) ? "O0" : "B0" ) 113 #define COMMAND_START_BCAST ( (peer->MODE % 2) ? "O5" : "B5" ) 129 static int arb_start (int, struct peer *); 130 static void arb_shutdown (int, struct peer *); 132 static void arb_poll (int, struct peer *); 154 struct peer *peer 174 pp = peer->procptr; 176 pp->io.srcclock = peer; 190 peer 239 struct peer *peer; local [all...] |
H A D | refclock_wwvb.c | 147 static int wwvb_start (int, struct peer *); 148 static void wwvb_shutdown (int, struct peer *); 150 static void wwvb_poll (int, struct peer *); 151 static void wwvb_timer (int, struct peer *); 154 struct refclockstat *, struct peer *); 180 struct peer *peer 200 pp = peer->procptr; 202 pp->io.srcclock = peer; 216 peer 254 struct peer *peer; local [all...] |
H A D | refclock_pcf.c | 41 static int pcf_start (int, struct peer *); 42 static void pcf_shutdown (int, struct peer *); 43 static void pcf_poll (int, struct peer *); 65 struct peer *peer 89 pp = peer->procptr; 91 pp->io.srcclock = peer; 98 peer->precision = PRECISION; 115 struct peer *peer [all...] |
H A D | refclock_true.c | 190 static int true_start (int, struct peer *); 191 static void true_shutdown (int, struct peer *); 193 static void true_poll (int, struct peer *); 194 static void true_send (struct peer *, const char *); 195 static void true_doevent (struct peer *, enum true_event); 220 true_debug(struct peer *peer, const char *fmt, ...) argument 228 pp = peer->procptr; 272 struct peer *peer 359 struct peer *peer; local 631 true_send( struct peer *peer, const char *cmd ) argument 655 true_doevent( struct peer *peer, enum true_event event ) argument [all...] |
H A D | refclock_hopfpci.c | 95 static int hopfpci_start (int, struct peer *); 96 static void hopfpci_shutdown (int, struct peer *); 97 static void hopfpci_poll (int unit, struct peer *); 118 struct peer *peer 141 pp = peer->procptr; 143 pp->io.srcclock = peer; 151 * Initialize miscellaneous peer variables 154 peer->precision = PRECISION; 168 struct peer *pee [all...] |
H A D | refclock_tpro.c | 45 static int tpro_start (int, struct peer *); 46 static void tpro_shutdown (int, struct peer *); 47 static void tpro_poll (int unit, struct peer *); 69 struct peer *peer 91 pp = peer->procptr; 93 pp->io.srcclock = peer; 99 * Initialize miscellaneous peer variables 101 peer->precision = PRECISION; 114 struct peer *pee [all...] |
H A D | refclock_jjy.c | 298 static int jjy_start (int, struct peer *); 299 static int jjy_start_tristate_jjy01 (int, struct peer *, struct jjyunit *); 300 static int jjy_start_cdex_jst2000 (int, struct peer *, struct jjyunit *); 301 static int jjy_start_echokeisokuki_lt2000 (int, struct peer *, struct jjyunit *); 302 static int jjy_start_citizentic_jjy200 (int, struct peer *, struct jjyunit *); 303 static int jjy_start_tristate_gpsclock01 (int, struct peer *, struct jjyunit *); 304 static int jjy_start_seiko_tsys_tdc_300 (int, struct peer *, struct jjyunit *); 305 static int jjy_start_telephone (int, struct peer *, struct jjyunit *); 307 static void jjy_shutdown (int, struct peer *); 309 static void jjy_poll (int, struct peer *); 590 struct peer *peer; local 1004 jjy_synctime( struct peer *peer, struct refclockproc *pp, struct jjyunit *up ) argument 1139 jjy_start_tristate_jjy01( int unit, struct peer *peer, struct jjyunit *up ) argument 1159 struct peer *peer; local 1430 jjy_start_cdex_jst2000( int unit, struct peer *peer, struct jjyunit *up ) argument 1456 struct peer *peer ; local 1596 jjy_start_echokeisokuki_lt2000( int unit, struct peer *peer, struct jjyunit *up ) argument 1619 struct peer *peer; local 1811 jjy_start_citizentic_jjy200( int unit, struct peer *peer, struct jjyunit *up ) argument 1832 struct peer *peer; local 1992 jjy_start_tristate_gpsclock01( int unit, struct peer *peer, struct jjyunit *up ) argument 2016 struct peer *peer; local 2313 jjy_start_seiko_tsys_tdc_300( int unit, struct peer *peer, struct jjyunit *up ) argument 2337 struct peer *peer; local 2687 jjy_start_telephone( int unit, struct peer *peer, struct jjyunit *up ) argument 2804 struct peer *peer; local 2946 teljjy_control( struct peer *peer, struct refclockproc *pp, struct jjyunit *up ) argument 2996 teljjy_setDelay( struct peer *peer, struct jjyunit *up ) argument 3031 teljjy_getDelay( struct peer *peer, struct jjyunit *up ) argument 3119 teljjy_idle_ignore( struct peer *peer, struct refclockproc *pp, struct jjyunit *up ) argument 3130 teljjy_idle_dialout( struct peer *peer, struct refclockproc *pp, struct jjyunit *up ) argument 3143 teljjy_dial_ignore( struct peer *peer, struct refclockproc *pp, struct jjyunit *up ) argument 3154 teljjy_dial_login( struct peer *peer, struct refclockproc *pp, struct jjyunit *up ) argument 3165 teljjy_dial_disc( struct peer *peer, struct refclockproc *pp, struct jjyunit *up ) argument 3176 teljjy_login_ignore( struct peer *peer, struct refclockproc *pp, struct jjyunit *up ) argument 3187 teljjy_login_disc( struct peer *peer, struct refclockproc *pp, struct jjyunit *up ) argument 3198 teljjy_login_conn( struct peer *peer, struct refclockproc *pp, struct jjyunit *up ) argument 3219 teljjy_login_login( struct peer *peer, struct refclockproc *pp, struct jjyunit *up ) argument 3244 teljjy_login_silent( struct peer *peer, struct refclockproc *pp, struct jjyunit *up ) argument 3263 teljjy_login_error( struct peer *peer, struct refclockproc *pp, struct jjyunit *up ) argument 3274 teljjy_conn_ignore( struct peer *peer, struct refclockproc *pp, struct jjyunit *up ) argument 3285 teljjy_conn_disc( struct peer *peer, struct refclockproc *pp, struct jjyunit *up ) argument 3296 teljjy_conn_send( struct peer *peer, struct refclockproc *pp, struct jjyunit *up ) argument 3382 teljjy_conn_data( struct peer *peer, struct refclockproc *pp, struct jjyunit *up ) argument 3533 teljjy_conn_silent( struct peer *peer, struct refclockproc *pp, struct jjyunit *up ) argument 3571 teljjy_conn_error( struct peer *peer, struct refclockproc *pp, struct jjyunit *up ) argument 3582 teljjy_bye_ignore( struct peer *peer, struct refclockproc *pp, struct jjyunit *up ) argument 3593 teljjy_bye_disc( struct peer *peer, struct refclockproc *pp, struct jjyunit *up ) argument 3604 teljjy_bye_modem( struct peer *peer, struct refclockproc *pp, struct jjyunit *up ) argument 3822 struct peer *peer; local 3908 modem_control( struct peer *peer, struct refclockproc *pp, struct jjyunit *up ) argument 3947 modem_disc_ignore( struct peer *peer, struct refclockproc *pp, struct jjyunit *up ) argument 3958 modem_disc_init( struct peer *peer, struct refclockproc *pp, struct jjyunit *up ) argument 3969 modem_init_ignore( struct peer *peer, struct refclockproc *pp, struct jjyunit *up ) argument 3980 modem_init_start( struct peer *peer, struct refclockproc *pp, struct jjyunit *up ) argument 3999 modem_init_resp00( struct peer *peer, struct refclockproc *pp, struct jjyunit *up ) argument 4107 modem_init_resp04( struct peer *peer, struct refclockproc *pp, struct jjyunit *up ) argument 4118 modem_init_disc( struct peer *peer, struct refclockproc *pp, struct jjyunit *up ) argument 4134 modem_dial_ignore( struct peer *peer, struct refclockproc *pp, struct jjyunit *up ) argument 4145 modem_dial_dialout( struct peer *peer, struct refclockproc *pp, struct jjyunit *up ) argument 4180 modem_dial_escape( struct peer *peer, struct refclockproc *pp, struct jjyunit *up ) argument 4196 modem_dial_connect( struct peer *peer, struct refclockproc *pp, struct jjyunit *up ) argument 4207 modem_dial_disc( struct peer *peer, struct refclockproc *pp, struct jjyunit *up ) argument 4225 modem_conn_ignore( struct peer *peer, struct refclockproc *pp, struct jjyunit *up ) argument 4236 modem_conn_escape( struct peer *peer, struct refclockproc *pp, struct jjyunit *up ) argument 4247 modem_esc_ignore( struct peer *peer, struct refclockproc *pp, struct jjyunit *up ) argument 4258 modem_esc_escape( struct peer *peer, struct refclockproc *pp, struct jjyunit *up ) argument 4283 modem_esc_data( struct peer *peer, struct refclockproc *pp, struct jjyunit *up ) argument 4296 modem_esc_silent( struct peer *peer, struct refclockproc *pp, struct jjyunit *up ) argument 4324 modem_esc_disc( struct peer *peer, struct refclockproc *pp, struct jjyunit *up ) argument 4356 jjy_write_clockstats( struct peer *peer, int iMark, const char *pData ) argument [all...] |
H A D | refclock_mx4200.c | 168 static int mx4200_start (int, struct peer *); 169 static void mx4200_shutdown (int, struct peer *); 171 static void mx4200_poll (int, struct peer *); 173 static char * mx4200_parse_t (struct peer *); 174 static char * mx4200_parse_p (struct peer *); 175 static char * mx4200_parse_s (struct peer *); 177 static int mx4200_config (struct peer *); 178 static void mx4200_ref (struct peer *); 179 static void mx4200_send (struct peer *, char *, ...) 183 static void mx4200_debug (struct peer *, cha 666 struct peer *peer; local 1558 mx4200_debug(struct peer *peer, char *fmt, ...) argument 1587 mx4200_send(struct peer *peer, char *fmt, ...) argument [all...] |
H A D | refclock_hpgps.c | 128 static int hpgps_start (int, struct peer *); 129 static void hpgps_shutdown (int, struct peer *); 131 static void hpgps_poll (int, struct peer *); 153 struct peer *peer 170 if (1 == peer->ttl) { 181 pp = peer->procptr; 183 pp->io.srcclock = peer; 197 peer->precision = PRECISION; 213 refclock_report(peer, CEVNT_FAUL 250 struct peer *peer; local [all...] |
H A D | refclock_tt560.c | 50 static int tt560_start (int, struct peer *); 51 static void tt560_shutdown (int, struct peer *); 52 static void tt560_poll (int unit, struct peer *); 74 struct peer *peer 115 pp = peer->procptr; 117 pp->io.srcclock = (caddr_t)peer; 123 * Initialize miscellaneous peer variables 125 peer->precision = PRECISION; 138 struct peer *pee [all...] |
/freebsd-10.1-release/usr.bin/tftp/ |
H A D | tftp.h | 33 void recvfile(int peer, char *port, int fd, char *name, char *mode); 34 void xmitfile(int peer, char *port, int fd, char *name, char *mode);
|
/freebsd-10.1-release/contrib/wpa/src/rsn_supp/ |
H A D | tdls.c | 81 static void wpa_tdls_peer_free(struct wpa_sm *sm, struct wpa_tdls_peer *peer); 144 static int wpa_tdls_del_key(struct wpa_sm *sm, struct wpa_tdls_peer *peer) argument 146 if (wpa_sm_set_key(sm, WPA_ALG_NONE, peer->addr, 157 static int wpa_tdls_set_key(struct wpa_sm *sm, struct wpa_tdls_peer *peer) argument 165 switch (peer->cipher) { 180 if (wpa_sm_set_key(sm, alg, peer->addr, -1, 1, 181 rsc, sizeof(rsc), peer->tpk.tk, key_len) < 0) { 203 struct wpa_tdls_peer *peer; local 223 for (peer = sm->tdls; peer; pee 259 wpa_tdls_do_teardown(struct wpa_sm *sm, struct wpa_tdls_peer *peer, u16 reason_code, int free_peer) argument 284 struct wpa_tdls_peer *peer = timeout_ctx; local 327 wpa_tdls_tpk_retry_timeout_cancel(struct wpa_sm *sm, struct wpa_tdls_peer *peer, u8 action_code) argument 353 wpa_tdls_generate_tpk(struct wpa_tdls_peer *peer, const u8 *own_addr, const u8 *bssid) argument 527 wpa_supplicant_verify_tdls_mic(u8 trans_seq, struct wpa_tdls_peer *peer, const u8 *lnkid, const u8 *timeoutie, const struct wpa_tdls_ftie *ftie) argument 556 wpa_supplicant_verify_tdls_mic_teardown( u8 trans_seq, u16 rcode, u8 dtoken, struct wpa_tdls_peer *peer, const u8 *lnkid, const struct wpa_tdls_ftie *ftie) argument 582 struct wpa_tdls_peer *peer = timeout_ctx; local 605 wpa_tdls_peer_free(struct wpa_sm *sm, struct wpa_tdls_peer *peer) argument 623 wpa_tdls_linkid(struct wpa_sm *sm, struct wpa_tdls_peer *peer, struct wpa_tdls_lnkid *lnkid) argument 641 struct wpa_tdls_peer *peer; local 731 struct wpa_tdls_peer *peer; local 759 struct wpa_tdls_peer *peer; local 776 struct wpa_tdls_peer *peer = NULL; local 873 struct wpa_tdls_peer *peer; local 890 wpa_tdls_send_tpk_m1(struct wpa_sm *sm, struct wpa_tdls_peer *peer) argument 1068 wpa_tdls_send_tpk_m2(struct wpa_sm *sm, const unsigned char *src_addr, u8 dtoken, struct wpa_tdls_lnkid *lnkid, const struct wpa_tdls_peer *peer) argument 1151 wpa_tdls_send_tpk_m3(struct wpa_sm *sm, const unsigned char *src_addr, u8 dtoken, struct wpa_tdls_lnkid *lnkid, const struct wpa_tdls_peer *peer) argument 1232 wpa_tdls_send_discovery_response(struct wpa_sm *sm, struct wpa_tdls_peer *peer, u8 dialog_token) argument 1250 struct wpa_tdls_peer *peer; local 1305 copy_supp_rates(const struct wpa_eapol_ie_parse *kde, struct wpa_tdls_peer *peer) argument 1334 struct wpa_tdls_peer *peer; local 1655 wpa_tdls_enable_link(struct wpa_sm *sm, struct wpa_tdls_peer *peer) argument 1689 struct wpa_tdls_peer *peer; local 1897 struct wpa_tdls_peer *peer; local 2051 struct wpa_tdls_peer *peer; local 2101 struct wpa_tdls_peer *peer; local 2237 struct wpa_tdls_peer *peer, *tmp; local [all...] |
/freebsd-10.1-release/contrib/wpa/wpa_supplicant/ |
H A D | ibss_rsn.c | 24 struct ibss_rsn_peer *peer; local 26 for (peer = ibss_rsn->peers; peer; peer = peer->next) 27 if (os_memcmp(addr, peer->addr, ETH_ALEN) == 0) 29 return peer; 33 static void ibss_rsn_free(struct ibss_rsn_peer *peer) argument 35 wpa_auth_sta_deinit(peer->auth); 36 wpa_sm_deinit(peer 43 struct ibss_rsn_peer *peer = ctx; local 50 struct ibss_rsn_peer *peer = ctx; local 58 struct ibss_rsn_peer *peer = ctx; local 103 struct ibss_rsn_peer *peer = ctx; local 121 struct ibss_rsn_peer *peer = ctx; local 150 struct ibss_rsn_peer *peer = ctx; local 177 ibss_rsn_supp_init(struct ibss_rsn_peer *peer, const u8 *own_addr, const u8 *psk) argument 304 struct ibss_rsn_peer *peer; local 317 ibss_set_sta_authorized(struct ibss_rsn *ibss_rsn, struct ibss_rsn_peer *peer, int authorized) argument 347 struct ibss_rsn_peer *peer = ibss_rsn_get_peer(ibss_rsn, addr); local 402 ibss_rsn_auth_init(struct ibss_rsn *ibss_rsn, struct ibss_rsn_peer *peer) argument 435 struct ibss_rsn_peer *peer; local 477 struct ibss_rsn_peer *peer, *prev; local 535 struct ibss_rsn_peer *peer, *prev; local 596 ibss_rsn_process_rx_eapol(struct ibss_rsn *ibss_rsn, struct ibss_rsn_peer *peer, const u8 *buf, size_t len) argument 627 struct ibss_rsn_peer *peer; local [all...] |
/freebsd-10.1-release/contrib/bsnmp/snmpd/ |
H A D | trans_lsock.c | 105 * one and only peer. 112 struct lsock_peer *peer = NULL; local 151 if ((peer = malloc(sizeof(*peer))) == NULL) { 155 memset(peer, 0, sizeof(*peer)); 160 free(peer); 175 if (peer != NULL) { 176 LIST_INSERT_HEAD(&port->peers, peer, link); 178 peer 204 lsock_peer_close(struct lsock_peer *peer) argument 219 struct lsock_peer *peer; local 242 struct lsock_peer *peer = udata; local 259 struct lsock_peer *peer; local 345 struct lsock_peer *peer; local 404 struct lsock_peer *peer; local [all...] |