swconfig: revert the portmapping patches, they seem to cause a segfault