--- net/colo.c.orig
+++ net/colo.c
@@ -109,14 +109,18 @@
     case IPPROTO_TCP:
     case IPPROTO_UDP:
     case IPPROTO_DCCP:
+#ifdef IPPROTO_ESP
     case IPPROTO_ESP:
+#endif
     case IPPROTO_SCTP:
     case IPPROTO_UDPLITE:
         tmp_ports = *(uint32_t *)(pkt->transport_header);
         break;
+#ifdef IPPROTO_AH
     case IPPROTO_AH:
         tmp_ports = *(uint32_t *)(pkt->transport_header + 4);
         break;
+#endif
     default:
         break;
     }
