Help in packet data

Salman Khalid <[email protected]> Thu, 22 Aug 2013 11:14:15 +0200
Newsgroups gmane.network.routing.click
Message-ID <[email protected]>
hi all,
           i am very much new to click. just learning it from scratch.
Kindly tell me that how can i know the destination port if i generate
packet from a random source. i want tosort packets depending upon their
destination sources
kindly help me