*** empty log message ***
diff --git a/extensions/ebt_ip.c b/extensions/ebt_ip.c
index 0deb3e0..91014e4 100644
--- a/extensions/ebt_ip.c
+++ b/extensions/ebt_ip.c
@@ -222,7 +222,7 @@
    unsigned int hook_mask, unsigned int time)
 {
 	if (entry->bitmask & EBT_NOPROTO || entry->bitmask & EBT_802_3 ||
-	   entry->ethproto != ETH_P_IP)
+	   entry->ethproto != ETH_P_IP || entry->invflags & EBT_IPROTO)
 		print_error("For IP filtering the protocol must be "
 		            "specified as IPv4");
 }