I’ve good news for all.
Few minutes ago I finished the prototype of modip, the function modip seems be consistent, but I need more opinions and another couple of eyes.
ipfw add 10 modip tos:lowdelay ip from any to any
ipfw add 11 modip dscp:af14 ip from any to any
ipfw add 12 modip ippre:flash ip from any to any