Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

smtp_ip.rl 819B

123456789101112131415161718192021
  1. %%{
  2. machine smtp_ip;
  3. # Parses IPv4/IPv6 address
  4. # Source: https://tools.ietf.org/html/rfc5321#section-4.1.3
  5. Snum = digit{1,3};
  6. IPv4_addr = (Snum ("." Snum){3});
  7. IPv4_address_literal = IPv4_addr >IP4_start %IP4_end;
  8. IPv6_hex = xdigit{1,4};
  9. IPv6_full = IPv6_hex (":" IPv6_hex){7};
  10. IPv6_comp = (IPv6_hex (":" IPv6_hex){0,5})? "::"
  11. (IPv6_hex (":" IPv6_hex){0,5})?;
  12. IPv6v4_full = IPv6_hex (":" IPv6_hex){5} ":" IPv4_address_literal;
  13. IPv6v4_comp = (IPv6_hex (":" IPv6_hex){0,3})? "::"
  14. (IPv6_hex (":" IPv6_hex){0,3} ":")?
  15. IPv4_address_literal;
  16. IPv6_simple = IPv6_full | IPv6_comp;
  17. IPv6_addr = IPv6_simple | IPv6v4_full | IPv6v4_comp;
  18. IPv6_address_literal = "IPv6:" %IP6_start IPv6_addr %IP6_end;
  19. }%%