Home | History | Annotate | Download | only in src

Lines Matching refs:nb

559             const unsigned char *packet, int nb, struct filter *filter,
629 "%s (%d/%d)", ncpaddr_ntoa(&dstaddr), len, nb);
643 "%s (%d/%d)", ncpaddr_ntoa(&dstaddr), len, nb);
665 len, nb);
682 nb - (payload - packet) - sizeof *uh - 4, filter,
717 "%s (%d/%d)", ncpaddr_ntoa(&dstaddr), datalen, nb);
730 "%s (%d/%d)", ncpaddr_ntoa(&dstaddr), datalen, nb);
743 "%s (%d/%d)", ncpaddr_ntoa(&dstaddr), datalen, nb);
749 result = PacketCheck(bundle, AF_INET6, payload, nb - (payload - packet),
770 result = PacketCheck(bundle, AF_INET, payload, nb - (payload - packet),
840 (u_long)ntohl(th->th_seq), (u_long)ntohl(th->th_ack), len, nb);
842 if ((th->th_flags & TH_SYN) && nb > 40) {
864 "%s (%d)", ncpaddr_ntoa(&dstaddr), nb);
909 size_t nb;
914 nb = m_length(bp);
915 if (nb > sizeof tun.data) {
917 l->name, nb, (int)(sizeof tun.data));
921 mbuf_Read(bp, tun.data, nb);
924 if (PacketCheck(bundle, af, tun.data, nb, &bundle->filter.in,
937 nb += sizeof tun - sizeof tun.data;
942 nw = write(bundle->dev.fd, data, nb);
943 if (nw != (ssize_t)nb) {
946 l->name, nb, strerror(errno));
948 log_Printf(LogERROR, "ip_Input: %s: wrote %zd, got %zd\n", l->name, nb,
952 return nb;
958 int nb;
968 nb = ip_Input(bundle, l, bp, AF_INET);
969 ipcp_AddInOctets(&bundle->ncp.ipcp, nb);
978 int nb;
988 nb = ip_Input(bundle, l, bp, AF_INET6);
989 ipv6cp_AddInOctets(&bundle->ncp.ipv6cp, nb);