Staging: batman-adv: receive packets directly using skbs
[firefly-linux-kernel-4.4.55.git] / drivers / staging / batman-adv / types.h
index 3a0ef0c38c93ae86994358d413f6fad4cf5e07b6..dec1b54031b692b704835945ef1f9f5aece57fc4 100644 (file)
@@ -39,7 +39,6 @@ struct batman_if {
        char if_active;
        char addr_str[ETH_STR_LEN];
        struct net_device *net_dev;
-       struct socket *raw_sock;
        atomic_t seqno;
        unsigned char *packet_buff;
        int packet_len;
@@ -75,7 +74,7 @@ struct neigh_node {
        uint8_t tq_index;
        uint8_t tq_avg;
        uint8_t last_ttl;
-       unsigned long last_valid;            /* when last packet via this neighbour was received */
+       unsigned long last_valid;            /* when last packet via this neighbor was received */
        TYPE_OF_WORD real_bits[NUM_WORDS];
        struct orig_node *orig_node;
        struct batman_if *if_incoming;
@@ -113,6 +112,7 @@ struct forw_packet {               /* structure for forw_list maintaining packet
        struct hlist_node list;
        unsigned long send_time;
        uint8_t own;
+       struct sk_buff *skb;
        unsigned char *packet_buff;
        uint16_t packet_len;
        uint32_t direct_link_flags;
@@ -121,4 +121,14 @@ struct forw_packet {               /* structure for forw_list maintaining packet
        struct batman_if *if_incoming;
 };
 
+/* While scanning for vis-entries of a particular vis-originator
+ * this list collects its interfaces to create a subgraph/cluster
+ * out of them later
+ */
+struct if_list_entry {
+       uint8_t addr[ETH_ALEN];
+       bool primary;
+       struct hlist_node list;
+};
+
 #endif