added function to set the network adapter configuration
Merge pull request #1 from smidi/master

New function to set the configuration of a network adapter