Skip to content

Commit

Permalink
5.20 fix release
Browse files Browse the repository at this point in the history
  • Loading branch information
intika committed May 12, 2019
1 parent 225ee38 commit 5e7371e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
10 changes: 10 additions & 0 deletions src/ip-type.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#include "ip-type.h"

const ip_type ip_type_invalid = { .as_int = -1 };
const ip_type ip_type_localhost = { {127, 0, 0, 1} };

// Definition for ipv6
/*
const ip_type ip_type_invalid = { .addr.v4.as_int = -1 };
const ip_type ip_type_localhost = { .addr.v4.octet = {127, 0, 0, 1} };
*/
7 changes: 2 additions & 5 deletions src/ip-type.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ typedef union {
uint32_t as_int;
} ip_type;

const ip_type ip_type_invalid = { .as_int = -1 };
const ip_type ip_type_localhost = { {127, 0, 0, 1} };
extern const ip_type ip_type_invalid;
extern const ip_type ip_type_localhost;

// Definition for ipv6
/*
Expand All @@ -22,7 +22,4 @@ typedef struct {
} addr;
char is_v6;
} ip_type;
const ip_type ip_type_invalid = { .addr.v4.as_int = -1 };
const ip_type ip_type_localhost = { .addr.v4.octet = {127, 0, 0, 1} };
*/

0 comments on commit 5e7371e

Please sign in to comment.