Home
last modified time | relevance | path

Searched refs:nb (Results 1 – 16 of 16) sorted by relevance

/components/net/lwip/lwip-2.1.2/src/netif/ppp/
A Dpppos.c204 struct pbuf *nb; in pppos_write() local
214 if (nb == NULL) { in pppos_write()
256 struct pbuf *nb, *p; in pppos_netif_output() local
265 if (nb == NULL) { in pppos_netif_output()
837 nb->len = 0; in pppos_output_append()
847 *((u8_t*)nb->payload + nb->len++) = PPP_ESCAPE; in pppos_output_append()
848 *((u8_t*)nb->payload + nb->len++) = c ^ PPP_TRANS; in pppos_output_append()
850 *((u8_t*)nb->payload + nb->len++) = c; in pppos_output_append()
871 if (nb->len > 0) { in pppos_output_last()
883 pbuf_free(nb); in pppos_output_last()
[all …]
A Dvj.c459 vj_uncompress_uncomp(struct pbuf *nb, struct vjcompress *comp) in vj_uncompress_uncomp() argument
465 ip = (struct ip_hdr *)nb->payload; in vj_uncompress_uncomp()
468 || hlen + sizeof(struct tcp_hdr) > nb->len in vj_uncompress_uncomp()
470 > nb->len in vj_uncompress_uncomp()
473 IPH_PROTO(ip), hlen, nb->len)); in vj_uncompress_uncomp()
482 MEMCPY(&cs->cs_hdr, nb->payload, hlen); in vj_uncompress_uncomp()
497 vj_uncompress_tcp(struct pbuf **nb, struct vjcompress *comp) in vj_uncompress_tcp() argument
503 struct pbuf *n0 = *nb; in vj_uncompress_tcp()
676 *nb = n0; in vj_uncompress_tcp()
A Dccp.c1112 int nb; in ccp_reqci() local
1242 ho->deflate_size = nb = DEFLATE_SIZE(p[2]); in ccp_reqci()
1245 || nb > ao->deflate_size || nb < DEFLATE_MIN_WORKS) { in ccp_reqci()
1266 if (res < 0 || nb == DEFLATE_MIN_WORKS || dont_nak) { in ccp_reqci()
1272 --nb; in ccp_reqci()
1273 p[2] = DEFLATE_MAKE_OPT(nb); in ccp_reqci()
1286 ho->bsd_bits = nb = BSD_NBITS(p[2]); in ccp_reqci()
1288 || nb > ao->bsd_bits || nb < BSD_MIN_BITS) { in ccp_reqci()
1308 if (res < 0 || nb == BSD_MIN_BITS || dont_nak) { in ccp_reqci()
1315 --nb; in ccp_reqci()
[all …]
A Dutils.c741 ssize_t nb;
745 nb = read(fd, ptr, count - done);
746 if (nb < 0) {
751 if (nb == 0)
753 done += nb;
754 ptr += nb;
/components/net/lwip/lwip-2.0.3/src/netif/ppp/
A Dpppos.c203 struct pbuf *nb; in pppos_write() local
211 if (nb == NULL) { in pppos_write()
250 struct pbuf *nb, *p; in pppos_netif_output() local
257 if (nb == NULL) { in pppos_netif_output()
817 nb->len = 0; in pppos_output_append()
827 *((u8_t*)nb->payload + nb->len++) = PPP_ESCAPE; in pppos_output_append()
828 *((u8_t*)nb->payload + nb->len++) = c ^ PPP_TRANS; in pppos_output_append()
830 *((u8_t*)nb->payload + nb->len++) = c; in pppos_output_append()
851 if (nb->len > 0) { in pppos_output_last()
863 pbuf_free(nb); in pppos_output_last()
[all …]
A Dvj.c464 vj_uncompress_uncomp(struct pbuf *nb, struct vjcompress *comp) in vj_uncompress_uncomp() argument
470 ip = (struct ip_hdr *)nb->payload; in vj_uncompress_uncomp()
473 || hlen + sizeof(struct tcp_hdr) > nb->len in vj_uncompress_uncomp()
475 > nb->len in vj_uncompress_uncomp()
478 IPH_PROTO(ip), hlen, nb->len)); in vj_uncompress_uncomp()
501 vj_uncompress_tcp(struct pbuf **nb, struct vjcompress *comp) in vj_uncompress_tcp() argument
507 struct pbuf *n0 = *nb; in vj_uncompress_tcp()
685 *nb = n0; in vj_uncompress_tcp()
A Dccp.c1112 int nb; in ccp_reqci() local
1242 ho->deflate_size = nb = DEFLATE_SIZE(p[2]); in ccp_reqci()
1245 || nb > ao->deflate_size || nb < DEFLATE_MIN_WORKS) { in ccp_reqci()
1266 if (res < 0 || nb == DEFLATE_MIN_WORKS || dont_nak) { in ccp_reqci()
1272 --nb; in ccp_reqci()
1273 p[2] = DEFLATE_MAKE_OPT(nb); in ccp_reqci()
1286 ho->bsd_bits = nb = BSD_NBITS(p[2]); in ccp_reqci()
1288 || nb > ao->bsd_bits || nb < BSD_MIN_BITS) { in ccp_reqci()
1308 if (res < 0 || nb == BSD_MIN_BITS || dont_nak) { in ccp_reqci()
1315 --nb; in ccp_reqci()
[all …]
A Dutils.c743 ssize_t nb;
747 nb = read(fd, ptr, count - done);
748 if (nb < 0) {
753 if (nb == 0)
755 done += nb;
756 ptr += nb;
/components/net/lwip/lwip-1.4.1/src/netif/ppp/
A Dppp.c722 pbuf_free(nb); in nPut()
741 if (nb && (PBUF_POOL_BUFSIZE - nb->len) < 2) { in pppAppend()
748 nb = tb; in pppAppend()
751 if (nb) { in pppAppend()
753 *((u_char*)nb->payload + nb->len++) = PPP_ESCAPE; in pppAppend()
754 *((u_char*)nb->payload + nb->len++) = c ^ PPP_TRANS; in pppAppend()
756 *((u_char*)nb->payload + nb->len++) = c; in pppAppend()
1671 pd, nb->len, LWIP_MIN(nb->len * 2, 40), nb->payload)); in pppInput()
1693 nb = pppSingleBuf(nb); in pppInput()
1694 (*protp->input)(pd, nb->payload, nb->len); in pppInput()
[all …]
A Dvj.h153 extern int vj_uncompress_uncomp(struct pbuf *nb, struct vjcompress *comp);
154 extern int vj_uncompress_tcp (struct pbuf **nb, struct vjcompress *comp);
A Dvj.c427 vj_uncompress_uncomp(struct pbuf *nb, struct vjcompress *comp) in vj_uncompress_uncomp() argument
433 ip = (struct ip_hdr *)nb->payload; in vj_uncompress_uncomp()
436 || hlen + sizeof(struct tcp_hdr) > nb->len in vj_uncompress_uncomp()
438 > nb->len in vj_uncompress_uncomp()
441 IPH_PROTO(ip), hlen, nb->len)); in vj_uncompress_uncomp()
464 vj_uncompress_tcp(struct pbuf **nb, struct vjcompress *comp) in vj_uncompress_tcp() argument
470 struct pbuf *n0 = *nb; in vj_uncompress_tcp()
640 *nb = n0; in vj_uncompress_tcp()
/components/net/lwip/lwip-2.0.3/src/include/netif/ppp/
A Dvj.h156 extern int vj_uncompress_uncomp(struct pbuf *nb, struct vjcompress *comp);
157 extern int vj_uncompress_tcp (struct pbuf **nb, struct vjcompress *comp);
/components/net/lwip/lwip-2.1.2/src/include/netif/ppp/
A Dvj.h160 extern int vj_uncompress_uncomp(struct pbuf *nb, struct vjcompress *comp);
161 extern int vj_uncompress_tcp (struct pbuf **nb, struct vjcompress *comp);
/components/lwp/terminal/freebsd/
A Dtty_ttydisc.c864 int curidx = UTF8_STACKBUF - 1, cwidth = 1, nb = 0; in ttydisc_rubchar() local
870 nb++; in ttydisc_rubchar()
873 while (CTL_UTF8_CONT(c) && nb < UTF8_STACKBUF) in ttydisc_rubchar()
884 nb++; in ttydisc_rubchar()
890 if (nb < UTF8_STACKBUF) in ttydisc_rubchar()
892 nb * sizeof(uint8_t)); in ttydisc_rubchar()
894 if (nb == UTF8_STACKBUF && CTL_UTF8_CONT(bytes[0])) in ttydisc_rubchar()
906 codepoint = teken_utf8_bytes_to_codepoint(bytes, nb); in ttydisc_rubchar()
916 ttyinq_write(&tp->t_inq, bytes, nb, 0); in ttydisc_rubchar()
A Dtty_compat.c672 int nb; in lwp_tty_ioctl_adapter() local
674 error = ioctl_emit(TIOCGPTN, (rt_caddr_t)&nb, fflags, td); in lwp_tty_ioctl_adapter()
676 error = copyout(&nb, (void *)args->arg, sizeof(int)); in lwp_tty_ioctl_adapter()
/components/net/lwip/lwip-2.1.2/src/api/
A Dsockets.c3787 struct netbuf *nb; in lwip_ioctl() local
3789 nb = sock->lastdata.netbuf; in lwip_ioctl()
3790 *((int *)argp) = nb->p->tot_len; in lwip_ioctl()

Completed in 42 milliseconds