Lines Matching refs:ogm_packet

147 	struct batadv_ogm2_packet *ogm_packet;  in batadv_v_ogm_len()  local
149 ogm_packet = (struct batadv_ogm2_packet *)skb->data; in batadv_v_ogm_len()
150 return BATADV_OGM2_HLEN + ntohs(ogm_packet->tvlv_len); in batadv_v_ogm_len()
265 struct batadv_ogm2_packet *ogm_packet; in batadv_v_ogm_send_softif() local
297 ogm_packet = (struct batadv_ogm2_packet *)skb->data; in batadv_v_ogm_send_softif()
298 ogm_packet->seqno = htonl(atomic_read(&bat_priv->bat_v.ogm_seqno)); in batadv_v_ogm_send_softif()
300 ogm_packet->tvlv_len = htons(tvlv_len); in batadv_v_ogm_send_softif()
338 ogm_packet->orig, ntohl(ogm_packet->seqno), in batadv_v_ogm_send_softif()
339 ntohl(ogm_packet->throughput), ogm_packet->ttl, in batadv_v_ogm_send_softif()
439 struct batadv_ogm2_packet *ogm_packet; in batadv_v_ogm_primary_iface_set() local
445 ogm_packet = (struct batadv_ogm2_packet *)bat_priv->bat_v.ogm_buff; in batadv_v_ogm_primary_iface_set()
446 ether_addr_copy(ogm_packet->orig, primary_iface->net_dev->dev_addr); in batadv_v_ogm_primary_iface_set()
861 struct batadv_ogm2_packet *ogm_packet; in batadv_v_ogm_process() local
866 ogm_packet = (struct batadv_ogm2_packet *)(skb->data + ogm_offset); in batadv_v_ogm_process()
868 ogm_throughput = ntohl(ogm_packet->throughput); in batadv_v_ogm_process()
873 if_incoming->net_dev->dev_addr, ogm_packet->orig, in batadv_v_ogm_process()
874 ntohl(ogm_packet->seqno), ogm_throughput, ogm_packet->ttl, in batadv_v_ogm_process()
875 ogm_packet->version, ntohs(ogm_packet->tvlv_len)); in batadv_v_ogm_process()
877 if (batadv_is_my_mac(bat_priv, ogm_packet->orig)) { in batadv_v_ogm_process()
900 orig_node = batadv_v_ogm_orig_get(bat_priv, ogm_packet->orig); in batadv_v_ogm_process()
918 ogm_packet->throughput = htonl(path_throughput); in batadv_v_ogm_process()
920 batadv_v_ogm_process_per_outif(bat_priv, ethhdr, ogm_packet, orig_node, in batadv_v_ogm_process()
936 ogm_packet->orig, in batadv_v_ogm_process()
957 ogm_packet->orig, hard_iface->net_dev->name, in batadv_v_ogm_process()
964 batadv_v_ogm_process_per_outif(bat_priv, ethhdr, ogm_packet, in batadv_v_ogm_process()
989 struct batadv_ogm2_packet *ogm_packet; in batadv_v_ogm_packet_recv() local
1013 ogm_packet = (struct batadv_ogm2_packet *)skb->data; in batadv_v_ogm_packet_recv()
1016 ogm_packet)) { in batadv_v_ogm_packet_recv()
1020 ogm_offset += ntohs(ogm_packet->tvlv_len); in batadv_v_ogm_packet_recv()
1023 ogm_packet = (struct batadv_ogm2_packet *)packet_pos; in batadv_v_ogm_packet_recv()
1045 struct batadv_ogm2_packet *ogm_packet; in batadv_v_ogm_init() local
1055 ogm_packet = (struct batadv_ogm2_packet *)ogm_buff; in batadv_v_ogm_init()
1056 ogm_packet->packet_type = BATADV_OGM2; in batadv_v_ogm_init()
1057 ogm_packet->version = BATADV_COMPAT_VERSION; in batadv_v_ogm_init()
1058 ogm_packet->ttl = BATADV_TTL; in batadv_v_ogm_init()
1059 ogm_packet->flags = BATADV_NO_FLAGS; in batadv_v_ogm_init()
1060 ogm_packet->throughput = htonl(BATADV_THROUGHPUT_MAX_VALUE); in batadv_v_ogm_init()