I'm not seeeing the pattern in your output, but if you're looking to sort "by conversation", you'll need to come up with a function that can take a given record and give back a unique key for "a conversation". That's the first hurdle. After that, it'll be a matter of running the right sorts on that, and perhaps subsorts within the sort.
As an idea for a "conversation", presuming you mean "packets that go either way between host:port X and host:port Y", you could develop a signature for the conversation by sorting the host:port so that the lower host:port is always to the left, and then the signature is the concatenation of the two. For example, packets from 10.1:8000 to 10.2:5000 as well as packets from 10.2:5000 to 10.1:8000 would both be labeled as "10.1:8000-10.2:5000" in the signature of the conversation, by sorting the two hosts so that the lower host/port is to the left.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.