- int ret;
- ret = xt_register_match(AF_INET, &pkttype_match);
- if (ret)
- return ret;
-
- ret = xt_register_match(AF_INET6, &pkttype6_match);
- if (ret)
- xt_unregister_match(AF_INET, &pkttype_match);
-
- return ret;
+ return xt_register_matches(xt_pkttype_match,
+ ARRAY_SIZE(xt_pkttype_match));