added mac and ipv4 implementations.

Signed-off-by: dvorkinista <villain@noironetworks.com>