Lines Matching refs:packetlen
2057 static void deliver_packet(struct strip *strip_info, STRIP_Header *header, __u16 packetlen) in deliver_packet() argument
2059 struct sk_buff *skb = dev_alloc_skb(sizeof(STRIP_Header) + packetlen); in deliver_packet()
2068 memcpy(skb_put(skb, packetlen), strip_info->rx_buff, packetlen); in deliver_packet()
2082 strip_info->rx_bytes += packetlen; in deliver_packet()
2090 __u16 packetlen; in process_IP_packet() local
2100 packetlen = ((__u16)strip_info->rx_buff[2] << 8) | strip_info->rx_buff[3]; in process_IP_packet()
2102 if (packetlen > MAX_RECV_MTU) in process_IP_packet()
2105 strip_info->dev.name, packetlen); in process_IP_packet()
2113 ptr = UnStuffData(ptr, end, strip_info->rx_buff+4, packetlen-4); in process_IP_packet()
2128 deliver_packet(strip_info, header, packetlen); in process_IP_packet()
2133 __u16 packetlen; in process_ARP_packet() local
2144 packetlen = 8 + (arphdr->ar_hln + arphdr->ar_pln) * 2; in process_ARP_packet()
2146 if (packetlen > MAX_RECV_MTU) in process_ARP_packet()
2149 strip_info->dev.name, packetlen); in process_ARP_packet()
2159 ptr = UnStuffData(ptr, end, strip_info->rx_buff+8, packetlen-8); in process_ARP_packet()
2174 deliver_packet(strip_info, header, packetlen); in process_ARP_packet()