aboutsummaryrefslogtreecommitdiff
path: root/src/pkt.c
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2020-05-27 18:07:34 +0200
committerToni Uhlig <matzeton@googlemail.com>2020-05-27 18:07:34 +0200
commited456a32ffe6fea0cb52b5184a00a14cb0059f4a (patch)
tree8970d63b89090e8eb778d97043af9b74999828ae /src/pkt.c
parenta0fca977bf366b64a5cd3e1c71fce14a93b8a44c (diff)
splitted bigfat anon enum in pconfig.h into multiple smaller ones hoping to improve readability
* clang-format headers Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'src/pkt.c')
-rw-r--r--src/pkt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkt.c b/src/pkt.c
index 4274594..773414c 100644
--- a/src/pkt.c
+++ b/src/pkt.c
@@ -219,7 +219,7 @@ void handle_packet(char * buf, unsigned bytes, int is_pcap, struct sockaddr_in *
icmp_echo_packet_t * pkt;
ping_tunnel_pkt_t * pt_pkt;
proxy_desc_t * cur;
- uint32_t type_flag, pkt_flag, proxy_flag;
+ enum pkt_flag type_flag, pkt_flag, proxy_flag;
challenge_t * challenge;
proxy_flag = kProxy_flag;
@@ -261,7 +261,7 @@ void handle_packet(char * buf, unsigned bytes, int is_pcap, struct sockaddr_in *
*/
if (cur) {
type_flag = cur->type_flag;
- if (type_flag == (uint32_t)kProxy_flag) {
+ if (type_flag == kProxy_flag) {
cur->icmp_id = pkt->identifier;
cur->ping_seq = pkt->seq;
}