$OpenBSD: patch-src_NetworkInterface_cpp,v 1.5 2020/02/08 15:11:19 sthen Exp $

Index: src/NetworkInterface.cpp
--- src/NetworkInterface.cpp.orig
+++ src/NetworkInterface.cpp
@@ -1517,7 +1517,9 @@ bool NetworkInterface::processPacket(u_int32_t bridge_
 	       rawsize, 1, 24 /* 8 Preamble + 4 CRC + 12 IFG */);
       return(pass_verdict);
     }
-  } else if(l4_proto == IPPROTO_SCTP) {
+  }
+#ifdef IPPROTO_SCTP
+    else if(l4_proto == IPPROTO_SCTP) {
     if(l4_packet_len >= sizeof(struct sctphdr)) {
       /* SCTP */
       sctph = (struct sctphdr *)l4;
@@ -1532,7 +1534,9 @@ bool NetworkInterface::processPacket(u_int32_t bridge_
 	       rawsize, 1, 24 /* 8 Preamble + 4 CRC + 12 IFG */);
       return(pass_verdict);
     }
-  } else {
+  }
+#endif
+  else {
     /* non TCP/UDP protocols */
   }
 
