Skip to content

Commit f7e4d01

Browse files
emphazerFelipe Zimmerle
authored andcommitted
added missing Geo Countries
1 parent ca8e2db commit f7e4d01

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

apache2/msc_geo.c

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ static const char geo_country_code[GEO_COUNTRY_LAST + 1][4] = {
4343
"TJ","TK","TM","TN","TO","TL","TR","TT","TV","TW",
4444
"TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE",
4545
"VG","VI","VN","VU","WF","WS","YE","YT","RS","ZA",
46-
"ZM","ME","ZW","A1","A2","O1","AX","GG","IM","JE"
46+
"ZM","ME","ZW","A1","A2","O1","AX","GG","IM","JE",
47+
"BL","BQ","CW","MF","SS","SX"
4748
};
4849

4950
static const char geo_country_code3[GEO_COUNTRY_LAST + 1][4] = {
@@ -72,7 +73,8 @@ static const char geo_country_code3[GEO_COUNTRY_LAST + 1][4] = {
7273
"TJK","TKL","TKM","TUN","TON","TLS","TUR","TTO","TUV","TWN",
7374
"TZA","UKR","UGA","UM","USA","URY","UZB","VAT","VCT","VEN",
7475
"VGB","VIR","VNM","VUT","WLF","WSM","YEM","YT","SRB","ZAF",
75-
"ZMB","MNE","ZWE","A1","A2","O1","ALA","GGY","IMN","JEY"
76+
"ZMB","MNE","ZWE","A1","A2","O1","ALA","GGY","IMN","JEY",
77+
"BLM","BES","CUW","MAF","SSD","SXM"
7678
};
7779

7880
static const char *const geo_country_name[GEO_COUNTRY_LAST + 1] = {
@@ -101,7 +103,8 @@ static const char *const geo_country_name[GEO_COUNTRY_LAST + 1] = {
101103
"Tajikistan","Tokelau","Turkmenistan","Tunisia","Tonga","Timor-Leste","Turkey","Trinidad and Tobago","Tuvalu","Taiwan",
102104
"Tanzania, United Republic of","Ukraine","Uganda","United States Minor Outlying Islands","United States","Uruguay","Uzbekistan","Holy See (Vatican City State)","Saint Vincent and the Grenadines","Venezuela",
103105
"Virgin Islands, British","Virgin Islands, U.S.","Vietnam","Vanuatu","Wallis and Futuna","Samoa","Yemen","Mayotte","Serbia","South Africa",
104-
"Zambia","Montenegro","Zimbabwe","Anonymous Proxy","Satellite Provider","Other","Aland Islands","Guernsey","Isle of Man","Jersey"
106+
"Zambia","Montenegro","Zimbabwe","Anonymous Proxy","Satellite Provider","Other","Aland Islands","Guernsey","Isle of Man","Jersey",
107+
"Saint Barthélemy","Bonaire, Sint Eustatius and Saba","Curaçao","Saint Martin (French part)","South Sudan","Sint Maarten (Dutch part)"
105108
};
106109

107110
static const char geo_country_continent[GEO_COUNTRY_LAST + 1][4] = {
@@ -130,7 +133,8 @@ static const char geo_country_continent[GEO_COUNTRY_LAST + 1][4] = {
130133
"AS","OC","AS","AF","OC","AS","AS","SA","OC","AS",
131134
"AF","EU","AF","OC","NA","SA","AS","EU","SA","SA",
132135
"SA","SA","AS","OC","OC","OC","AS","AF","EU","AF",
133-
"AF","EU","AF","--","--","--","EU","EU","EU","EU"
136+
"AF","EU","AF","--","--","--","EU","EU","EU","EU",
137+
"--","--","--","--","AF","--"
134138
};
135139

136140
typedef enum {

apache2/msc_geo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#define GEO_COUNTRY_DATABASE 1
2626
#define GEO_CITY_DATABASE_0 6
2727
#define GEO_CITY_DATABASE_1 2
28-
#define GEO_COUNTRY_LAST 250
28+
#define GEO_COUNTRY_LAST 256
2929
#define GEO_SEGMENT_RECORD_LENGTH 3
3030
#define GEO_STATE_BEGIN_REV0 16700000
3131
#define GEO_STATE_BEGIN_REV1 16000000

0 commit comments

Comments
 (0)