vmlinz / sandrop

Automatically exported from code.google.com/p/sandrop
1 stars 0 forks source link

regular expression to resolve /proc/net/tcp /proc/net/tcp6 #107

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

Some lines were not parsed okey. Regular expression fixed 

    // (address) (port) (pid)
    public static final String TCP_6_PATTERN   = "\\s+\\d+:\\s([0-9A-F]{32}):([0-9A-F]{4})\\s([0-9A-F]{32}):([0-9A-F]{4})\\s([0-9A-F]{2})\\s[0-9]{8}:[0-9]{8}\\s[0-9A-F]{2}:[0-9A-F]{8}\\s[0-9A-F]{8}\\s+([0-9A-F]+)";
    // (address) (port) (pid)
    public static final String TCP_4_PATTERN   = "\\s+\\d+:\\s([0-9A-F]{8}):([0-9A-F]{4})\\s([0-9A-F]{8}):([0-9A-F]{4})\\s([0-9A-F]{2})\\s[0-9A-F]{8}:[0-9A-F]{8}\\s[0-9A-F]{2}:[0-9A-F]{8}\\s[0-9A-F]{8}\\s+([0-9A-F]+)";

Original issue reported on code.google.com by supp.san...@gmail.com on 17 Apr 2014 at 8:21

GoogleCodeExporter commented 9 years ago
http://code.google.com/p/sandrop/source/detail?r=443bcacf206fb37d69f4ebdee7d7624
747e424b5

Original comment by supp.san...@gmail.com on 17 Apr 2014 at 8:27

GoogleCodeExporter commented 9 years ago

Original comment by supp.san...@gmail.com on 10 May 2014 at 4:49