diff options
-rw-r--r-- | net/batman-adv/bat_iv_ogm.c | 4 | ||||
-rw-r--r-- | net/batman-adv/hard-interface.c | 2 | ||||
-rw-r--r-- | net/batman-adv/packet.h | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/net/batman-adv/bat_iv_ogm.c b/net/batman-adv/bat_iv_ogm.c index a2af2896769f..98f71827c7b3 100644 --- a/net/batman-adv/bat_iv_ogm.c +++ b/net/batman-adv/bat_iv_ogm.c | |||
@@ -47,7 +47,7 @@ static int bat_iv_ogm_iface_enable(struct hard_iface *hard_iface) | |||
47 | goto out; | 47 | goto out; |
48 | 48 | ||
49 | batman_ogm_packet = (struct batman_ogm_packet *)hard_iface->packet_buff; | 49 | batman_ogm_packet = (struct batman_ogm_packet *)hard_iface->packet_buff; |
50 | batman_ogm_packet->header.packet_type = BAT_OGM; | 50 | batman_ogm_packet->header.packet_type = BAT_IV_OGM; |
51 | batman_ogm_packet->header.version = COMPAT_VERSION; | 51 | batman_ogm_packet->header.version = COMPAT_VERSION; |
52 | batman_ogm_packet->header.ttl = 2; | 52 | batman_ogm_packet->header.ttl = 2; |
53 | batman_ogm_packet->flags = NO_FLAGS; | 53 | batman_ogm_packet->flags = NO_FLAGS; |
@@ -934,7 +934,7 @@ static void bat_iv_ogm_process(const struct ethhdr *ethhdr, | |||
934 | * packet in an aggregation. Here we expect that the padding | 934 | * packet in an aggregation. Here we expect that the padding |
935 | * is always zero (or not 0x01) | 935 | * is always zero (or not 0x01) |
936 | */ | 936 | */ |
937 | if (batman_ogm_packet->header.packet_type != BAT_OGM) | 937 | if (batman_ogm_packet->header.packet_type != BAT_IV_OGM) |
938 | return; | 938 | return; |
939 | 939 | ||
940 | /* could be changed by schedule_own_packet() */ | 940 | /* could be changed by schedule_own_packet() */ |
diff --git a/net/batman-adv/hard-interface.c b/net/batman-adv/hard-interface.c index 75a555b8587e..e8c5da379a80 100644 --- a/net/batman-adv/hard-interface.c +++ b/net/batman-adv/hard-interface.c | |||
@@ -604,7 +604,7 @@ static int batman_skb_recv(struct sk_buff *skb, struct net_device *dev, | |||
604 | 604 | ||
605 | switch (batman_ogm_packet->header.packet_type) { | 605 | switch (batman_ogm_packet->header.packet_type) { |
606 | /* batman originator packet */ | 606 | /* batman originator packet */ |
607 | case BAT_OGM: | 607 | case BAT_IV_OGM: |
608 | ret = recv_bat_ogm_packet(skb, hard_iface); | 608 | ret = recv_bat_ogm_packet(skb, hard_iface); |
609 | break; | 609 | break; |
610 | 610 | ||
diff --git a/net/batman-adv/packet.h b/net/batman-adv/packet.h index 59dec0a1979b..f54969c61a1e 100644 --- a/net/batman-adv/packet.h +++ b/net/batman-adv/packet.h | |||
@@ -25,7 +25,7 @@ | |||
25 | #define ETH_P_BATMAN 0x4305 /* unofficial/not registered Ethertype */ | 25 | #define ETH_P_BATMAN 0x4305 /* unofficial/not registered Ethertype */ |
26 | 26 | ||
27 | enum bat_packettype { | 27 | enum bat_packettype { |
28 | BAT_OGM = 0x01, | 28 | BAT_IV_OGM = 0x01, |
29 | BAT_ICMP = 0x02, | 29 | BAT_ICMP = 0x02, |
30 | BAT_UNICAST = 0x03, | 30 | BAT_UNICAST = 0x03, |
31 | BAT_BCAST = 0x04, | 31 | BAT_BCAST = 0x04, |
@@ -38,7 +38,7 @@ enum bat_packettype { | |||
38 | /* this file is included by batctl which needs these defines */ | 38 | /* this file is included by batctl which needs these defines */ |
39 | #define COMPAT_VERSION 14 | 39 | #define COMPAT_VERSION 14 |
40 | 40 | ||
41 | enum batman_flags { | 41 | enum batman_iv_flags { |
42 | PRIMARIES_FIRST_HOP = 1 << 4, | 42 | PRIMARIES_FIRST_HOP = 1 << 4, |
43 | VIS_SERVER = 1 << 5, | 43 | VIS_SERVER = 1 << 5, |
44 | DIRECTLINK = 1 << 6 | 44 | DIRECTLINK = 1 << 6 |