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
This commit is contained in:
cy 2019-07-08 19:11:49 +00:00
parent 3bb8c14f92
commit 283db005c5

View File

@ -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