Home
last modified time | relevance | path

Searched refs:packetlen (Results 1 – 25 of 34) sorted by relevance

12

/external/iputils/
Drdisc.c100 static int sendbcast(int s, char *packet, int packetlen);
101 static int sendmcast(int s, char *packet, int packetlen, struct sockaddr_in *);
102 static int sendbcastif(int s, char *packet, int packetlen, struct interface *ifp);
103 static int sendmcastif(int s, char *packet, int packetlen, struct sockaddr_in *sin, struct interfac…
544 int packetlen, i; in solicitor() local
554 packetlen = 8; in solicitor()
557 icp->checksum = in_cksum( (u_short *)icp, packetlen ); in solicitor()
560 i = sendbcast(s, (char *)outpack, packetlen); in solicitor()
562 i = sendmcast(s, (char *)outpack, packetlen, sin); in solicitor()
564 i = sendto( s, (char *)outpack, packetlen, 0, in solicitor()
[all …]
/external/toybox/toys/pending/
Dtftp.c219 int packetlen, retry; in read_ack() local
242 packetlen = mkpkt_err(packet, TFTP_ER_UNKID, TFTP_ES_UNKID); in read_ack()
243 (void) write_server(sd, packet, packetlen, server); in read_ack()
252 packetlen = mkpkt_err(packet, TFTP_ER_ILLEGALOP, TFTP_ES_ILLEGALOP); in read_ack()
253 (void) write_server(sd, packet, packetlen, server); in read_ack()
380 int packetlen, sd, fd, retry = 0, ret, result = -1; in file_put() local
387 packetlen = mkpkt_request(packet, TFTP_OP_WRQ, TT.remote_file, 1); in file_put()
388 ret = write_server(sd, packet, packetlen, &server); in file_put()
389 if (ret != packetlen) goto errout_with_sd; in file_put()
397 packetlen = mkpkt_data(fd, offset, packet, blockno); in file_put()
[all …]
/external/syslinux/gpxe/src/drivers/net/
D3c5x9.c244 nic->packetlen=rx_fifo; in t509_poll()
253 insw(nic->ioaddr + EP_W1_RX_PIO_RD_1, nic->packet+nic->packetlen, rx_fifo / 2); in t509_poll()
255 nic->packet[nic->packetlen+rx_fifo-1]=inb(nic->ioaddr + EP_W1_RX_PIO_RD_1); in t509_poll()
256 nic->packetlen+=rx_fifo; in t509_poll()
263 printf("=%d",nic->packetlen); in t509_poll()
D3c595.c276 nic->packetlen=rx_fifo; in t595_poll()
286 insw(BASE + VX_W1_RX_PIO_RD_1, nic->packet+nic->packetlen, rx_fifo / 2); in t595_poll()
288 nic->packet[nic->packetlen+rx_fifo-1]=inb(BASE + VX_W1_RX_PIO_RD_1); in t595_poll()
289 nic->packetlen+=rx_fifo; in t595_poll()
296 printf("=%d",nic->packetlen); in t595_poll()
Dsmc9000.c773 nic->packetlen = (inw(nic->ioaddr + DATA_1) & 0x07ff); in smc9000_poll()
776 nic->packetlen -= 6; in smc9000_poll()
779 (nic->packetlen >> 1), nic->packetlen & 1); in smc9000_poll()
782 insw(nic->ioaddr + DATA_1, nic->packet, (nic->packetlen+2) >> 1); in smc9000_poll()
784 if (nic->packet[nic->packetlen+1] & 0x20) in smc9000_poll()
785 nic->packetlen++; in smc9000_poll()
Dlegacy.c51 DBG ( "Received %d bytes\n", nic->packetlen ); in legacy_poll()
52 iob_put ( iobuf, nic->packetlen ); in legacy_poll()
Dcs89x0.c454 nic->packetlen = inw(eth_nic_base + RX_FRAME_PORT); in cs89x0_poll()
455 insw(eth_nic_base + RX_FRAME_PORT, nic->packet, nic->packetlen >> 1); in cs89x0_poll()
456 if (nic->packetlen & 1) in cs89x0_poll()
457 nic->packet[nic->packetlen-1] = inw(eth_nic_base + RX_FRAME_PORT); in cs89x0_poll()
D3c515.c452 nic->packetlen = rx_fifo; in t515_poll()
460 insw(nic->ioaddr + RX_FIFO, nic->packet + nic->packetlen, in t515_poll()
463 nic->packet[nic->packetlen + rx_fifo - 1] = in t515_poll()
465 nic->packetlen += rx_fifo; in t515_poll()
469 DBG ( "=%d", nic->packetlen ); in t515_poll()
Dvirtio-net.c118 nic->packetlen = len; in virtnet_poll()
119 memcpy(nic->packet, (char *)rx_buffer[token], nic->packetlen); in virtnet_poll()
Dprism2.c633 nic->packetlen = rxdesc.data_len; in prism2_poll()
634 if ( nic->packetlen > 0 ) { in prism2_poll()
642 nic->packet + ETH_HLEN - sizeof(wlan_80211hdr_t), nic->packetlen); in prism2_poll()
Depic100.c407 nic->packetlen = le32_to_cpu((rx_ring[entry].buflength))- 4; in epic100_poll()
408 memcpy(nic->packet, &rx_packet[entry * PKT_BUF_SZ], nic->packetlen); in epic100_poll()
Ddavicom.c595 nic->packetlen = (rxd[rxd_tail].status & 0x3FFF0000) >> 16; in davicom_poll()
609 memcpy(nic->packet, rxb + rxd_tail * BUFLEN, nic->packetlen); in davicom_poll()
Damd8111e.c596 nic->packetlen = pkt_len; in amd8111e_poll()
597 memcpy(nic->packet, lp->rx_buf[index], nic->packetlen); in amd8111e_poll()
Dsundance.c472 nic->packetlen = pkt_len; in sundance_poll()
474 (sdc->cur_rx * PKT_BUF_SZ), nic->packetlen); in sundance_poll()
Dpcnet32.c549 nic->packetlen = in pcnet32_poll()
552 memcpy(nic->packet, &pcnet32_bufs.rxb[entry], nic->packetlen); in pcnet32_poll()
Dns83820.c683 nic->packetlen = cmdsts & 0xffff; in ns83820_poll()
686 nic->packetlen); in ns83820_poll()
Dsis900.c1205 nic->packetlen = (rx_status & DSIZE) - CRC_SIZE; in sis900_poll()
1214 memcpy(nic->packet, (rxb + cur_rx*RX_BUF_SIZE), nic->packetlen); in sis900_poll()
Dne2k_isa.c307 nic->packetlen = len; /* available to caller */ in ne_poll()
Dvia-rhine.c1327 nic->packetlen = tp->rx_ring[tp->cur_rx].rx_status.bits.frame_length; in rhine_poll()
1328 memcpy (nic->packet, tp->rx_buffs[tp->cur_rx], nic->packetlen); in rhine_poll()
Ddmfe.c373 nic->packetlen = rxlen; in dmfe_poll()
375 nic->packetlen); in dmfe_poll()
Dforcedeth.c1104 nic->packetlen = len; in forcedeth_poll()
1105 memcpy(nic->packet, rxb + (i * RX_NIC_BUFSIZE), nic->packetlen); in forcedeth_poll()
Ddepca.c600 memcpy(nic->packet, lp.rx_memcpy[entry], nic->packetlen = lp.rx_ring[entry].msg_length);
Deepro.c391 nic->packetlen = rcv_size; in eepro_poll()
/external/syslinux/gpxe/src/core/
Dproto_eth_slow.c355 (nic.packetlen < (ETH_HLEN + sizeof(pkt->header)))) { in process_eth_slow()
360 (nic.packetlen >= ETH_HLEN + sizeof(pkt->lacp))) { in process_eth_slow()
391 (nic.packetlen >= ETH_HLEN + sizeof(pkt->marker)) && in process_eth_slow()
/external/syslinux/gpxe/src/include/
Dnic.h44 unsigned int packetlen; member

12