Date: Mon, 8 Jul 2019 19:11:49 +0000 (UTC) From: Cy Schubert <cy@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r349843 - head/sys/contrib/ipfilter/netinet Message-ID: <201907081911.x68JBnn1067850@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201907081911.x68JBnn1067850>