Annotation of fwsync/driver/fwsync_proto.h, revision 1.5

1.2       misho       1: /*************************************************************************
                      2: * (C) 2022 CloudSigma AG - Sofia/Bulgaria
                      3: *  by Michael Pounov <misho@elwix.org>
                      4: **************************************************************************/
1.1       misho       5: #ifndef __FWSYNC_PROTO_H
                      6: #define __FWSYNC_PROTO_H
                      7: 
                      8: 
                      9: struct fws_proto {
                     10:        uint8_t         fws_version;
                     11:        uint8_t         fws_fib;
                     12:        uint8_t         fws_addrtype;
                     13:        uint8_t         fws_proto;
1.5     ! misho      14:        uint8_t         fws_cmdtype;
        !            15:        uint16_t        fws_kidx;
1.4       misho      16:        uint16_t        fws_rulenum;
                     17:        uint32_t        fws_ruleid;
1.1       misho      18:        uint16_t        fws_sport;
                     19:        uint16_t        fws_dport;
1.3       misho      20:        uint16_t        fws_aport;
                     21:        uint16_t        fws_pport;
                     22:        struct in_addr  fws_aaddr;
                     23:        struct in_addr  fws_paddr;
1.1       misho      24:        union {
                     25:                struct in_addr  fws_saddr;
                     26:                struct in6_addr fws_saddr6;
                     27:        };
                     28:        union {
                     29:                struct in_addr  fws_daddr;
                     30:                struct in6_addr fws_daddr6;
                     31:        };
                     32:        uint32_t        fws_scopeid;
                     33: } __packed;
                     34: 
                     35: #define FWS_PKTVER_STATE       'S'
1.3       misho      36: #define FWS_PKTVER_ALIAS       'N'
1.1       misho      37: 
                     38: 
                     39: #endif

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>