agent: Fixing bug with IP header size calculation.