abstracting out linux's ip command into a shared library