| /lib/liblwip/src/api/ |
| D | netifapi.c | 45 do_netifapi_netif_add(struct netifapi_msg_msg *msg) in do_netifapi_netif_add() argument 47 if (!netif_add( msg->netif, in do_netifapi_netif_add() 48 msg->msg.add.ipaddr, in do_netifapi_netif_add() 49 msg->msg.add.netmask, in do_netifapi_netif_add() 50 msg->msg.add.gw, in do_netifapi_netif_add() 51 msg->msg.add.state, in do_netifapi_netif_add() 52 msg->msg.add.init, in do_netifapi_netif_add() 53 msg->msg.add.input)) { in do_netifapi_netif_add() 54 msg->err = ERR_IF; in do_netifapi_netif_add() 56 msg->err = ERR_OK; in do_netifapi_netif_add() [all …]
|
| D | tcpip.c | 76 struct tcpip_msg *msg; in tcpip_thread() local 88 sys_timeouts_mbox_fetch(&mbox, (void **)&msg); in tcpip_thread() 90 switch (msg->type) { in tcpip_thread() 93 LWIP_DEBUGF(TCPIP_DEBUG, ("tcpip_thread: API message %p\n", (void *)msg)); in tcpip_thread() 94 msg->msg.apimsg->function(&(msg->msg.apimsg->msg)); in tcpip_thread() 100 LWIP_DEBUGF(TCPIP_DEBUG, ("tcpip_thread: PACKET %p\n", (void *)msg)); in tcpip_thread() 102 if (msg->msg.inp.netif->flags & (NETIF_FLAG_ETHARP | NETIF_FLAG_ETHERNET)) { in tcpip_thread() 103 ethernet_input(msg->msg.inp.p, msg->msg.inp.netif); in tcpip_thread() 107 ip_input(msg->msg.inp.p, msg->msg.inp.netif); in tcpip_thread() 109 memp_free(MEMP_TCPIP_MSG_INPKT, msg); in tcpip_thread() [all …]
|
| D | api_msg.c | 490 pcb_new(struct api_msg_msg *msg) argument 492 LWIP_ASSERT("pcb_new: pcb already allocated", msg->conn->pcb.tcp == NULL); 495 switch(NETCONNTYPE_GROUP(msg->conn->type)) { 498 msg->conn->pcb.raw = raw_new(msg->msg.n.proto); 499 if(msg->conn->pcb.raw == NULL) { 500 msg->err = ERR_MEM; 503 raw_recv(msg->conn->pcb.raw, recv_raw, msg->conn); 508 msg->conn->pcb.udp = udp_new(); 509 if(msg->conn->pcb.udp == NULL) { 510 msg->err = ERR_MEM; [all …]
|
| D | api_lib.c | 71 struct api_msg msg; in netconn_new_with_proto_and_callback() local 75 msg.function = do_newconn; in netconn_new_with_proto_and_callback() 76 msg.msg.msg.n.proto = proto; in netconn_new_with_proto_and_callback() 77 msg.msg.conn = conn; in netconn_new_with_proto_and_callback() 78 if (TCPIP_APIMSG(&msg) != ERR_OK) { in netconn_new_with_proto_and_callback() 105 struct api_msg msg; in netconn_delete() local 112 msg.function = do_delconn; in netconn_delete() 113 msg.msg.conn = conn; in netconn_delete() 114 tcpip_apimsg(&msg); in netconn_delete() 137 struct api_msg msg; in netconn_getaddr() local [all …]
|
| /lib/liblwip/src/include/lwip/ |
| D | api_msg.h | 117 } msg; member 125 void (* function)(struct api_msg_msg *msg); 127 struct api_msg_msg msg; member 148 void do_newconn ( struct api_msg_msg *msg); 149 void do_delconn ( struct api_msg_msg *msg); 150 void do_bind ( struct api_msg_msg *msg); 151 void do_connect ( struct api_msg_msg *msg); 152 void do_disconnect ( struct api_msg_msg *msg); 153 void do_listen ( struct api_msg_msg *msg); 154 void do_send ( struct api_msg_msg *msg); [all …]
|
| D | sys.h | 179 void sys_mbox_post(sys_mbox_t *mbox, void *msg); 183 err_t sys_mbox_trypost(sys_mbox_t *mbox, void *msg); 191 u32_t sys_arch_mbox_fetch(sys_mbox_t *mbox, void **msg, u32_t timeout); 200 u32_t sys_arch_mbox_tryfetch(sys_mbox_t *mbox, void **msg); 203 #define sys_mbox_tryfetch(mbox, msg) sys_arch_mbox_tryfetch(mbox, msg) 207 #define sys_mbox_fetch(mbox, msg) sys_arch_mbox_fetch(mbox, msg, 0)
|
| D | netifapi.h | 66 } msg; member 70 void (* function)(struct netifapi_msg_msg *msg); 71 struct netifapi_msg_msg msg; member
|
| D | tcpip.h | 105 void tcpip_callbackmsg_delete(struct tcpip_callback_msg* msg); 106 err_t tcpip_trycallback(struct tcpip_callback_msg* msg); 158 } msg; member
|
| D | timers.h | 91 void sys_timeouts_mbox_fetch(sys_mbox_t *mbox, void **msg);
|
| /lib/liblwip/src/arch/ |
| D | sys_arch.c | 71 void *msg; member 194 sys_mbox_trypost(struct sys_mbox **mb, void *msg) in sys_mbox_trypost() argument 204 (void *)mbox, (void *)msg)); in sys_mbox_trypost() 211 mbox->msgs[mbox->last % SYS_MBOX_SIZE] = msg; in sys_mbox_trypost() 231 sys_mbox_post(struct sys_mbox **mb, void *msg) in sys_mbox_post() argument 240 LWIP_DEBUGF(SYS_DEBUG, ("sys_mbox_post: mbox %p msg %p\n", (void *)mbox, (void *)msg)); in sys_mbox_post() 250 mbox->msgs[mbox->last % SYS_MBOX_SIZE] = msg; in sys_mbox_post() 268 sys_arch_mbox_tryfetch(struct sys_mbox **mb, void **msg) in sys_arch_mbox_tryfetch() argument 281 if (msg != NULL) { in sys_arch_mbox_tryfetch() 282 LWIP_DEBUGF(SYS_DEBUG, ("sys_mbox_tryfetch: mbox %p msg %p\n", (void *)mbox, *msg)); in sys_arch_mbox_tryfetch() [all …]
|
| /lib/liblwip/src/netif/ppp/ |
| D | pap.c | 395 char *msg; in upap_rauthreq() local 442 retcode = check_passwd(u->us_unit, ruser, ruserlen, rpasswd, rpasswdlen, &msg, &msglen); in upap_rauthreq() 446 upap_sresp(u, retcode, id, msg, msglen); in upap_rauthreq() 469 char *msg; in upap_rauthack() local 493 msg = (char *) inp; in upap_rauthack() 494 PRINTMSG(msg, msglen); in upap_rauthack() 511 char *msg; in upap_rauthnak() local 534 msg = (char *) inp; in upap_rauthnak() 535 PRINTMSG(msg, msglen); in upap_rauthnak() 584 upap_sresp(upap_state *u, u_char code, u_char id, char *msg, int msglen) in upap_sresp() argument [all …]
|
| D | auth.c | 862 check_passwd( int unit, char *auser, int userlen, char *apasswd, int passwdlen, char **msg, int *ms… in check_passwd() argument 871 *msg = (char *) 0; in check_passwd() 887 *msg = (char *) 0; in check_passwd() 893 if (*msg == (char *) 0) { in check_passwd() 894 *msg = "Login incorrect"; in check_passwd() 896 *msglen = strlen(*msg); in check_passwd() 917 if (*msg == (char *) 0) { in check_passwd() 918 *msg = "Login ok"; in check_passwd() 920 *msglen = strlen(*msg); in check_passwd() 957 plogin(char *user, char *passwd, char **msg, int *msglen) [all …]
|
| D | chap.c | 750 char msg[256]; /* @todo: this can be a char*, no strcpy needed */ in ChapSendStatus() local 753 strcpy(msg, "Welcome!"); in ChapSendStatus() 755 strcpy(msg, "I don't like you. Go 'way."); in ChapSendStatus() 757 msglen = (int)strlen(msg); in ChapSendStatus() 767 BCOPY(msg, outp, msglen); in ChapSendStatus()
|
| /lib/liblwip/doc/ |
| D | sys_arch.txt | 113 - void sys_mbox_post(sys_mbox_t *mbox, void *msg) 115 Posts the "msg" to the mailbox. This function have to block until 116 the "msg" is really posted. 118 - err_t sys_mbox_trypost(sys_mbox_t *mbox, void *msg) 120 Try to post the "msg" to the mailbox. Returns ERR_MEM if this one 121 is full, else, ERR_OK if the "msg" is posted. 123 - u32_t sys_arch_mbox_fetch(sys_mbox_t *mbox, void **msg, u32_t timeout) 128 be blocked until a message arrives. The "msg" argument is a result 129 parameter that is set by the function (i.e., by doing "*msg = 130 ptr"). The "msg" parameter maybe NULL to indicate that the message [all …]
|
| /lib/liblwip/src/core/ |
| D | timers.c | 423 sys_timeouts_mbox_fetch(sys_mbox_t *mbox, void **msg) in sys_timeouts_mbox_fetch() argument 432 time_needed = sys_arch_mbox_fetch(mbox, msg, 0); in sys_timeouts_mbox_fetch() 435 time_needed = sys_arch_mbox_fetch(mbox, msg, next_timeout->time); in sys_timeouts_mbox_fetch()
|
| /lib/liblwip/ |
| D | CHANGELOG | 1872 netconn_write (and therefore also api_msg_msg.msg.w.len) from u16_t into 2064 * api_lib.c, tcpip.c, memp.c, memp.h: make API msg structs allocated 2065 on the stack and remove the API msg type from memp
|