svn commit: r349843 - head/sys/contrib/ipfilter/netinet

Cy Schubert cy at FreeBSD.org
Mon Jul 8 19:11:50 UTC 2019


Author: cy
Date: Mon Jul  8 19:11:49 2019
New Revision: 349843
URL: https://svnweb.freebsd.org/changeset/base/349843

Log:
  Update frtuc struct comments. It not only defines TCP things we are
  interested in but also UDP.
  
  While at it document the source and destination port variables.
  
  MFC after:	3 days

Modified:
  head/sys/contrib/ipfilter/netinet/ip_fil.h

Modified: head/sys/contrib/ipfilter/netinet/ip_fil.h
==============================================================================
--- head/sys/contrib/ipfilter/netinet/ip_fil.h	Mon Jul  8 19:11:35 2019	(r349842)
+++ head/sys/contrib/ipfilter/netinet/ip_fil.h	Mon Jul  8 19:11:49 2019	(r349843)
@@ -590,14 +590,14 @@ typedef	struct	frpcmp	{
 
 
 /*
- * Structure containing all the relevant TCP things that can be checked in
+ * Structure containing all the relevant TCP/UDP things that can be checked in
  * a filter rule.
  */
 typedef	struct	frtuc	{
 	u_char		ftu_tcpfm;	/* tcp flags mask */
 	u_char		ftu_tcpf;	/* tcp flags */
-	frpcmp_t	ftu_src;
-	frpcmp_t	ftu_dst;
+	frpcmp_t	ftu_src;	/* source port */
+	frpcmp_t	ftu_dst;	/* destination port */
 } frtuc_t;
 
 #define	ftu_scmp	ftu_src.frp_cmp


More information about the svn-src-head mailing list