Lines Matching refs:ogm_packet
146 struct batadv_ogm2_packet *ogm_packet; in batadv_v_ogm_len() local
148 ogm_packet = (struct batadv_ogm2_packet *)skb->data; in batadv_v_ogm_len()
149 return BATADV_OGM2_HLEN + ntohs(ogm_packet->tvlv_len); in batadv_v_ogm_len()
268 struct batadv_ogm2_packet *ogm_packet; in batadv_v_ogm_send_softif() local
300 ogm_packet = (struct batadv_ogm2_packet *)skb->data; in batadv_v_ogm_send_softif()
301 ogm_packet->seqno = htonl(atomic_read(&bat_priv->bat_v.ogm_seqno)); in batadv_v_ogm_send_softif()
303 ogm_packet->tvlv_len = htons(tvlv_len); in batadv_v_ogm_send_softif()
341 ogm_packet->orig, ntohl(ogm_packet->seqno), in batadv_v_ogm_send_softif()
342 ntohl(ogm_packet->throughput), ogm_packet->ttl, in batadv_v_ogm_send_softif()
442 struct batadv_ogm2_packet *ogm_packet; in batadv_v_ogm_primary_iface_set() local
448 ogm_packet = (struct batadv_ogm2_packet *)bat_priv->bat_v.ogm_buff; in batadv_v_ogm_primary_iface_set()
449 ether_addr_copy(ogm_packet->orig, primary_iface->net_dev->dev_addr); in batadv_v_ogm_primary_iface_set()
867 struct batadv_ogm2_packet *ogm_packet; in batadv_v_ogm_process() local
872 ogm_packet = (struct batadv_ogm2_packet *)(skb->data + ogm_offset); in batadv_v_ogm_process()
874 ogm_throughput = ntohl(ogm_packet->throughput); in batadv_v_ogm_process()
879 if_incoming->net_dev->dev_addr, ogm_packet->orig, in batadv_v_ogm_process()
880 ntohl(ogm_packet->seqno), ogm_throughput, ogm_packet->ttl, in batadv_v_ogm_process()
881 ogm_packet->version, ntohs(ogm_packet->tvlv_len)); in batadv_v_ogm_process()
883 if (batadv_is_my_mac(bat_priv, ogm_packet->orig)) { in batadv_v_ogm_process()
906 orig_node = batadv_v_ogm_orig_get(bat_priv, ogm_packet->orig); in batadv_v_ogm_process()
924 ogm_packet->throughput = htonl(path_throughput); in batadv_v_ogm_process()
926 batadv_v_ogm_process_per_outif(bat_priv, ethhdr, ogm_packet, orig_node, in batadv_v_ogm_process()
942 ogm_packet->orig, in batadv_v_ogm_process()
963 ogm_packet->orig, hard_iface->net_dev->name, in batadv_v_ogm_process()
970 batadv_v_ogm_process_per_outif(bat_priv, ethhdr, ogm_packet, in batadv_v_ogm_process()
998 struct batadv_ogm2_packet *ogm_packet; in batadv_v_ogm_packet_recv() local
1022 ogm_packet = (struct batadv_ogm2_packet *)skb->data; in batadv_v_ogm_packet_recv()
1025 ogm_packet)) { in batadv_v_ogm_packet_recv()
1029 ogm_offset += ntohs(ogm_packet->tvlv_len); in batadv_v_ogm_packet_recv()
1032 ogm_packet = (struct batadv_ogm2_packet *)packet_pos; in batadv_v_ogm_packet_recv()
1054 struct batadv_ogm2_packet *ogm_packet; in batadv_v_ogm_init() local
1064 ogm_packet = (struct batadv_ogm2_packet *)ogm_buff; in batadv_v_ogm_init()
1065 ogm_packet->packet_type = BATADV_OGM2; in batadv_v_ogm_init()
1066 ogm_packet->version = BATADV_COMPAT_VERSION; in batadv_v_ogm_init()
1067 ogm_packet->ttl = BATADV_TTL; in batadv_v_ogm_init()
1068 ogm_packet->flags = BATADV_NO_FLAGS; in batadv_v_ogm_init()
1069 ogm_packet->throughput = htonl(BATADV_THROUGHPUT_MAX_VALUE); in batadv_v_ogm_init()