/barrelfish-2018-10-04/lib/lwip2/src/apps/netio/ |
H A D | netio.c | 10 netio_recv(void *arg, struct tcp_pcb *pcb, struct pbuf *p, err_t err) argument 15 tcp_recved(pcb, p->tot_len); 22 tcp_arg(pcb, NULL); 23 tcp_sent(pcb, NULL); 24 tcp_recv(pcb, NULL); 25 tcp_close(pcb); 32 netio_accept(void *arg, struct tcp_pcb *pcb, err_t err) argument 37 if (pcb != NULL) { 38 tcp_arg(pcb, NULL); 39 tcp_sent(pcb, NUL 48 struct tcp_pcb *pcb; local [all...] |
/barrelfish-2018-10-04/lib/lwip2/src/core/ |
H A D | tcp.c | 78 #define TCP_KEEP_DUR(pcb) ((pcb)->keep_cnt * (pcb)->keep_intvl) 79 #define TCP_KEEP_INTVL(pcb) ((pcb)->keep_intvl) 81 #define TCP_KEEP_DUR(pcb) TCP_MAXIDLE 82 #define TCP_KEEP_INTVL(pcb) TCP_KEEPINTVL_DEFAULT 139 static err_t tcp_close_shutdown_fin(struct tcp_pcb *pcb); 169 /** Called when a listen pcb is closed. Iterates one pcb lis 175 struct tcp_pcb *pcb; local 188 tcp_listen_closed(struct tcp_pcb *pcb) argument 213 tcp_backlog_delayed(struct tcp_pcb* pcb) argument 235 tcp_backlog_accepted(struct tcp_pcb* pcb) argument 265 tcp_close_shutdown(struct tcp_pcb *pcb, u8_t rst_on_unacked_data) argument 330 tcp_close_shutdown_fin(struct tcp_pcb *pcb) argument 394 tcp_close(struct tcp_pcb *pcb) argument 421 tcp_shutdown(struct tcp_pcb *pcb, int shut_rx, int shut_tx) argument 465 tcp_abandon(struct tcp_pcb *pcb, int reset) argument 536 tcp_abort(struct tcp_pcb *pcb) argument 557 tcp_bind(struct tcp_pcb *pcb, const ip_addr_t *ipaddr, u16_t port) argument 632 tcp_accept_null(void *arg, struct tcp_pcb *pcb, err_t err) argument 659 tcp_listen_with_backlog(struct tcp_pcb *pcb, u8_t backlog) argument 681 tcp_listen_with_backlog_and_err(struct tcp_pcb *pcb, u8_t backlog, err_t *err) argument 754 tcp_update_rcv_ann_wnd(struct tcp_pcb *pcb) argument 789 tcp_recved(struct tcp_pcb *pcb, u16_t len) argument 837 struct tcp_pcb *pcb; local 872 tcp_connect(struct tcp_pcb *pcb, const ip_addr_t *ipaddr, u16_t port, tcp_connected_fn connected) argument 983 struct tcp_pcb *pcb, *prev; local 1248 struct tcp_pcb *pcb; local 1295 struct tcp_pcb *pcb; local 1306 tcp_process_refused_data(struct tcp_pcb *pcb) argument 1405 tcp_setprio(struct tcp_pcb *pcb, u8_t prio) argument 1439 tcp_recv_null(void *arg, struct tcp_pcb *pcb, struct pbuf *p, err_t err) argument 1461 struct tcp_pcb *pcb, *inactive; local 1492 struct tcp_pcb *pcb, *inactive; local 1524 struct tcp_pcb *pcb, *inactive; local 1552 struct tcp_pcb *pcb; local 1674 struct tcp_pcb * pcb; local 1696 tcp_arg(struct tcp_pcb *pcb, void *arg) argument 1715 tcp_recv(struct tcp_pcb *pcb, tcp_recv_fn recv) argument 1732 tcp_sent(struct tcp_pcb *pcb, tcp_sent_fn sent) argument 1752 tcp_err(struct tcp_pcb *pcb, tcp_err_fn err) argument 1770 tcp_accept(struct tcp_pcb *pcb, tcp_accept_fn accept) argument 1788 tcp_poll(struct tcp_pcb *pcb, tcp_poll_fn poll, u8_t interval) argument 1806 tcp_pcb_purge(struct tcp_pcb *pcb) argument 1855 tcp_pcb_remove(struct tcp_pcb **pcblist, struct tcp_pcb *pcb) argument 1890 tcp_next_iss(struct tcp_pcb *pcb) argument 1974 struct tcp_pcb *pcb; local 2119 struct tcp_pcb *pcb; local 2151 struct tcp_pcb *pcb; local [all...] |
H A D | raw.c | 68 raw_input_match(struct raw_pcb *pcb, u8_t broadcast) argument 74 if (IP_IS_ANY_TYPE_VAL(pcb->local_ip)) { 76 if ((broadcast != 0) && !ip_get_option(pcb, SOF_BROADCAST)) { 85 if (IP_ADDR_PCB_VERSION_MATCH_EXACT(pcb, ip_current_dest_addr())) { 91 if (ip_get_option(pcb, SOF_BROADCAST)) 94 if (ip4_addr_isany(ip_2_ip4(&pcb->local_ip))) { 101 if (ip_addr_isany(&pcb->local_ip) || 102 ip_addr_cmp(&pcb->local_ip, ip_current_dest_addr())) { 130 struct raw_pcb *pcb, *prev; local 156 pcb 210 raw_bind(struct raw_pcb *pcb, const ip_addr_t *ipaddr) argument 234 raw_connect(struct raw_pcb *pcb, const ip_addr_t *ipaddr) argument 255 raw_recv(struct raw_pcb *pcb, raw_recv_fn recv, void *recv_arg) argument 276 raw_sendto(struct raw_pcb *pcb, struct pbuf *p, const ip_addr_t *ipaddr) argument 402 raw_send(struct raw_pcb *pcb, struct pbuf *p) argument 417 raw_remove(struct raw_pcb *pcb) argument 452 struct raw_pcb *pcb; local 487 struct raw_pcb *pcb; local [all...] |
H A D | tcp_in.c | 85 static err_t tcp_process(struct tcp_pcb *pcb); 86 static void tcp_receive(struct tcp_pcb *pcb); 87 static void tcp_parseopt(struct tcp_pcb *pcb); 89 static void tcp_listen_input(struct tcp_pcb_listen *pcb); 90 static void tcp_timewait_input(struct tcp_pcb *pcb); 104 struct tcp_pcb *pcb, *prev; local 223 for (pcb = tcp_active_pcbs; pcb != NULL; pcb = pcb 545 tcp_listen_input(struct tcp_pcb_listen *pcb) argument 644 tcp_timewait_input(struct tcp_pcb *pcb) argument 690 tcp_process(struct tcp_pcb *pcb) argument 997 tcp_receive(struct tcp_pcb *pcb) argument 1710 tcp_parseopt(struct tcp_pcb *pcb) argument [all...] |
H A D | tcp_out.c | 95 static err_t tcp_output_segment(struct tcp_seg *seg, struct tcp_pcb *pcb, struct netif *netif); 101 * @param pcb tcp pcb for which to send a packet (used to initialize tcp_hdr) 108 tcp_output_alloc_header(struct tcp_pcb *pcb, u16_t optlen, u16_t datalen, argument 117 tcphdr->src = lwip_htons(pcb->local_port); 118 tcphdr->dest = lwip_htons(pcb->remote_port); 120 tcphdr->ackno = lwip_htonl(pcb->rcv_nxt); 122 tcphdr->wnd = lwip_htons(TCPWND_MIN16(RCV_WND_SCALE(pcb, pcb->rcv_ann_wnd))); 127 pcb 139 tcp_send_fin(struct tcp_pcb *pcb) argument 173 tcp_create_segment(struct tcp_pcb *pcb, struct pbuf *p, u8_t flags, u32_t seqno, u8_t optflags) argument 233 tcp_pbuf_prealloc(pbuf_layer layer, u16_t length, u16_t max_length, u16_t *oversize, struct tcp_pcb *pcb, u8_t apiflags, u8_t first_seg) argument 307 tcp_write_checks(struct tcp_pcb *pcb, u16_t len) argument 368 tcp_write(struct tcp_pcb *pcb, const void *arg, u16_t len, u8_t apiflags) argument 785 tcp_enqueue_flags(struct tcp_pcb *pcb, u8_t flags) argument 890 tcp_build_timestamp_option(struct tcp_pcb *pcb, u32_t *opts) argument 918 tcp_send_empty_ack(struct tcp_pcb *pcb) argument 993 tcp_output(struct tcp_pcb *pcb) argument 1189 tcp_output_segment(struct tcp_seg *seg, struct tcp_pcb *pcb, struct netif *netif) argument 1399 tcp_rexmit_rto(struct tcp_pcb *pcb) argument 1442 tcp_rexmit(struct tcp_pcb *pcb) argument 1490 tcp_rexmit_fast(struct tcp_pcb *pcb) argument 1532 tcp_keepalive(struct tcp_pcb *pcb) argument 1586 tcp_zero_window_probe(struct tcp_pcb *pcb) argument [all...] |
H A D | udp.c | 103 struct udp_pcb *pcb; local 110 for (pcb = udp_pcbs; pcb != NULL; pcb = pcb->next) { 111 if (pcb->local_port == udp_port) { 121 /** Common code to see if the current input packet matches the pcb 124 * @param pcb pcb to check 130 udp_input_local_match(struct udp_pcb *pcb, struc argument 188 struct udp_pcb *pcb, *prev; local 455 udp_send(struct udp_pcb *pcb, struct pbuf *p) argument 470 udp_send_chksum(struct udp_pcb *pcb, struct pbuf *p, u8_t have_chksum, u16_t chksum) argument 502 udp_sendto(struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *dst_ip, u16_t dst_port) argument 512 udp_sendto_chksum(struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *dst_ip, u16_t dst_port, u8_t have_chksum, u16_t chksum) argument 592 udp_sendto_if(struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *dst_ip, u16_t dst_port, struct netif *netif) argument 601 udp_sendto_if_chksum(struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *dst_ip, u16_t dst_port, struct netif *netif, u8_t have_chksum, u16_t chksum) argument 661 udp_sendto_if_src(struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *dst_ip, u16_t dst_port, struct netif *netif, const ip_addr_t *src_ip) argument 670 udp_sendto_if_src_chksum(struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *dst_ip, u16_t dst_port, struct netif *netif, u8_t have_chksum, u16_t chksum, const ip_addr_t *src_ip) argument 882 udp_bind(struct udp_pcb *pcb, const ip_addr_t *ipaddr, u16_t port) argument 981 udp_connect(struct udp_pcb *pcb, const ip_addr_t *ipaddr, u16_t port) argument 1025 udp_disconnect(struct udp_pcb *pcb) argument 1053 udp_recv(struct udp_pcb *pcb, udp_recv_fn recv, void *recv_arg) argument 1070 udp_remove(struct udp_pcb *pcb) argument 1105 struct udp_pcb *pcb; local 1137 struct udp_pcb *pcb; local [all...] |
/barrelfish-2018-10-04/lib/lwip/src/core/ |
H A D | tcp.c | 107 * The pcb is then automatically freed in tcp_slowtmr(). It is therefore 110 * @param pcb the tcp_pcb to close 112 * another err_t if closing failed and pcb is not freed 114 err_t tcp_close(struct tcp_pcb *pcb) argument 120 tcp_debug_print_state(pcb->state); 124 switch (pcb->state) { 126 /* Closing a pcb in the CLOSED state might seem erroneous, 129 * Calling tcp_close() with a pcb that has already been closed, (i.e. twice) 130 * or for a pcb that has been used and then entered the CLOSED state 131 * is erroneous, but this should never happen as the pcb ha 200 tcp_abandon(struct tcp_pcb *pcb, int reset) argument 266 tcp_bind(struct tcp_pcb *pcb, struct ip_addr *ipaddr, u16_t port) argument 298 tcp_redirect(struct tcp_pcb * pcb, struct ip_addr * local_ip, u16_t local_port, struct ip_addr * remote_ip, u16_t remote_port) argument 311 tcp_pause(struct tcp_pcb * pcb, struct ip_addr * local_ip, u16_t local_port, struct ip_addr * remote_ip, u16_t remote_port) argument 327 tcp_accept_null(void *arg, struct tcp_pcb *pcb, err_t err) argument 351 tcp_listen_with_backlog(struct tcp_pcb *pcb, u8_t backlog) argument 394 tcp_update_rcv_ann_wnd(struct tcp_pcb *pcb) argument 423 tcp_recved(struct tcp_pcb *pcb, u16_t len) argument 472 tcp_connect(struct tcp_pcb * pcb, struct ip_addr * ipaddr, u16_t port, err_t(*connected) (void *arg, struct tcp_pcb * tpcb, err_t err)) argument 541 struct tcp_pcb *pcb, *pcb2, *prev; local 791 struct tcp_pcb *pcb; local 863 tcp_setprio(struct tcp_pcb *pcb, u8_t prio) argument 897 tcp_recv_null(void *arg, struct tcp_pcb *pcb, struct pbuf *p, err_t err) argument 916 struct tcp_pcb *pcb, *inactive; local 949 struct tcp_pcb *pcb, *inactive; local 977 struct tcp_pcb *pcb; local 1062 tcp_arg(struct tcp_pcb *pcb, void *arg) argument 1077 tcp_recv(struct tcp_pcb *pcb, err_t(*recv) (void *arg, struct tcp_pcb * tpcb, struct pbuf * p, err_t err)) argument 1092 tcp_sent(struct tcp_pcb *pcb, err_t(*sent) (void *arg, struct tcp_pcb * tpcb, u16_t len)) argument 1106 tcp_err(struct tcp_pcb *pcb, void (*errf) (void *arg, err_t err)) argument 1120 tcp_accept(struct tcp_pcb *pcb, err_t(*accept) (void *arg, struct tcp_pcb * newpcb, err_t err)) argument 1135 tcp_poll(struct tcp_pcb *pcb, err_t(*poll) (void *arg, struct tcp_pcb * tpcb), u8_t interval) argument 1150 tcp_pcb_purge(struct tcp_pcb *pcb) argument 1217 tcp_pcb_remove(struct tcp_pcb **pcblist, struct tcp_pcb *pcb) argument 1408 struct tcp_pcb *pcb; local 1442 struct tcp_pcb *pcb; local [all...] |
H A D | raw.c | 79 struct raw_pcb *pcb, *prev; local 90 pcb = raw_pcbs; 93 while ((eaten == 0) && (pcb != NULL)) { 94 if (pcb->protocol == proto) { 97 if ((pcb->so_options & SOF_BROADCAST) 102 if (pcb->recv != NULL) { 104 if (pcb->recv(pcb->recv_arg, pcb, p, &(iphdr->src)) != 0) { 109 /* move the pcb t 141 raw_bind(struct raw_pcb * pcb, struct ip_addr * ipaddr) argument 160 raw_connect(struct raw_pcb * pcb, struct ip_addr * ipaddr) argument 181 raw_recv(struct raw_pcb *pcb, u8_t(*recv) (void *arg, struct raw_pcb * upcb, struct pbuf * p, struct ip_addr * addr), void *recv_arg) argument 202 raw_sendto(struct raw_pcb *pcb, struct pbuf *p, struct ip_addr *ipaddr) argument 292 raw_send(struct raw_pcb * pcb, struct pbuf * p) argument 305 raw_remove(struct raw_pcb *pcb) argument 338 struct raw_pcb *pcb; local [all...] |
H A D | tcp_in.c | 78 static err_t tcp_process(struct tcp_pcb *pcb); 79 static u8_t tcp_receive(struct tcp_pcb *pcb); 80 static void tcp_parseopt(struct tcp_pcb *pcb); 82 static err_t tcp_listen_input(struct tcp_pcb_listen *pcb); 83 static err_t tcp_timewait_input(struct tcp_pcb *pcb); 96 struct tcp_pcb *pcb, *prev; local 190 for (pcb = tcp_active_pcbs; pcb != NULL; pcb = pcb 412 tcp_listen_input(struct tcp_pcb_listen *pcb) argument 508 tcp_timewait_input(struct tcp_pcb *pcb) argument 530 tcp_process(struct tcp_pcb *pcb) argument 769 tcp_receive(struct tcp_pcb *pcb) argument 1458 tcp_parseopt(struct tcp_pcb *pcb) argument [all...] |
H A D | tcp_out.c | 61 static void tcp_output_segment(struct tcp_seg *seg, struct tcp_pcb *pcb); 63 static struct tcp_hdr *tcp_output_set_header(struct tcp_pcb *pcb, argument 71 tcphdr->src = htons(pcb->local_port); 72 tcphdr->dest = htons(pcb->remote_port); 74 tcphdr->ackno = htonl(pcb->rcv_nxt); 76 tcphdr->wnd = htons(pcb->rcv_ann_wnd); 82 pcb->rcv_ann_right_edge = pcb->rcv_nxt + pcb->rcv_ann_wnd; 90 * @param pcb th 94 tcp_send_ctrl(struct tcp_pcb * pcb, u8_t flags) argument 119 tcp_write(struct tcp_pcb * pcb, const void *data, u16_t len, u8_t apiflags) argument 159 tcp_enqueue(struct tcp_pcb * pcb, void *arg, u16_t len, u8_t flags, u8_t apiflags, u8_t optflags) argument 476 tcp_build_timestamp_option(struct tcp_pcb *pcb, u32_t * opts) argument 493 tcp_output(struct tcp_pcb *pcb) argument 695 tcp_output_segment(struct tcp_seg *seg, struct tcp_pcb *pcb) argument 861 tcp_rexmit_rto(struct tcp_pcb *pcb) argument 895 tcp_rexmit(struct tcp_pcb *pcb) argument 936 tcp_keepalive(struct tcp_pcb *pcb) argument 994 tcp_zero_window_probe(struct tcp_pcb *pcb) argument [all...] |
H A D | udp.c | 79 * recv function. If no pcb is found or the datagram is incorrect, the 89 struct udp_pcb *pcb, *prev; local 142 pcb = NULL; 144 the dhcp module, no other UDP pcb may use the local UDP port DHCP_CLIENT_PORT */ 148 if ((inp->dhcp != NULL) && (inp->dhcp->pcb != NULL)) { 151 - inp->dhcp->pcb->remote == ANY or iphdr->src */ 152 if ((ip_addr_isany(&inp->dhcp->pcb->remote_ip) || 153 ip_addr_cmp(&(inp->dhcp->pcb->remote_ip), 155 pcb = inp->dhcp->pcb; 348 udp_send(struct udp_pcb *pcb, struct pbuf *p) argument 372 udp_sendto(struct udp_pcb * pcb, struct pbuf * p, struct ip_addr * dst_ip, u16_t dst_port) argument 418 udp_sendto_if(struct udp_pcb * pcb, struct pbuf * p, struct ip_addr * dst_ip, u16_t dst_port, struct netif * netif) argument 628 udp_bind(struct udp_pcb * pcb, struct ip_addr * ipaddr, u16_t port) argument 723 udp_connect(struct udp_pcb * pcb, struct ip_addr * ipaddr, u16_t port) argument 787 udp_disconnect(struct udp_pcb *pcb) argument 806 udp_recv(struct udp_pcb *pcb, void (*recv) (void *arg, struct udp_pcb * upcb, struct pbuf * p, struct ip_addr * addr, u16_t port), void *recv_arg) argument 823 udp_remove(struct udp_pcb *pcb) argument 854 struct udp_pcb *pcb; local [all...] |
/barrelfish-2018-10-04/lib/lwip2/src/netif/ppp/ |
H A D | ppp.c | 218 void ppp_set_auth(ppp_pcb *pcb, u8_t authtype, const char *user, const char *passwd) { argument 220 pcb->settings.refuse_pap = !(authtype & PPPAUTHTYPE_PAP); 223 pcb->settings.refuse_chap = !(authtype & PPPAUTHTYPE_CHAP); 225 pcb->settings.refuse_mschap = !(authtype & PPPAUTHTYPE_MSCHAP); 226 pcb->settings.refuse_mschap_v2 = !(authtype & PPPAUTHTYPE_MSCHAP_V2); 230 pcb->settings.refuse_eap = !(authtype & PPPAUTHTYPE_EAP); 232 pcb->settings.user = user; 233 pcb->settings.passwd = passwd; 239 void ppp_set_mppe(ppp_pcb *pcb, u8_t flags) { argument 241 pcb 253 ppp_set_notify_phase_callback(ppp_pcb *pcb, ppp_notify_phase_cb_fn notify_phase_cb) argument 270 ppp_connect(ppp_pcb *pcb, u16_t holdoff) argument 296 ppp_listen(ppp_pcb *pcb) argument 324 ppp_close(ppp_pcb *pcb, u8_t nocarrier) argument 384 ppp_free(ppp_pcb *pcb) argument 403 ppp_ioctl(ppp_pcb *pcb, u8_t cmd, void *arg) argument 445 ppp_pcb *pcb = (ppp_pcb*)arg; local 501 ppp_pcb *pcb = (ppp_pcb*)netif->state; local 643 ppp_pcb *pcb; local 724 ppp_start(ppp_pcb *pcb) argument 748 ppp_link_failed(ppp_pcb *pcb) argument 756 ppp_link_end(ppp_pcb *pcb) argument 769 ppp_input(ppp_pcb *pcb, struct pbuf *pb) argument 1008 ppp_write(ppp_pcb *pcb, struct pbuf *p) argument 1015 ppp_link_terminated(ppp_pcb *pcb) argument 1030 new_phase(ppp_pcb *pcb, int p) argument 1044 ppp_send_config(ppp_pcb *pcb, int mtu, u32_t accm, int pcomp, int accomp) argument 1060 ppp_recv_config(ppp_pcb *pcb, int mru, u32_t accm, int pcomp, int accomp) argument 1075 sifaddr(ppp_pcb *pcb, u32_t our_adr, u32_t his_adr, u32_t netmask) argument 1090 cifaddr(ppp_pcb *pcb, u32_t our_adr, u32_t his_adr) argument 1126 sdns(ppp_pcb *pcb, u32_t ns1, u32_t ns2) argument 1141 cdns(ppp_pcb *pcb, u32_t ns1, u32_t ns2) argument 1165 sifvjcomp(ppp_pcb *pcb, int vjcomp, int cidcomp, int maxcid) argument 1178 sifup(ppp_pcb *pcb) argument 1193 sifdown(ppp_pcb *pcb) argument 1258 sif6addr(ppp_pcb *pcb, eui64_t our_eui64, eui64_t his_eui64) argument 1273 cif6addr(ppp_pcb *pcb, eui64_t our_eui64, eui64_t his_eui64) argument 1285 sif6up(ppp_pcb *pcb) argument 1301 sif6down(ppp_pcb *pcb) argument 1323 sifnpmode(ppp_pcb *pcb, int proto, enum NPmode mode) argument 1334 netif_set_mtu(ppp_pcb *pcb, int mtu) argument 1343 netif_get_mtu(ppp_pcb *pcb) argument 1368 ccp_set(ppp_pcb *pcb, u8_t isopen, u8_t isup, u8_t receive_method, u8_t transmit_method) argument 1379 ccp_reset_comp(ppp_pcb *pcb) argument 1393 ccp_reset_decomp(ppp_pcb *pcb) argument 1426 get_idle_time(ppp_pcb *pcb, struct ppp_idle *ip) argument [all...] |
H A D | upap.c | 83 static void upap_init(ppp_pcb *pcb); 84 static void upap_lowerup(ppp_pcb *pcb); 85 static void upap_lowerdown(ppp_pcb *pcb); 86 static void upap_input(ppp_pcb *pcb, u_char *inpacket, int l); 87 static void upap_protrej(ppp_pcb *pcb); 124 static void upap_rauthreq(ppp_pcb *pcb, u_char *inp, int id, int len); 126 static void upap_rauthack(ppp_pcb *pcb, u_char *inp, int id, int len); 127 static void upap_rauthnak(ppp_pcb *pcb, u_char *inp, int id, int len); 128 static void upap_sauthreq(ppp_pcb *pcb); 130 static void upap_sresp(ppp_pcb *pcb, u_cha 137 upap_init(ppp_pcb *pcb) argument 155 upap_authwithpeer(ppp_pcb *pcb, const char *user, const char *password) argument 183 upap_authpeer(ppp_pcb *pcb) argument 202 ppp_pcb *pcb = (ppp_pcb*)arg; local 224 ppp_pcb *pcb = (ppp_pcb*)arg; local 240 upap_lowerup(ppp_pcb *pcb) argument 265 upap_lowerdown(ppp_pcb *pcb) argument 286 upap_protrej(ppp_pcb *pcb) argument 305 upap_input(ppp_pcb *pcb, u_char *inpacket, int l) argument 359 upap_rauthreq(ppp_pcb *pcb, u_char *inp, int id, int len) argument 458 upap_rauthack(ppp_pcb *pcb, u_char *inp, int id, int len) argument 493 upap_rauthnak(ppp_pcb *pcb, u_char *inp, int id, int len) argument 529 upap_sauthreq(ppp_pcb *pcb) argument 567 upap_sresp(ppp_pcb *pcb, u_char code, u_char id, const char *msg, int msglen) argument [all...] |
H A D | chap-new.c | 67 { "chap-max-challenge", o_int, &pcb->settings.chap_max_transmits, 69 { "chap-interval", o_int, &pcb->settings.chap_rechallenge_time, 87 static void chap_init(ppp_pcb *pcb); 88 static void chap_lowerup(ppp_pcb *pcb); 89 static void chap_lowerdown(ppp_pcb *pcb); 92 static void chap_generate_challenge(ppp_pcb *pcb); 93 static void chap_handle_response(ppp_pcb *pcb, int code, 95 static int chap_verify_response(ppp_pcb *pcb, const char *name, const char *ourname, int id, 100 static void chap_respond(ppp_pcb *pcb, int id, 102 static void chap_handle_status(ppp_pcb *pcb, in 124 chap_init(ppp_pcb *pcb) argument 138 chap_lowerup(ppp_pcb *pcb) argument 148 chap_lowerdown(ppp_pcb *pcb) argument 164 chap_auth_peer(ppp_pcb *pcb, const char *our_name, int digest_code) argument 193 chap_auth_with_peer(ppp_pcb *pcb, const char *our_name, int digest_code) argument 224 ppp_pcb *pcb = (ppp_pcb*)arg; local 257 chap_generate_challenge(ppp_pcb *pcb) argument 282 chap_handle_response(ppp_pcb *pcb, int id, unsigned char *pkt, int len) argument 411 chap_verify_response(ppp_pcb *pcb, const char *name, const char *ourname, int id, const struct chap_digest_type *digest, const unsigned char *challenge, const unsigned char *response, char *message, int message_space) argument 435 chap_respond(ppp_pcb *pcb, int id, unsigned char *pkt, int len) argument 497 chap_handle_status(ppp_pcb *pcb, int code, int id, unsigned char *pkt, int len) argument 535 chap_input(ppp_pcb *pcb, unsigned char *pkt, int pktlen) argument 566 chap_protrej(ppp_pcb *pcb) argument [all...] |
H A D | eap.c | 98 static void eap_init(ppp_pcb *pcb); 99 static void eap_input(ppp_pcb *pcb, u_char *inp, int inlen); 100 static void eap_protrej(ppp_pcb *pcb); 101 static void eap_lowerup(ppp_pcb *pcb); 102 static void eap_lowerdown(ppp_pcb *pcb); 196 static void eap_init(ppp_pcb *pcb) { argument 198 BZERO(&pcb->eap, sizeof(eap_state)); 200 pcb->eap.es_server.ea_id = magic(); 209 ppp_pcb *pcb = (ppp_pcb*)arg; local 211 if (!eap_client_active(pcb)) 225 eap_authwithpeer(ppp_pcb *pcb, const char *localname) argument 250 eap_send_failure(ppp_pcb *pcb) argument 281 eap_send_success(ppp_pcb *pcb) argument 425 eap_figure_next_state(ppp_pcb *pcb, int status) argument 638 eap_send_request(ppp_pcb *pcb) argument 876 eap_authpeer(ppp_pcb *pcb, const char *localname) argument 902 ppp_pcb *pcb = (ppp_pcb*)arg; local 917 ppp_pcb *pcb = (ppp_pcb*)arg; local 931 ppp_pcb *pcb = (ppp_pcb*)arg; local 952 eap_lowerup(ppp_pcb *pcb) argument 964 eap_lowerdown(ppp_pcb *pcb) argument 997 eap_protrej(ppp_pcb *pcb) argument 1015 eap_send_response(ppp_pcb *pcb, u_char id, u_char typenum, const u_char *str, int lenstr) argument 1048 eap_chap_response(ppp_pcb *pcb, u_char id, u_char *hash, const char *name, int namelen) argument 1094 ppp_pcb *pcb = &ppp_pcb_list[pcb->eap.es_unit]; local 1135 ppp_pcb *pcb = &ppp_pcb_list[pcb->eap.es_unit]; local 1167 eap_send_nak(ppp_pcb *pcb, u_char id, u_char type) argument 1311 eap_request(ppp_pcb *pcb, u_char *inp, int id, int len) argument 1725 eap_response(ppp_pcb *pcb, u_char *inp, int id, int len) argument 2017 eap_success(ppp_pcb *pcb, u_char *inp, int id, int len) argument 2043 eap_failure(ppp_pcb *pcb, u_char *inp, int id, int len) argument 2070 eap_input(ppp_pcb *pcb, u_char *inp, int inlen) argument [all...] |
/barrelfish-2018-10-04/include/lwip2/netif/ppp/ |
H A D | ppp.c | 218 void ppp_set_auth(ppp_pcb *pcb, u8_t authtype, const char *user, const char *passwd) { argument 220 pcb->settings.refuse_pap = !(authtype & PPPAUTHTYPE_PAP); 223 pcb->settings.refuse_chap = !(authtype & PPPAUTHTYPE_CHAP); 225 pcb->settings.refuse_mschap = !(authtype & PPPAUTHTYPE_MSCHAP); 226 pcb->settings.refuse_mschap_v2 = !(authtype & PPPAUTHTYPE_MSCHAP_V2); 230 pcb->settings.refuse_eap = !(authtype & PPPAUTHTYPE_EAP); 232 pcb->settings.user = user; 233 pcb->settings.passwd = passwd; 239 void ppp_set_mppe(ppp_pcb *pcb, u8_t flags) { argument 241 pcb 253 ppp_set_notify_phase_callback(ppp_pcb *pcb, ppp_notify_phase_cb_fn notify_phase_cb) argument 270 ppp_connect(ppp_pcb *pcb, u16_t holdoff) argument 296 ppp_listen(ppp_pcb *pcb) argument 324 ppp_close(ppp_pcb *pcb, u8_t nocarrier) argument 384 ppp_free(ppp_pcb *pcb) argument 403 ppp_ioctl(ppp_pcb *pcb, u8_t cmd, void *arg) argument 445 ppp_pcb *pcb = (ppp_pcb*)arg; local 501 ppp_pcb *pcb = (ppp_pcb*)netif->state; local 643 ppp_pcb *pcb; local 724 ppp_start(ppp_pcb *pcb) argument 748 ppp_link_failed(ppp_pcb *pcb) argument 756 ppp_link_end(ppp_pcb *pcb) argument 769 ppp_input(ppp_pcb *pcb, struct pbuf *pb) argument 1008 ppp_write(ppp_pcb *pcb, struct pbuf *p) argument 1015 ppp_link_terminated(ppp_pcb *pcb) argument 1030 new_phase(ppp_pcb *pcb, int p) argument 1044 ppp_send_config(ppp_pcb *pcb, int mtu, u32_t accm, int pcomp, int accomp) argument 1060 ppp_recv_config(ppp_pcb *pcb, int mru, u32_t accm, int pcomp, int accomp) argument 1075 sifaddr(ppp_pcb *pcb, u32_t our_adr, u32_t his_adr, u32_t netmask) argument 1090 cifaddr(ppp_pcb *pcb, u32_t our_adr, u32_t his_adr) argument 1126 sdns(ppp_pcb *pcb, u32_t ns1, u32_t ns2) argument 1141 cdns(ppp_pcb *pcb, u32_t ns1, u32_t ns2) argument 1165 sifvjcomp(ppp_pcb *pcb, int vjcomp, int cidcomp, int maxcid) argument 1178 sifup(ppp_pcb *pcb) argument 1193 sifdown(ppp_pcb *pcb) argument 1258 sif6addr(ppp_pcb *pcb, eui64_t our_eui64, eui64_t his_eui64) argument 1273 cif6addr(ppp_pcb *pcb, eui64_t our_eui64, eui64_t his_eui64) argument 1285 sif6up(ppp_pcb *pcb) argument 1301 sif6down(ppp_pcb *pcb) argument 1323 sifnpmode(ppp_pcb *pcb, int proto, enum NPmode mode) argument 1334 netif_set_mtu(ppp_pcb *pcb, int mtu) argument 1343 netif_get_mtu(ppp_pcb *pcb) argument 1368 ccp_set(ppp_pcb *pcb, u8_t isopen, u8_t isup, u8_t receive_method, u8_t transmit_method) argument 1379 ccp_reset_comp(ppp_pcb *pcb) argument 1393 ccp_reset_decomp(ppp_pcb *pcb) argument 1426 get_idle_time(ppp_pcb *pcb, struct ppp_idle *ip) argument [all...] |
H A D | upap.c | 83 static void upap_init(ppp_pcb *pcb); 84 static void upap_lowerup(ppp_pcb *pcb); 85 static void upap_lowerdown(ppp_pcb *pcb); 86 static void upap_input(ppp_pcb *pcb, u_char *inpacket, int l); 87 static void upap_protrej(ppp_pcb *pcb); 124 static void upap_rauthreq(ppp_pcb *pcb, u_char *inp, int id, int len); 126 static void upap_rauthack(ppp_pcb *pcb, u_char *inp, int id, int len); 127 static void upap_rauthnak(ppp_pcb *pcb, u_char *inp, int id, int len); 128 static void upap_sauthreq(ppp_pcb *pcb); 130 static void upap_sresp(ppp_pcb *pcb, u_cha 137 upap_init(ppp_pcb *pcb) argument 155 upap_authwithpeer(ppp_pcb *pcb, const char *user, const char *password) argument 183 upap_authpeer(ppp_pcb *pcb) argument 202 ppp_pcb *pcb = (ppp_pcb*)arg; local 224 ppp_pcb *pcb = (ppp_pcb*)arg; local 240 upap_lowerup(ppp_pcb *pcb) argument 265 upap_lowerdown(ppp_pcb *pcb) argument 286 upap_protrej(ppp_pcb *pcb) argument 305 upap_input(ppp_pcb *pcb, u_char *inpacket, int l) argument 359 upap_rauthreq(ppp_pcb *pcb, u_char *inp, int id, int len) argument 458 upap_rauthack(ppp_pcb *pcb, u_char *inp, int id, int len) argument 493 upap_rauthnak(ppp_pcb *pcb, u_char *inp, int id, int len) argument 529 upap_sauthreq(ppp_pcb *pcb) argument 567 upap_sresp(ppp_pcb *pcb, u_char code, u_char id, const char *msg, int msglen) argument [all...] |
H A D | chap-new.c | 67 { "chap-max-challenge", o_int, &pcb->settings.chap_max_transmits, 69 { "chap-interval", o_int, &pcb->settings.chap_rechallenge_time, 87 static void chap_init(ppp_pcb *pcb); 88 static void chap_lowerup(ppp_pcb *pcb); 89 static void chap_lowerdown(ppp_pcb *pcb); 92 static void chap_generate_challenge(ppp_pcb *pcb); 93 static void chap_handle_response(ppp_pcb *pcb, int code, 95 static int chap_verify_response(ppp_pcb *pcb, const char *name, const char *ourname, int id, 100 static void chap_respond(ppp_pcb *pcb, int id, 102 static void chap_handle_status(ppp_pcb *pcb, in 124 chap_init(ppp_pcb *pcb) argument 138 chap_lowerup(ppp_pcb *pcb) argument 148 chap_lowerdown(ppp_pcb *pcb) argument 164 chap_auth_peer(ppp_pcb *pcb, const char *our_name, int digest_code) argument 193 chap_auth_with_peer(ppp_pcb *pcb, const char *our_name, int digest_code) argument 224 ppp_pcb *pcb = (ppp_pcb*)arg; local 257 chap_generate_challenge(ppp_pcb *pcb) argument 282 chap_handle_response(ppp_pcb *pcb, int id, unsigned char *pkt, int len) argument 411 chap_verify_response(ppp_pcb *pcb, const char *name, const char *ourname, int id, const struct chap_digest_type *digest, const unsigned char *challenge, const unsigned char *response, char *message, int message_space) argument 435 chap_respond(ppp_pcb *pcb, int id, unsigned char *pkt, int len) argument 497 chap_handle_status(ppp_pcb *pcb, int code, int id, unsigned char *pkt, int len) argument 535 chap_input(ppp_pcb *pcb, unsigned char *pkt, int pktlen) argument 566 chap_protrej(ppp_pcb *pcb) argument [all...] |
/barrelfish-2018-10-04/include/lwip2/lwip/ |
H A D | tcp.h | 60 * connection can be accepted on a listening pcb. 63 * @param newpcb The new connection pcb 74 * @param tpcb The connection pcb which received data 85 * This also means that the pcb has now space available to send new data. 88 * @param tpcb The connection pcb for which data has been acknowledged 101 * @param tpcb tcp pcb 108 /** Function prototype for tcp error callback functions. Called when the pcb 111 * @note The corresponding pcb is already freed when this callback is called! 114 * @param err Error code to indicate why the pcb has been closed 120 /** Function prototype for tcp connected callback functions. Called when a pcb [all...] |
H A D | udp.h | 63 /** Function prototype for udp pcb receive callback functions 64 * addr and port are in same byte order as in the pcb 72 * @param pcb the udp_pcb which received data 77 typedef void (*udp_recv_fn)(void *arg, struct udp_pcb *pcb, struct pbuf *p, 117 void udp_remove (struct udp_pcb *pcb); 118 err_t udp_bind (struct udp_pcb *pcb, const ip_addr_t *ipaddr, 120 err_t udp_connect (struct udp_pcb *pcb, const ip_addr_t *ipaddr, 122 void udp_disconnect (struct udp_pcb *pcb); 123 void udp_recv (struct udp_pcb *pcb, udp_recv_fn recv, 125 err_t udp_sendto_if (struct udp_pcb *pcb, struc [all...] |
/barrelfish-2018-10-04/include/lwip/lwip/ |
H A D | raw.h | 58 * @param pcb the raw_pcb which received data 66 u8_t(*recv) (void *arg, struct raw_pcb * pcb, struct pbuf * p, 75 void raw_remove(struct raw_pcb *pcb); 76 err_t raw_bind(struct raw_pcb *pcb, struct ip_addr *ipaddr); 77 err_t raw_connect(struct raw_pcb *pcb, struct ip_addr *ipaddr); 79 void raw_recv(struct raw_pcb *pcb, 80 u8_t(*recv) (void *arg, struct raw_pcb * pcb, 83 err_t raw_sendto(struct raw_pcb *pcb, struct pbuf *p, 85 err_t raw_send(struct raw_pcb *pcb, struct pbuf *p);
|
H A D | udp.h | 90 * addr and port are in same byte order as in the pcb 95 * @param pcb the udp_pcb which received data 100 void (*recv) (void *arg, struct udp_pcb * pcb, struct pbuf * p, 111 void udp_remove(struct udp_pcb *pcb); 112 err_t udp_bind(struct udp_pcb *pcb, struct ip_addr *ipaddr, u16_t port); 113 err_t udp_connect(struct udp_pcb *pcb, struct ip_addr *ipaddr, u16_t port); 114 void udp_disconnect(struct udp_pcb *pcb); 115 void udp_recv(struct udp_pcb *pcb, 120 err_t udp_sendto_if(struct udp_pcb *pcb, struct pbuf *p, 123 err_t udp_sendto(struct udp_pcb *pcb, struc [all...] |
/barrelfish-2018-10-04/usr/netfile/ |
H A D | netfile.c | 54 static err_t tcp_is_sent(void *arg, struct tcp_pcb *pcb, u16_t len); 55 static err_t tcp_is_recv(void *arg, struct tcp_pcb *pcb, struct pbuf *pb, 64 static err_t tcp_is_poll(void *arg, struct tcp_pcb *pcb) argument 73 static err_t tcp_is_connected(void *arg, struct tcp_pcb *pcb, err_t err) argument 83 tcp_sent(pcb, tcp_is_sent); 84 tcp_recv(pcb, tcp_is_recv); 85 tcp_err( pcb, tcp_is_err); 86 tcp_poll(pcb, tcp_is_poll, 10); 99 struct tcp_pcb *pcb; local 101 pcb 143 struct tcp_pcb *pcb = tcp_new(); local 179 close_connection(struct tcp_pcb *pcb) argument 196 tcp_is_recv(void *arg, struct tcp_pcb *pcb, struct pbuf *pb, err_t err) argument 269 struct tcp_pcb *pcb; local 287 tcp_is_sent(void *arg, struct tcp_pcb *pcb, u16_t len) argument 300 send_message(struct tcp_pcb *pcb, void *msg, size_t len) argument 354 send_file(struct tcp_pcb *pcb, char *path) argument 418 struct tcp_pcb *pcb; local [all...] |
/barrelfish-2018-10-04/include/lwip2/lwip/priv/ |
H A D | tcp_priv.h | 80 void tcp_abandon (struct tcp_pcb *pcb, int reset); 81 err_t tcp_send_empty_ack(struct tcp_pcb *pcb); 82 void tcp_rexmit (struct tcp_pcb *pcb); 83 void tcp_rexmit_rto (struct tcp_pcb *pcb); 84 void tcp_rexmit_fast (struct tcp_pcb *pcb); 85 u32_t tcp_update_rcv_ann_wnd(struct tcp_pcb *pcb); 86 err_t tcp_process_refused_data(struct tcp_pcb *pcb); 92 * - the TF_NODELAY flag is set (nagle algorithm turned off for this pcb) or 93 * - the only unsent segment is at least pcb->mss bytes long (or there is more 154 /** Flags used on input processing, not on pcb [all...] |
/barrelfish-2018-10-04/lib/lwip2/src/apps/snmp/ |
H A D | snmp_mib2_udp.c | 114 struct udp_pcb *pcb; local 140 pcb = udp_pcbs; 141 while (pcb != NULL) { 142 if (ip_addr_cmp(&local_ip, &pcb->local_ip) && 143 (local_port == pcb->local_port) && 144 ip_addr_cmp(&remote_ip, &pcb->remote_ip) && 145 (remote_port == pcb->remote_port)) { 149 pcb = pcb->next; 159 struct udp_pcb *pcb; local 218 udp_Table_get_cell_value_core(struct udp_pcb *pcb, const u32_t* column, union snmp_variant_value* value, u32_t* value_len) argument 243 struct udp_pcb *pcb; local 273 struct udp_pcb *pcb; local [all...] |