Maximum Flow and Minimum-Cost Flow in Multi-Interface Networks