Lines Matching refs:frag_header
446 struct batadv_frag_packet frag_header; in batadv_frag_send_packet() local
449 unsigned int header_size = sizeof(frag_header); in batadv_frag_send_packet()
490 frag_header.packet_type = BATADV_UNICAST_FRAG; in batadv_frag_send_packet()
491 frag_header.version = BATADV_COMPAT_VERSION; in batadv_frag_send_packet()
492 frag_header.ttl = BATADV_TTL; in batadv_frag_send_packet()
493 frag_header.seqno = htons(atomic_inc_return(&bat_priv->frag_seqno)); in batadv_frag_send_packet()
494 frag_header.reserved = 0; in batadv_frag_send_packet()
495 frag_header.no = 0; in batadv_frag_send_packet()
496 frag_header.total_size = htons(skb->len); in batadv_frag_send_packet()
504 frag_header.priority = skb->priority - 256; in batadv_frag_send_packet()
506 frag_header.priority = 0; in batadv_frag_send_packet()
508 ether_addr_copy(frag_header.orig, primary_if->net_dev->dev_addr); in batadv_frag_send_packet()
509 ether_addr_copy(frag_header.dest, orig_node->orig); in batadv_frag_send_packet()
514 if (unlikely(frag_header.no == BATADV_FRAG_MAX_FRAGMENTS - 1)) { in batadv_frag_send_packet()
519 skb_fragment = batadv_frag_create(net_dev, skb, &frag_header, in batadv_frag_send_packet()
535 frag_header.no++; in batadv_frag_send_packet()
546 memcpy(skb->data, &frag_header, header_size); in batadv_frag_send_packet()