aboutsummaryrefslogtreecommitdiff
path: root/sys/contrib/ipfilter/netinet
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2019-07-08 19:11:49 +0000
committerCy Schubert <cy@FreeBSD.org>2019-07-08 19:11:49 +0000
commit67a1d0547c02d4623c66fa280ab82091ed347e3e (patch)
tree37963d5f98694f4a971ba75ae27a2041b8e269b0 /sys/contrib/ipfilter/netinet
parentb64b92b0d204a38aef966f9783905ded8c8142cb (diff)
downloadsrc-67a1d0547c02d4623c66fa280ab82091ed347e3e.tar.gz
src-67a1d0547c02d4623c66fa280ab82091ed347e3e.zip
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
Notes
Notes: svn path=/head/; revision=349843
Diffstat (limited to 'sys/contrib/ipfilter/netinet')
-rw-r--r--sys/contrib/ipfilter/netinet/ip_fil.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/contrib/ipfilter/netinet/ip_fil.h b/sys/contrib/ipfilter/netinet/ip_fil.h
index cbcc8827a497..95b9af7f011d 100644
--- a/sys/contrib/ipfilter/netinet/ip_fil.h
+++ b/sys/contrib/ipfilter/netinet/ip_fil.h
@@ -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