Home
last modified time | relevance | path

Searched refs:NULL (Results 1 – 25 of 120) sorted by relevance

12345

/lib/liblwip/src/api/
Dnetbuf.c61 if (buf != NULL) { in netbuf_new()
62 buf->p = NULL; in netbuf_new()
63 buf->ptr = NULL; in netbuf_new()
77 return NULL; in netbuf_new()
89 if (buf != NULL) { in netbuf_delete()
90 if (buf->p != NULL) { in netbuf_delete()
92 buf->p = buf->ptr = NULL; in netbuf_delete()
109 LWIP_ERROR("netbuf_alloc: invalid buf", (buf != NULL), return NULL;); in netbuf_alloc()
112 if (buf->p != NULL) { in netbuf_alloc()
116 if (buf->p == NULL) { in netbuf_alloc()
[all …]
Dnetdb.c101 return NULL; in lwip_gethostbyname()
107 s_phostent_addr[1] = NULL; in lwip_gethostbyname()
118 if (s_hostent.h_aliases != NULL) { in lwip_gethostbyname()
128 if (s_hostent.h_addr_list != NULL) { in lwip_gethostbyname()
171 if (h_errnop == NULL) { in lwip_gethostbyname_r()
176 if (result == NULL) { in lwip_gethostbyname_r()
182 *result = NULL; in lwip_gethostbyname_r()
183 if ((name == NULL) || (ret == NULL) || (buf == NULL)) { in lwip_gethostbyname_r()
213 h->addr_list[1] = NULL; in lwip_gethostbyname_r()
214 h->aliases = NULL; in lwip_gethostbyname_r()
[all …]
Dapi_lib.c74 if (conn != NULL) { in netconn_new_with_proto_and_callback()
79 LWIP_ASSERT("freeing conn without freeing pcb", conn->pcb.tcp == NULL); in netconn_new_with_proto_and_callback()
88 return NULL; in netconn_new_with_proto_and_callback()
108 if (conn == NULL) { in netconn_delete()
140 LWIP_ERROR("netconn_getaddr: invalid conn", (conn != NULL), return ERR_ARG;); in netconn_getaddr()
141 LWIP_ERROR("netconn_getaddr: invalid addr", (addr != NULL), return ERR_ARG;); in netconn_getaddr()
142 LWIP_ERROR("netconn_getaddr: invalid port", (port != NULL), return ERR_ARG;); in netconn_getaddr()
171 LWIP_ERROR("netconn_bind: invalid conn", (conn != NULL), return ERR_ARG;); in netconn_bind()
197 LWIP_ERROR("netconn_connect: invalid conn", (conn != NULL), return ERR_ARG;); in netconn_connect()
222 LWIP_ERROR("netconn_disconnect: invalid conn", (conn != NULL), return ERR_ARG;); in netconn_disconnect()
[all …]
Dapi_msg.c88 if ((conn != NULL) && sys_mbox_valid(&conn->recvmbox)) { in recv_raw()
98 if(q != NULL) { in recv_raw()
101 q = NULL; in recv_raw()
105 if (q != NULL) { in recv_raw()
108 if (buf == NULL) { in recv_raw()
155 LWIP_ASSERT("recv_udp must have a pcb argument", pcb != NULL);
156 LWIP_ASSERT("recv_udp must have an argument", arg != NULL);
162 if ((conn == NULL) || !sys_mbox_valid(&conn->recvmbox) ||
165 if ((conn == NULL) || !sys_mbox_valid(&conn->recvmbox)) {
172 if (buf == NULL) {
[all …]
/lib/liblwip/src/core/
Dtimers.c88 sys_timeout(TCP_TMR_INTERVAL, tcpip_tcp_timer, NULL); in tcpip_tcp_timer()
107 sys_timeout(TCP_TMR_INTERVAL, tcpip_tcp_timer, NULL); in tcp_timer_needed()
124 sys_timeout(IP_TMR_INTERVAL, ip_reass_timer, NULL); in ip_reass_timer()
140 sys_timeout(ARP_TMR_INTERVAL, arp_timer, NULL); in arp_timer()
156 sys_timeout(DHCP_COARSE_TIMER_MSECS, dhcp_timer_coarse, NULL); in dhcp_timer_coarse()
170 sys_timeout(DHCP_FINE_TIMER_MSECS, dhcp_timer_fine, NULL); in dhcp_timer_fine()
186 sys_timeout(AUTOIP_TMR_INTERVAL, autoip_timer, NULL); in autoip_timer()
202 sys_timeout(IGMP_TMR_INTERVAL, igmp_timer, NULL); in igmp_timer()
218 sys_timeout(DNS_TMR_INTERVAL, dns_timer, NULL); in dns_timer()
226 sys_timeout(IP_TMR_INTERVAL, ip_reass_timer, NULL); in sys_timeouts_init()
[all …]
Dpbuf.c95 if(tcpip_callback_with_block(pbuf_free_ooseq_callback, NULL, 0) != ERR_OK) { \
127 for (pcb = tcp_active_pcbs; NULL != pcb; pcb = pcb->next) { in pbuf_free_ooseq()
128 if (NULL != pcb->ooseq) { in pbuf_free_ooseq()
132 pcb->ooseq = NULL; in pbuf_free_ooseq()
233 return NULL; in pbuf_alloc()
241 if (p == NULL) { in pbuf_alloc()
243 return NULL; in pbuf_alloc()
246 p->next = NULL; in pbuf_alloc()
273 if (q == NULL) { in pbuf_alloc()
278 return NULL; in pbuf_alloc()
[all …]
Dnetif.c115 netif_add(&loop_netif, &loop_ipaddr, &loop_netmask, &loop_gw, NULL, netif_loopif_init, ip_input); in netif_init()
117 …netif_add(&loop_netif, &loop_ipaddr, &loop_netmask, &loop_gw, NULL, netif_loopif_init, tcpip_input… in netif_init()
143 LWIP_ASSERT("No init function given", init != NULL); in netif_add()
152 netif->dhcp = NULL; in netif_add()
156 netif->autoip = NULL; in netif_add()
159 netif->status_callback = NULL; in netif_add()
162 netif->link_callback = NULL; in netif_add()
165 netif->igmp_mac_filter = NULL; in netif_add()
168 netif->loop_first = NULL; in netif_add()
169 netif->loop_last = NULL; in netif_add()
[all …]
Dtcp_out.c99 if (p != NULL) { in tcp_output_alloc_header()
128 if (pcb->unsent != NULL) { in tcp_send_fin()
130 for (last_unsent = pcb->unsent; last_unsent->next != NULL; in tcp_send_fin()
164 if ((seg = (struct tcp_seg *)memp_malloc(MEMP_TCP_SEG)) == NULL) { in tcp_create_segment()
167 return NULL; in tcp_create_segment()
170 seg->next = NULL; in tcp_create_segment()
189 return NULL; in tcp_create_segment()
249 pcb->unsent != NULL || in tcp_pbuf_prealloc()
250 pcb->unacked != NULL))) { in tcp_pbuf_prealloc()
256 if (p == NULL) { in tcp_pbuf_prealloc()
[all …]
Dtcp.c175 if ((pcb->refused_data != NULL) || (pcb->rcv_wnd != TCP_WND)) { in tcp_close_shutdown()
213 pcb = NULL; in tcp_close_shutdown()
219 pcb = NULL; in tcp_close_shutdown()
225 pcb = NULL; in tcp_close_shutdown()
252 pcb = NULL; in tcp_close_shutdown()
256 if (pcb != NULL && err == ERR_OK) { in tcp_close_shutdown()
326 if (pcb->refused_data != NULL) { in tcp_shutdown()
328 pcb->refused_data = NULL; in tcp_shutdown()
382 if (pcb->unacked != NULL) { in tcp_abandon()
385 if (pcb->unsent != NULL) { in tcp_abandon()
[all …]
Draw.c88 prev = NULL; in raw_input()
92 while ((eaten == 0) && (pcb != NULL)) { in raw_input()
102 if (pcb->recv != NULL) { in raw_input()
106 p = NULL; in raw_input()
108 if (prev != NULL) { in raw_input()
217 if (q == NULL) { in raw_sendto()
236 if ((netif = ip_route(ipaddr)) == NULL) { in raw_sendto()
268 NETIF_SET_HWADDRHINT(netif, NULL); in raw_sendto()
309 for(pcb2 = raw_pcbs; pcb2 != NULL; pcb2 = pcb2->next) { in raw_remove()
311 if (pcb2->next != NULL && pcb2->next == pcb) { in raw_remove()
[all …]
/lib/liblwip/src/netif/
Dslipif.c122 LWIP_ASSERT("netif != NULL", (netif != NULL)); in slipif_output()
123 LWIP_ASSERT("netif->state != NULL", (netif->state != NULL)); in slipif_output()
124 LWIP_ASSERT("p != NULL", (p != NULL)); in slipif_output()
135 for (q = p; q != NULL; q = q->next) { in slipif_output()
175 LWIP_ASSERT("netif != NULL", (netif != NULL)); in slipif_rxbyte()
176 LWIP_ASSERT("netif->state != NULL", (netif->state != NULL)); in slipif_rxbyte()
193 priv->p = priv->q = NULL; in slipif_rxbyte()
197 return NULL; in slipif_rxbyte()
200 return NULL; in slipif_rxbyte()
219 if (priv->p == NULL) { in slipif_rxbyte()
[all …]
/lib/liblwip/src/include/arch/
Dsys_arch.h37 #define SYS_MBOX_NULL NULL
38 #define SYS_SEM_NULL NULL
44 #define sys_sem_valid(sem) (((sem) != NULL) && (*(sem) != NULL))
45 #define sys_sem_set_invalid(sem) do { if((sem) != NULL) { *(sem) = NULL; }}while(0)
52 #define sys_mbox_valid(mbox) (((mbox) != NULL) && (*(mbox) != NULL))
53 #define sys_mbox_set_invalid(mbox) do { if((mbox) != NULL) { *(mbox) = NULL; }}while(0)
/lib/liblwip/src/core/snmp/
Dmib_structs.c102 while ((nif != NULL) && (i < ifidx)) in snmp_ifindextonetif()
122 while ((nif != NULL) && (nif != netif)) in snmp_netiftoifindex()
161 if (ln != NULL) in snmp_mib_ln_alloc()
163 ln->prev = NULL; in snmp_mib_ln_alloc()
164 ln->next = NULL; in snmp_mib_ln_alloc()
166 ln->nptr = NULL; in snmp_mib_ln_alloc()
183 if (lrn != NULL) in snmp_mib_lrn_alloc()
191 lrn->head = NULL; in snmp_mib_lrn_alloc()
192 lrn->tail = NULL; in snmp_mib_lrn_alloc()
221 LWIP_ASSERT("rn != NULL",rn != NULL); in snmp_mib_node_insert()
[all …]
Dmsg_in.c77 if (snmp1_pcb != NULL) in snmp_init()
116 vbo->ident = NULL; in snmp_error_response()
124 msg_ps->invb.head = NULL; in snmp_error_response()
125 msg_ps->invb.tail = NULL; in snmp_error_response()
200 if (vb != NULL) in snmp_msg_get_event()
202 vb->next = NULL; in snmp_msg_get_event()
203 vb->prev = NULL; in snmp_msg_get_event()
209 msg_ps->vb_ptr->ident = NULL; in snmp_msg_get_event()
219 if (vb->value != NULL) in snmp_msg_get_event()
240 en->get_value_a(request_id, &msg_ps->ext_object_def, 0, NULL); in snmp_msg_get_event()
[all …]
/tests/
Dpthreadtest.c40 return NULL; in thread_lock()
50 status = pthread_cond_wait(&cnd, NULL); in thread_cond()
56 return NULL; in thread_cond()
71 status = pthread_create(&thr, NULL, thread_simple, NULL); in main()
75 test_assert(result == NULL); in main()
80 status = pthread_create(&thr, NULL, thread_simple, (void *)1); in main()
89 status = pthread_mutex_init(&mtx, NULL); in main()
101 pthread_mutex_init(&mtx, NULL); in main()
102 status = pthread_create(&thr, NULL, thread_lock, (void *)1); in main()
119 status = pthread_cond_init(&cnd, NULL); in main()
[all …]
/lib/liblwip/test/unit/etharp/
Dtest_etharp.c37 fail_unless(p != NULL); in default_netif_linkoutput()
45 fail_unless(netif != NULL); in default_netif_init()
61 fail_unless(netif_default == NULL); in default_netif_add()
63 &test_gw, NULL, default_netif_init, NULL)); in default_netif_add()
81 if(p == NULL) { in create_arp_response()
151 fail_unless(pcb != NULL); in START_TEST()
152 if (pcb != NULL) { in START_TEST()
161 fail_unless(p != NULL); in START_TEST()
162 if (p != NULL) { in START_TEST()
174 idx = etharp_find_addr(NULL, &adrs[i], &unused_ethaddr, &unused_ipaddr); in START_TEST()
[all …]
/lib/liblwip/src/arch/
Dsys_arch.c66 static struct sys_thread *threads = NULL;
116 if (thread != NULL) { in introduce_thread()
132 struct sys_thread *st = NULL; in sys_thread_new()
138 NULL, in sys_thread_new()
147 if (NULL == st) { in sys_thread_new()
162 if (mbox == NULL) { in sys_mbox_new()
179 if ((mb != NULL) && (*mb != SYS_MBOX_NULL)) { in sys_mbox_free()
187 mbox->not_empty = mbox->not_full = mbox->mutex = NULL; in sys_mbox_free()
198 LWIP_ASSERT("invalid mbox", (mb != NULL) && (*mb != NULL)); in sys_mbox_trypost()
235 LWIP_ASSERT("invalid mbox", (mb != NULL) && (*mb != NULL)); in sys_mbox_post()
[all …]
/lib/liblwip/src/core/ipv4/
Dip_frag.c124 struct ip_reassdata *r, *prev = NULL; in ip_reass_tmr()
127 while (r != NULL) { in ip_reass_tmr()
166 if (prev != NULL) { in ip_reass_free_complete_datagram()
191 while (p != NULL) { in ip_reass_free_complete_datagram()
233 oldest = NULL; in ip_reass_remove_oldest_datagram()
234 prev = NULL; in ip_reass_remove_oldest_datagram()
237 while (r != NULL) { in ip_reass_remove_oldest_datagram()
241 if (oldest == NULL) { in ip_reass_remove_oldest_datagram()
248 if (r->next != NULL) { in ip_reass_remove_oldest_datagram()
253 if (oldest != NULL) { in ip_reass_remove_oldest_datagram()
[all …]
Digmp.c173 while (group != NULL) { in igmp_dump_group_list()
199 if (group != NULL) { in igmp_start()
204 if (netif->igmp_mac_filter != NULL) { in igmp_start()
226 struct igmp_group *prev = NULL; in igmp_stop()
230 while (group != NULL) { in igmp_stop()
239 if (prev != NULL) { in igmp_stop()
243 if (netif->igmp_mac_filter != NULL) { in igmp_stop()
273 while (group != NULL) { in igmp_report_groups()
294 while (group != NULL) { in igmp_lookfor_group()
304 return NULL; in igmp_lookfor_group()
[all …]
/lib/libc/posix/
Dpthread.c62 if (thr == NULL) { in __pthread_init()
68 thr->entry = NULL; in __pthread_init()
219 if (mtx == NULL) { in pthread_mutex_init()
234 if (mtx == NULL) { in pthread_mutex_destroy()
239 *mutex = NULL; in pthread_mutex_destroy()
250 if (*mutex == NULL) { in pthread_mutex_lock()
251 int status = pthread_mutex_init(mutex, NULL); in pthread_mutex_lock()
271 if (*mutex == NULL) { in pthread_mutex_trylock()
272 int status = pthread_mutex_init(mutex, NULL); in pthread_mutex_trylock()
292 if (*mutex == NULL) { in pthread_mutex_unlock()
[all …]
/lib/liblwip/test/unit/tcp/
Dtest_tcp_oos.c32 while(seg != NULL) { in tcp_oos_count()
44 while(seg != NULL) { in tcp_oos_pbuf_count()
64 while(seg != NULL) { in tcp_oos_seg_seqno()
88 while(seg != NULL) { in tcp_oos_seg_tcplen()
111 while(seg != NULL) { in tcp_oos_tcplen()
167 EXPECT_RET(pcb != NULL); in START_TEST()
186 p_fin = tcp_create_rx_segment(pcb, NULL, 0,16, 0, TCP_ACK|TCP_FIN); in START_TEST()
187 EXPECT(pinseq != NULL); in START_TEST()
188 EXPECT(p_8_9 != NULL); in START_TEST()
189 EXPECT(p_4_8 != NULL); in START_TEST()
[all …]
Dtest_tcp.c48 netif_list = NULL; in tcp_teardown()
64 fail_unless(pcb != NULL); in START_TEST()
65 if (pcb != NULL) { in START_TEST()
98 EXPECT_RET(pcb != NULL); in START_TEST()
103 EXPECT(p != NULL); in START_TEST()
104 if (p != NULL) { in START_TEST()
150 EXPECT_RET(pcb != NULL); in START_TEST()
165 p = tcp_create_rx_segment(pcb, NULL, 0, 0, 4, TCP_ACK); in START_TEST()
166 EXPECT_RET(p != NULL); in START_TEST()
169 EXPECT_RET(pcb->unacked == NULL); in START_TEST()
[all …]
/lib/liblwip/src/include/lwip/
Dnetifapi.h93 #define netifapi_netif_remove(n) netifapi_netif_common(n, netif_remove, NULL)
94 #define netifapi_netif_set_up(n) netifapi_netif_common(n, netif_set_up, NULL)
95 #define netifapi_netif_set_down(n) netifapi_netif_common(n, netif_set_down, NULL)
96 #define netifapi_netif_set_default(n) netifapi_netif_common(n, netif_set_default, NULL)
97 #define netifapi_dhcp_start(n) netifapi_netif_common(n, NULL, dhcp_start)
98 #define netifapi_dhcp_stop(n) netifapi_netif_common(n, dhcp_stop, NULL)
99 #define netifapi_autoip_start(n) netifapi_netif_common(n, NULL, autoip_start)
100 #define netifapi_autoip_stop(n) netifapi_netif_common(n, NULL, autoip_stop)
Dtcp_impl.h84 #define tcp_do_output_nagle(tpcb) ((((tpcb)->unacked == NULL) || \
86 (((tpcb)->unsent != NULL) && (((tpcb)->unsent->next != NULL) || \
196 LWIP_EVENT_ACCEPT, NULL, 0, err)
198 LWIP_EVENT_SENT, NULL, space, ERR_OK)
202 LWIP_EVENT_RECV, NULL, 0, ERR_OK)
204 LWIP_EVENT_CONNECTED, NULL, 0, (err))
206 LWIP_EVENT_POLL, NULL, 0, ERR_OK)
207 #define TCP_EVENT_ERR(errf,arg,err) lwip_tcp_event((arg), NULL, \
208 LWIP_EVENT_ERR, NULL, 0, (err))
214 if((pcb)->accept != NULL) \
[all …]
/lib/liblwip/src/netif/ppp/
Dauth.c139 int (*idle_time_hook) __P((struct ppp_idle *)) = NULL;
142 int (*pap_check_hook) __P((void)) = NULL;
147 struct wordlist **popts)) = NULL;
150 void (*pap_logout_hook) __P((void)) = NULL;
153 int (*pap_passwd_hook) __P((char *user, char *passwd)) = NULL;
253 OPT_PRIV|OPT_STATIC, NULL, MAXNAMELEN },
255 "Set name for auth with peer", OPT_STATIC, NULL, MAXNAMELEN },
273 NULL, MAXSECRETLEN },
279 { NULL }
298 if (ufile == NULL) {
[all …]

12345