link 56 src/dps8/dps8_absi.c int link; link 192 src/dps8/dps8_absi.c ret = udp_create (cptr, & absi_state[unitno].link); link 211 src/dps8/dps8_absi.c if (absi_state[unitno].link == NOLINK) link 214 src/dps8/dps8_absi.c ret = udp_release (absi_state[unitno].link); link 217 src/dps8/dps8_absi.c absi_state[unitno].link = NOLINK; link 263 src/dps8/dps8_absi.c absi_state[i].link = NOLINK; link 364 src/dps8/dps8_absi.c if (absi_state[unit].link == NOLINK) link 367 src/dps8/dps8_absi.c int sz = udp_receive (absi_state[unit].link, pkt, psz); link 387 src/dps8/dps8_absi.c int rc = udp_send (absi_state[unit].link, pkt, (uint16_t) sz, link 268 src/dps8/dps8_dia.c ret = udp_create (cptr, & dia_data.dia_unit_data[unitno].link); link 287 src/dps8/dps8_dia.c if (dia_data.dia_unit_data[unitno].link == NOLINK) link 290 src/dps8/dps8_dia.c ret = udp_release (dia_data.dia_unit_data[unitno].link); link 293 src/dps8/dps8_dia.c dia_data.dia_unit_data[unitno].link = NOLINK; link 376 src/dps8/dps8_dia.c dia_data.dia_unit_data[unit_num].link = -1; link 429 src/dps8/dps8_dia.c int rc = dn_udp_send (dia_data.dia_unit_data[dev_unit_idx].link, link 895 src/dps8/dps8_dia.c int sz = dn_udp_receive (dia_data.dia_unit_data[unitno].link, pkt, psz); link 941 src/dps8/dps8_dia.c if (dia_data.dia_unit_data[unit_num].link >= 0) link 31 src/dps8/dps8_dia.h int link; link 160 src/dps8/h316_imp.h int32_t link; // h316_udp link number link 133 src/dps8/udplib.c static int udp_parse_remote (int link, char * premote) link 157 src/dps8/udplib.c memset (udp_links [link] . lport, 0, sizeof (udp_links [link] . lport)); link 158 src/dps8/udplib.c memset (udp_links [link] . rhost, 0, sizeof (udp_links [link] . rhost)); link 159 src/dps8/udplib.c memset (udp_links [link] . rport, 0, sizeof (udp_links [link] . rport)); link 165 src/dps8/udplib.c sprintf (udp_links [link] . lport, "%d", lportno); link 166 src/dps8/udplib.c udp_links [link] . lportno = lportno; link 167 src/dps8/udplib.c sprintf (udp_links [link] . rhost, "localhost"); link 168 src/dps8/udplib.c sprintf (udp_links [link] . rport, "%d", rport); link 169 src/dps8/udplib.c udp_links [link] . rportno = rport; link 177 src/dps8/udplib.c sprintf (udp_links [link] . lport, "%d", lportno); link 178 src/dps8/udplib.c udp_links [link] . lportno = lportno; link 185 src/dps8/udplib.c sprintf (udp_links [link] . rhost, "%s", host); link 186 src/dps8/udplib.c sprintf (udp_links [link] . rport, "%s", port); link 187 src/dps8/udplib.c udp_links [link] . rportno = atoi (port); link 188 src/dps8/udplib.c if (udp_links [link] . lport [0] == '\0') link 190 src/dps8/udplib.c strcpy (udp_links [link] . lport, port); link 191 src/dps8/udplib.c udp_links [link] . lportno = atoi (port); link 193 src/dps8/udplib.c if ((strcmp (udp_links [link] . lport, port) == 0) && link 237 src/dps8/udplib.c int link = udp_find_free_link (); link 238 src/dps8/udplib.c if (link < 0) link 242 src/dps8/udplib.c if (udp_parse_remote (link, (char *) premote) != 0) link 246 src/dps8/udplib.c link 263 src/dps8/udplib.c si_me . sin_port = htons ((uint16_t) udp_links [link] . lportno); link 275 src/dps8/udplib.c rc = getaddrinfo (udp_links [link] . rhost, udp_links [link] . rport, NULL, link 286 src/dps8/udplib.c udp_links [link] . sock = sock; link 289 src/dps8/udplib.c udp_links [link] . used = true; link 290 src/dps8/udplib.c * pln = link; link 297 src/dps8/udplib.c printf ("link %d - listening on port %s and sending to %s:%s\n", link, udp_links [link] . lport, udp_links [link] . rhost, udp_links [link] . rport); link 302 src/dps8/udplib.c int udp_release (int link) link 307 src/dps8/udplib.c if ((link < 0) || (link >= MAXLINKS)) link 309 src/dps8/udplib.c if (! udp_links [link] . used) link 315 src/dps8/udplib.c close (udp_links [link] . sock); link 316 src/dps8/udplib.c udp_links [link] . used = false; link 318 src/dps8/udplib.c printf("link %d - closed\n", link); link 323 src/dps8/udplib.c int udp_send (int link, uint16_t * pdata, uint16_t count, uint16_t flags) link 338 src/dps8/udplib.c if ((link < 0) || (link >= MAXLINKS)) link 340 src/dps8/udplib.c if (! udp_links [link] . used) link 349 src/dps8/udplib.c pkt . sequence = htonl (udp_links [link] . txsequence ++); link 358 src/dps8/udplib.c link 359 src/dps8/udplib.c link 362 src/dps8/udplib.c ssize_t rc = send (udp_links [link] . sock, & pkt, (size_t) pktlen, 0); link 368 src/dps8/udplib.c printf ("link %d - packet sent (sequence=%u, length=%u)\n", link, ntohl (pkt . sequence), ntohs (pkt . count)); link 372 src/dps8/udplib.c static int udp_receive_packet (int link, UDP_PACKET * ppkt, size_t pktsiz) link 388 src/dps8/udplib.c link 390 src/dps8/udplib.c link 391 src/dps8/udplib.c link 393 src/dps8/udplib.c link 401 src/dps8/udplib.c ssize_t n = read (udp_links [link] . sock, ppkt, pktsiz); link 412 src/dps8/udplib.c int udp_receive (int link, uint16_t * pdata, uint16_t maxbuf) link 432 src/dps8/udplib.c if ((link < 0) || (link >= MAXLINKS)) link 434 src/dps8/udplib.c if (!udp_links [link] . used) link 439 src/dps8/udplib.c while ((pktlen = udp_receive_packet (link, & pkt, sizeof (pkt))) > 0) link 480 src/dps8/udplib.c if ((pktseq == 0) && (udp_links [link] . rxsequence != 0)) link 484 src/dps8/udplib.c else if (pktseq < udp_links [link] . rxsequence) link 489 src/dps8/udplib.c else if (pktseq != udp_links [link] . rxsequence) link 493 src/dps8/udplib.c udp_links [link] . rxsequence = pktseq + 1; link 504 src/dps8/udplib.c printf ("link %lu - packet received (sequence=%lu, length=%lu)\n", (unsigned long)link, (unsigned long)pktseq, (unsigned long)pktlen); link 44 src/dps8/udplib.h int udp_release (int32_t link); link 45 src/dps8/udplib.h int udp_send (int32_t link, uint16_t * pdata, uint16_t count, uint16_t flags); link 46 src/dps8/udplib.h int udp_receive (int32_t link, uint16_t * pdata, uint16_t maxbufg);