Lines Matching full:padding
60 * batadv_mcast_forw_push_padding() - push 2 padding bytes to skb's front
64 * Pushes two padding bytes to the front of the given skb.
66 * Return: On success a pointer to the first byte of the two pushed padding
73 char *padding; in batadv_mcast_forw_push_padding() local
78 padding = batadv_mcast_forw_skb_push(skb, pad_len, tvlv_len); in batadv_mcast_forw_push_padding()
79 memset(padding, 0, pad_len); in batadv_mcast_forw_push_padding()
81 return padding; in batadv_mcast_forw_push_padding()
85 * batadv_mcast_forw_push_est_padding() - push padding bytes if necessary
86 * @skb: the skb to potentially push the padding onto
92 * padding bytes to the end of the tracker TVLV.
94 * Return: true on success or if no padding is needed, false otherwise.
382 * batadv_mcast_forw_push_scrape_padding() - remove TVLV padding
383 * @skb: the skb to potentially adjust the TVLV's padding on
386 * Remove two padding bytes from the end of the multicast tracker TVLV,
401 * batadv_mcast_forw_push_insert_padding() - insert TVLV padding
402 * @skb: the skb to potentially adjust the TVLV's padding on
405 * Inserts two padding bytes at the end of the multicast tracker TVLV,
426 * batadv_mcast_forw_push_adjust_padding() - adjust padding if necessary
427 * @skb: the skb to potentially adjust the TVLV's padding on
434 * Adjusts the padding in the multicast packet's tracker TVLV depending on the
439 * no padding adjustment is performed.
440 * If the initially estimated number was even, so padding was initially added,
441 * but it turned out to be odd then padding is removed.
442 * If the initially estimated number was odd, so no padding was initially added,
443 * but it turned out to be even then padding is added.
445 * Return: true if no padding adjustment is needed or the adjustment was
460 * -> remove padding in batadv_mcast_forw_push_adjust_padding()
466 * -> add padding in batadv_mcast_forw_push_adjust_padding()
785 * adjust the TVLV padding after the change in destination nodes.
788 * 0: If no change to padding is needed.
789 * 2: If padding needs to be removed.
790 * -2: If padding needs to be added.
800 /* even to odd amount of destinations -> remove padding */ in batadv_mcast_forw_shrink_align_offset()
804 /* odd to even amount of destinations -> add padding */ in batadv_mcast_forw_shrink_align_offset()
1066 * two byte padding to the tracker TVLV. in batadv_mcast_forw_packet_hdrlen()
1068 int padding = (!(num_dests % 2)) ? 2 : 0; in batadv_mcast_forw_packet_hdrlen() local
1070 return padding + num_dests * ETH_ALEN + in batadv_mcast_forw_packet_hdrlen()