Add filter for packets. Only deal with TCP and UDP Packets.
BugFix: debug option
Add compile option to enable protocol filters.