fixed mistakes; ipv6 functions just dummies yet