Lines Matching refs:frag_header
440 struct batadv_frag_packet frag_header; in batadv_frag_send_packet() local
443 unsigned int header_size = sizeof(frag_header); in batadv_frag_send_packet()
484 frag_header.packet_type = BATADV_UNICAST_FRAG; in batadv_frag_send_packet()
485 frag_header.version = BATADV_COMPAT_VERSION; in batadv_frag_send_packet()
486 frag_header.ttl = BATADV_TTL; in batadv_frag_send_packet()
487 frag_header.seqno = htons(atomic_inc_return(&bat_priv->frag_seqno)); in batadv_frag_send_packet()
488 frag_header.reserved = 0; in batadv_frag_send_packet()
489 frag_header.no = 0; in batadv_frag_send_packet()
490 frag_header.total_size = htons(skb->len); in batadv_frag_send_packet()
498 frag_header.priority = skb->priority - 256; in batadv_frag_send_packet()
500 frag_header.priority = 0; in batadv_frag_send_packet()
502 ether_addr_copy(frag_header.orig, primary_if->net_dev->dev_addr); in batadv_frag_send_packet()
503 ether_addr_copy(frag_header.dest, orig_node->orig); in batadv_frag_send_packet()
508 if (unlikely(frag_header.no == BATADV_FRAG_MAX_FRAGMENTS - 1)) { in batadv_frag_send_packet()
513 skb_fragment = batadv_frag_create(net_dev, skb, &frag_header, in batadv_frag_send_packet()
529 frag_header.no++; in batadv_frag_send_packet()
540 memcpy(skb->data, &frag_header, header_size); in batadv_frag_send_packet()