Home
last modified time | relevance | path

Searched refs:protocol (Results 1 – 25 of 107) sorted by relevance

12345

/AliOS-Things-master/components/posix/src/
A Dpthread_mutex.c201 attr->protocol = DEFAULT_MUTEX_PROCOCOL; in pthread_mutexattr_init()
249 int pthread_mutexattr_getprotocol(const pthread_mutexattr_t *attr, int *protocol) in pthread_mutexattr_getprotocol() argument
251 if ((attr == NULL) || (protocol == NULL)) { in pthread_mutexattr_getprotocol()
257 *protocol = attr->protocol; in pthread_mutexattr_getprotocol()
262 int pthread_mutexattr_setprotocol(pthread_mutexattr_t *attr, int protocol) in pthread_mutexattr_setprotocol() argument
268 if ((protocol < PTHREAD_PRIO_NONE) || (protocol > PTHREAD_PRIO_PROTECT)) { in pthread_mutexattr_setprotocol()
274 attr->protocol = protocol; in pthread_mutexattr_setprotocol()
/AliOS-Things-master/components/lwip/lwip2.0.0/netif/ppp/
A Dppp.c577 protocol = PPP_COMP; in ppp_netif_output()
769 u16_t protocol; in ppp_input() local
807 || protocol == PPP_LQR in ppp_input()
810 || protocol == PPP_PAP in ppp_input()
813 || protocol == PPP_CHAP in ppp_input()
816 || protocol == PPP_EAP in ppp_input()
831 if (pcb->settings.require_mppe && protocol != PPP_COMP && protocol < 0x8000) { in ppp_input()
861 protocol = pl[0]; in ppp_input()
870 switch(protocol) { in ppp_input()
924 if (protp->protocol == protocol) { in ppp_input()
[all …]
A Dmppe.c193 mppe_compress(ppp_pcb *pcb, ppp_mppe_state *state, struct pbuf **pb, u16_t protocol) in mppe_compress() argument
204 np = pbuf_alloc(PBUF_RAW, MPPE_OVHD + sizeof(protocol) + (*pb)->tot_len, PBUF_POOL); in mppe_compress()
210 pbuf_header(np, -(s16_t)(MPPE_OVHD + sizeof(protocol))); in mppe_compress()
218 pbuf_header(np, (s16_t)(MPPE_OVHD + sizeof(protocol))); in mppe_compress()
245 pl[0] = protocol >> 8; in mppe_compress()
246 pl[1] = protocol; in mppe_compress()
A Ddemand.c135 sifnpmode(pcb, protp->protocol & ~0x8000, NPMODE_QUEUE); in demand_block()
152 sifnpmode(pcb, protp->protocol & ~0x8000, NPMODE_ERROR); in demand_discard()
178 sifnpmode(pcb, protp->protocol & ~0x8000, NPMODE_PASS); in demand_unblock()
456 if (protp->protocol < 0xC000 && (protp->protocol & ~0x8000) == proto) {
A Dauth.c753 if (protp->protocol != PPP_LCP in link_established()
947 || protp->protocol == PPP_ECP in start_networks()
950 || protp->protocol == PPP_CCP in start_networks()
979 if (protp->protocol < 0xC000 in continue_networks()
981 && protp->protocol != PPP_CCP in continue_networks()
984 && protp->protocol != PPP_ECP in continue_networks()
1031 void auth_peer_fail(ppp_pcb *pcb, int protocol) { in auth_peer_fail() argument
1032 LWIP_UNUSED_ARG(protocol); in auth_peer_fail()
1053 switch (protocol) { in auth_peer_success()
1118 LWIP_UNUSED_ARG(protocol); in auth_withpeer_fail()
[all …]
A Dfsm.c329 FSMDEBUG(("fsm_input(%x): Rcvd short header.", f->protocol)); in fsm_input()
336 FSMDEBUG(("fsm_input(%x): Rcvd illegal length.", f->protocol)); in fsm_input()
340 FSMDEBUG(("fsm_input(%x): Rcvd short packet.", f->protocol)); in fsm_input()
347 f->protocol, f->state)); in fsm_input()
748 MAKEHEADER(outp, f->protocol); in fsm_sconfreq()
792 MAKEHEADER(outp, f->protocol); in fsm_sdata()
A Dpppos.c59 static err_t pppos_netif_output(ppp_pcb *ppp, void *ctx, struct pbuf *pb, u16_t protocol);
247 pppos_netif_output(ppp_pcb *ppp, void *ctx, struct pbuf *pb, u16_t protocol) in pppos_netif_output() argument
277 if (!pppos->pcomp || protocol > 0xFF) { in pppos_netif_output()
278 err = pppos_output_append(pppos, err, nb, (protocol >> 8) & 0xFF, 1, &fcs_out); in pppos_netif_output()
280 err = pppos_output_append(pppos, err, nb, protocol & 0xFF, 1, &fcs_out); in pppos_netif_output()
294 … ("pppos_netif_output[%d]: proto=0x%"X16_F", len = %d\n", ppp->netif->num, protocol, pb->tot_len)); in pppos_netif_output()
296 …_output[%d]: output failed proto=0x%"X16_F", len = %d\n", ppp->netif->num, protocol, pb->tot_len)); in pppos_netif_output()
/AliOS-Things-master/components/mqtt/MQTTPacket/
A DMQTTConnectServer.c30 int MQTTPacket_checkVersion(MQTTString* protocol, int version) in MQTTPacket_checkVersion() argument
34 if (version == 3 && memcmp(protocol->lenstring.data, "MQIsdp", in MQTTPacket_checkVersion()
35 min(6, protocol->lenstring.len)) == 0) in MQTTPacket_checkVersion()
37 else if (version == 4 && memcmp(protocol->lenstring.data, "MQTT", in MQTTPacket_checkVersion()
38 min(4, protocol->lenstring.len)) == 0) in MQTTPacket_checkVersion()
/AliOS-Things-master/components/py_engine/engine/extmod/
A Dvirtpin.c31 mp_pin_p_t *pin_p = (mp_pin_p_t *)s->type->protocol; in mp_virtual_pin_read()
37 mp_pin_p_t *pin_p = (mp_pin_p_t *)s->type->protocol; in mp_virtual_pin_write()
A Dmachine_i2c.c270 mp_machine_i2c_p_t *i2c_p = (mp_machine_i2c_p_t *)self->type->protocol; in mp_machine_i2c_transfer_adaptor()
289 mp_machine_i2c_p_t *i2c_p = (mp_machine_i2c_p_t *)self->type->protocol; in mp_machine_i2c_readfrom()
296 mp_machine_i2c_p_t *i2c_p = (mp_machine_i2c_p_t *)self->type->protocol; in mp_machine_i2c_writeto()
307 mp_machine_i2c_p_t *i2c_p = (mp_machine_i2c_p_t *)self->type->protocol; in machine_i2c_init()
319 mp_machine_i2c_p_t *i2c_p = (mp_machine_i2c_p_t *)self->type->protocol; in machine_i2c_deinit()
343 mp_machine_i2c_p_t *i2c_p = (mp_machine_i2c_p_t *)self->type->protocol; in machine_i2c_start()
357 mp_machine_i2c_p_t *i2c_p = (mp_machine_i2c_p_t *)self->type->protocol; in machine_i2c_stop()
371 mp_machine_i2c_p_t *i2c_p = (mp_machine_i2c_p_t *)self->type->protocol; in machine_i2c_readinto()
395 mp_machine_i2c_p_t *i2c_p = (mp_machine_i2c_p_t *)self->type->protocol; in machine_i2c_write()
491 mp_machine_i2c_p_t *i2c_p = (mp_machine_i2c_p_t *)self->type->protocol; in machine_i2c_writevto()
[all …]
A Dmachine_spi.c46 mp_machine_spi_p_t *spi_p = (mp_machine_spi_p_t *)s->type->protocol; in machine_spi_init()
54 mp_machine_spi_p_t *spi_p = (mp_machine_spi_p_t *)s->type->protocol; in machine_spi_deinit()
64 mp_machine_spi_p_t *spi_p = (mp_machine_spi_p_t *)s->type->protocol; in mp_machine_spi_transfer()
257 .protocol = &mp_machine_soft_spi_p,
A Dmachine_signal.c54 pin_p = (mp_pin_p_t *)pin_base->type->protocol; in signal_make_new()
181 .protocol = &signal_pin_p,
/AliOS-Things-master/components/lwip/lwip2.0.0/
A DREADME.md14 LWIP is a tcp/ip protocol stack.
17 Support tcp/ip communication and some applications which is based on tcp/ip protocol stack.
/AliOS-Things-master/components/lwip/lwip2.0.0/core/
A Daf_packet.c142 alloc_pkt_socket(int type, int protocol) in alloc_pkt_socket() argument
170 psockets[i].protocol = protocol; in alloc_pkt_socket()
194 sock->protocol= 0; in free_pkt_socket()
202 packet_socket(int domain, int type, int protocol) in packet_socket() argument
206 LWIP_DEBUGF(PACKETS_DEBUG, ("packet_socket (%d, %d, %d)\n", domain, type, protocol)); in packet_socket()
218 s = alloc_pkt_socket(type, protocol); in packet_socket()
957 if((eth_hdr->type == sock->protocol) in packet_input()
958 || (eth_vlan_hdr->tpid == sock->protocol) in packet_input()
959 || (pall == sock->protocol)) in packet_input()
967 if((eth_hdr->type == sock->protocol) in packet_input()
[all …]
A Draw.c160 if ((pcb->protocol == proto) && raw_input_match(pcb, broadcast)) { in raw_input()
370 …u16_t chksum = ip6_chksum_pseudo(p, pcb->protocol, p->tot_len, ip_2_ip6(src_ip), ip_2_ip6(dst_ip)); in raw_sendto()
377 err = ip_output_if(q, src_ip, dst_ip, pcb->ttl, pcb->tos, pcb->protocol, netif); in raw_sendto()
456 pcb->protocol = proto; in raw_new()
/AliOS-Things-master/hardware/chip/haas1000/drivers/net/lwip/src/include/netif/ppp/
A Dppp_impl.h153 err_t (*netif_output)(ppp_pcb *pcb, void *ctx, struct pbuf *p, u_short protocol);
278 u_short protocol; /* PPP protocol number */ member
563 void auth_peer_fail(ppp_pcb *pcb, int protocol);
565 void auth_peer_success(ppp_pcb *pcb, int protocol, int prot_flavor, const char *name, int namelen);
568 void auth_withpeer_fail(ppp_pcb *pcb, int protocol);
570 void auth_withpeer_success(ppp_pcb *pcb, int protocol, int prot_flavor);
/AliOS-Things-master/components/lwip/lwip2.0.0/include/netif/ppp/
A Dppp_impl.h153 err_t (*netif_output)(ppp_pcb *pcb, void *ctx, struct pbuf *p, u_short protocol);
278 u_short protocol; /* PPP protocol number */ member
563 void auth_peer_fail(ppp_pcb *pcb, int protocol);
565 void auth_peer_success(ppp_pcb *pcb, int protocol, int prot_flavor, const char *name, int namelen);
568 void auth_withpeer_fail(ppp_pcb *pcb, int protocol);
570 void auth_withpeer_success(ppp_pcb *pcb, int protocol, int prot_flavor);
/AliOS-Things-master/components/netmgr/net/include/sys/
A Dsocket.h99 int net_socket(int domain, int type, int protocol);
180 static inline int socket(int domain, int type, int protocol) in socket() argument
182 return net_socket(domain, type, protocol); in socket()
236 #define socket(domain,type,protocol) net_socket(domain,type,protocol) argument
/AliOS-Things-master/components/lwip/lwip2.0.0/include/lwip/
A Daf_packet.h42 int protocol; /* protocol */ member
105 int packet_socket(int domain, int type, int protocol);
/AliOS-Things-master/components/py_engine/modules/network/http/
A Dhttputility.c86 const char *protocol = "https"; in parse_url() local
88 const char *protocol = "http"; in parse_url() local
91 if (strncmp(url_dup, protocol, strlen(protocol)) == 0) { in parse_url()
92 start = url_dup + strlen(protocol) + 3; in parse_url()
/AliOS-Things-master/components/amp/engine/duktape_engine/addons/network/http/
A Dmodule_http.c89 const char *protocol = "https"; in parse_url() local
91 const char *protocol = "http"; in parse_url() local
94 if (strncmp(url_dup, protocol, strlen(protocol)) == 0) in parse_url()
96 start = url_dup + strlen(protocol) + 3; in parse_url()
/AliOS-Things-master/components/posix/include/
A Dpthread.h72 int protocol; member
161 int pthread_mutexattr_setprotocol(pthread_mutexattr_t *attr, int protocol);
162 …thread_mutexattr_getprotocol(const pthread_mutexattr_t *__restrict attr, int *__restrict protocol);
/AliOS-Things-master/components/py_engine/engine/py/
A Dstream.c89 const mp_stream_p_t *stream_p = type->protocol; in mp_get_stream_raise()
510 const mp_stream_p_t *stream_p = o->type->protocol; in mp_stream_posix_write()
521 const mp_stream_p_t *stream_p = o->type->protocol; in mp_stream_posix_read()
532 const mp_stream_p_t *stream_p = o->type->protocol; in mp_stream_posix_lseek()
545 const mp_stream_p_t *stream_p = o->type->protocol; in mp_stream_posix_fsync()
/AliOS-Things-master/components/py_engine/engine/shared/runtime/
A Dsys_stdio_mphal.c140 .protocol = &stdio_obj_stream_p,
174 .protocol = &stdio_buffer_obj_stream_p,
/AliOS-Things-master/components/netmgr/net/
A Dnet_impl.c156 int net_socket(int domain, int type, int protocol) in net_socket() argument
159 return lwip_socket(domain, type, protocol); in net_socket()

Completed in 56 milliseconds

12345