Futures comissions are not reflected in lines 1 or 2 of the IB's 1099 for futures. Therefore, subtract commissions (line 4) from line 1 or 2, then report that on Form 6781.
From www.interactivebrokers.com, Help page, FAQ:
What is 1099 for Futures?
Titled "Substitute Composite Statement...