• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/IOFireWireIP-226.2/KernelSource/IOKit/

Lines Matching defs:packet

1047 		// We get callback 1 packet at a time, so we can increment by 1
1118 @param m - mbuf containing the ARP packet.
1165 // Copy the arp packet into the buffer
1440 // Get the actual length of the packet from the mbuf
1480 @abstract Transmit IP packet.
1481 @param m - mbuf containing the IP packet.
1482 @param type - type of the packet (IPv6 or IPv4).
1487 // If its not a packet header
1537 struct mcap_packet *packet = (struct mcap_packet*)asyncStreamCmd->getBufferFromDesc();
1539 memset(packet, 0, sizeof(*packet));
1540 packet->gaspHdr.sourceID = htons(fLcb->ownNodeID);
1542 memcpy(&packet->gaspHdr.gaspID, &gaspVal, sizeof(GASP_ID));
1543 packet->ip1394Hdr.etherType = htons(ETHER_TYPE_MCAP);
1544 packet->mcap.length = sizeof(*packet);
1545 MCAST_DESCR *groupDescriptor = packet->mcap.groupDescr;
1551 packet->mcap.opcode = MCAP_ADVERTISE;
1571 packet->mcap.length += sizeof(MCAST_DESCR);
1582 packet->mcap.opcode = MCAP_SOLICIT;
1583 packet->mcap.length += sizeof(MCAST_DESCR);
1589 UInt32 cmdLen = packet->mcap.length; // In CPU byte order
1590 packet->mcap.length = htons(cmdLen); // Serial Bus order
1654 @abstract block write handler. Handles both ARP and IP packet.
1672 // Handle the unfragmented packet
1693 // Unknown packet type
1803 @abstract callback for an Asyncstream packet, can be both IP or ARP packet.
1805 packet arrives on the default broadcast channel. The packet "should" be GASP,
1808 to dispatch the three types of packet that RFC 2734 permits on the default
1811 of these three cases, is to make sure that the packet is large enough to hold
1812 meaningful data. If so, send the packet to another procedure for further
1936 @param mcapSourceID - source nodeid which generated the multicast advertisement packet.
1937 @param mcap - mulitcast advertisment packet without the GASP header.
1938 @param dataSize - size of the packet.
2036 @abstract Receive IP packet.
2037 @param pkt - points to the IP packet without the header.
2038 @param len - length of the packet.
2040 @params type - indicates type of the packet IPv4 or IPv6
2105 @param arp - 1394 arp packet without the GASP or Async header.
2120 IOLog("IOFireWireIP: rxARP ERROR in packet header\n");
2401 // Reset the packet
2487 // Reset the packet
2628 @abstract updates IPv4 ARP cache from the incoming ARP packet
2629 @param fwa - firewire ARP packet.
3126 @param ipAddress - destination ipaddress to send the multicast packet.
3154 @param sourceID - source nodeid which generated the fragmented packet.
3155 @param dgl - datagram label for the fragmented packet.
3285 mbuf_t packet;
3290 if(reqSize > mhlen && reqSize <= minclsize) //as protection from drivers that incorrectly assume they always get a single-mbuf packet
3293 if( 0 == mbuf_allocpacket(how, reqSize, NULL, &packet))
3295 mbuf_t m = packet;
3296 mbuf_pkthdr_setlen(packet, size);
3308 mbuf_setlen(m, size); //truncate to remaining portion of packet
3313 return packet;