define packet-mark

/ip firewall mangle add protocol=tcp dst-port=80 action=mark-packet new-packet-mark=www
/ip firewall mangle add protocol=udp dst-port=53 action=mark-packet new-packet-mark=dns
/ip firewall mangle add protocol=tcp dst-port=8000 action=mark-packet new-packet-mark=qq
/ip firewall mangle add protocol=tcp dst-port=4000 action=mark-packet new-packet-mark=qq
/ip firewall mangle add protocol=udp dst-port=8000 action=mark-packet new-packet-mark=qq
/ip firewall mangle add protocol=udp dst-port=4000 action=mark-packet new-packet-mark=qq
/ip firewall mangle add protocol=tcp dst-port=80 action=mark-packet new-packet-mark=www
/ip firewall mangle add p2p=all-p2p action=mark-packet new-packet-mark=p2p
i want to define the rest packets mark to other
what should i do
thanks

You can do it a few different ways.

You can make a new mangle rule (before the ones you already have) to mark everything as other and set passthrough=yes and that will make everything marked as other unless it matches one of the other rules you have set..

OR

you can make all of your existing mangle rules passthrough=no
and then make a rule at the end of your current rules that matches everything else and mark them as other..

-Gerard