+#ifdef GEOIP
+ /* GeoIP Source Location */
+ else if (strncmp(GEOIP_BEGIN_SRC, str, GEOIP_BEGIN_SRC_SZ) == 0)
+ {
+ os_clearnl(str,p);
+ p = str + GEOIP_BEGIN_SRC_SZ;
+ os_strdup(p, geoipdatasrc);
+ }
+#endif
+ /* srcport */
+ else if(strncmp(SRCPORT_BEGIN, str, SRCPORT_BEGIN_SZ) == 0)
+ {
+ os_clearnl(str,p);
+
+ p = str + SRCPORT_BEGIN_SZ;
+ srcport = atoi(p);
+ }
+ /* dstip */
+ else if(strncmp(DSTIP_BEGIN, str, DSTIP_BEGIN_SZ) == 0)
+ {
+ os_clearnl(str,p);
+
+ p = str + DSTIP_BEGIN_SZ;
+ os_strdup(p, dstip);
+ }
+#ifdef GEOIP
+ /* GeoIP Destination Location */
+ else if (strncmp(GEOIP_BEGIN_DST, str, GEOIP_BEGIN_DST_SZ) == 0)
+ {
+ os_clearnl(str,p);
+ p = str + GEOIP_BEGIN_DST_SZ;
+ os_strdup(p, geoipdatadst);
+ }
+#endif
+ /* dstport */
+ else if(strncmp(DSTPORT_BEGIN, str, DSTPORT_BEGIN_SZ) == 0)
+ {
+ os_clearnl(str,p);
+
+ p = str + DSTPORT_BEGIN_SZ;
+ dstport = atoi(p);
+ }