• Home
  • Raw
  • Download

Lines Matching refs:bptr

616 	char *bptr;  in tcp_emu()  local
965 if ((bptr = (char *)strstr(m->m_data, "ORT")) != NULL) { in tcp_emu()
969 x = sscanf(bptr, "ORT %u,%u,%u,%u,%u,%u\r\n%256[^\177]", in tcp_emu()
992 m->m_len = bptr - m->m_data; /* Adjust length */ in tcp_emu()
993 m->m_len += snprintf(bptr, m->m_hdr.mh_size - m->m_len, in tcp_emu()
997 } else if ((bptr = (char *)strstr(m->m_data, "27 Entering")) != NULL) { in tcp_emu()
1001 x = sscanf(bptr, "27 Entering Passive Mode (%u,%u,%u,%u,%u,%u)\r\n%256[^\177]", in tcp_emu()
1024 m->m_len = bptr - m->m_data; /* Adjust length */ in tcp_emu()
1025 m->m_len += snprintf(bptr, m->m_hdr.mh_size - m->m_len, in tcp_emu()
1059 if ((bptr = (char *)strstr(m->m_data, "DCC")) == NULL) in tcp_emu()
1063 if (sscanf(bptr, "DCC CHAT %256s %u %u", buff, &laddr, &lport) == 3) { in tcp_emu()
1067 m->m_len = bptr - m->m_data; /* Adjust length */ in tcp_emu()
1068 m->m_len += snprintf(bptr, m->m_hdr.mh_size, in tcp_emu()
1072 } else if (sscanf(bptr, "DCC SEND %256s %u %u %u", buff, &laddr, &lport, &n1) == 4) { in tcp_emu()
1076 m->m_len = bptr - m->m_data; /* Adjust length */ in tcp_emu()
1077 m->m_len += snprintf(bptr, m->m_hdr.mh_size, in tcp_emu()
1081 } else if (sscanf(bptr, "DCC MOVE %256s %u %u %u", buff, &laddr, &lport, &n1) == 4) { in tcp_emu()
1085 m->m_len = bptr - m->m_data; /* Adjust length */ in tcp_emu()
1086 m->m_len += snprintf(bptr, m->m_hdr.mh_size, in tcp_emu()
1130 bptr = m->m_data; in tcp_emu()
1131 while (bptr < m->m_data + m->m_len) { in tcp_emu()
1145 if (*bptr++ != ra_tbl[ra]) { in tcp_emu()
1155 if (*bptr == 0x50) { in tcp_emu()
1157 bptr++; in tcp_emu()
1159 } else if (*bptr++ != ra_tbl[ra]) { in tcp_emu()
1169 bptr++; in tcp_emu()
1178 if (*(bptr + 1) == 0x02) in tcp_emu()
1179 bptr += 8; in tcp_emu()
1181 bptr += 4; in tcp_emu()
1188 lport = (((u_char*)bptr)[0] << 8) in tcp_emu()
1189 + ((u_char *)bptr)[1]; in tcp_emu()
1206 *(u_char *)bptr++ = (p >> 8) & 0xff; in tcp_emu()
1207 *(u_char *)bptr++ = p & 0xff; in tcp_emu()