pr = fp->priv;
pr->rmt_flags = flags;
- // Also, SSL is not supported with UDP at the moment, so if the user
- // asks for both we'd better bail out now:
- if (pr->uses_ssl && (pr->rmt_flags & PCAP_OPENFLAG_DATATX_UDP))
- {
- pcap_close(fp);
- pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE,
- "SSL not supported with UDP forward of remote packets");
- return NULL;
- }
-
/*
* determine the type of the source (NULL, file, local, remote)
* You must have a valid source string even if we're in active mode, because otherwise
return NULL;
}
+ /*
+ * We don't yet support DTLS, so if the user asks for a TLS
+ * connection and asks for data packets to be sent over UDP,
+ * we have to give up.
+ */
+ if (pr->uses_ssl && (pr->rmt_flags & PCAP_OPENFLAG_DATATX_UDP))
+ {
+ pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE,
+ "TLS not supported with UDP forward of remote packets");
+ pcap_close(fp);
+ return NULL;
+ }
+
/*
* Warning: this call can be the first one called by the user.
* For this reason, we have to initialize the WinSock support.