/*************************************************************************
* (C) 2022 CloudSigma AG - Sofia/Bulgaria
* by Michael Pounov <misho@elwix.org>
**************************************************************************/
#ifndef __FWSYNC_PROTO_H
#define __FWSYNC_PROTO_H
struct fws_proto {
uint8_t fws_version;
uint8_t fws_fib;
uint8_t fws_addrtype;
uint8_t fws_proto;
uint8_t fws_cmdtype;
uint16_t fws_kidx;
uint16_t fws_rulenum;
uint32_t fws_ruleid;
uint32_t fws_linktype;
uint16_t fws_sport;
uint16_t fws_dport;
uint16_t fws_aport;
uint16_t fws_pport;
struct in_addr fws_aaddr;
struct in_addr fws_paddr;
union {
struct in_addr fws_saddr;
struct in6_addr fws_saddr6;
};
union {
struct in_addr fws_daddr;
struct in6_addr fws_daddr6;
};
uint32_t fws_scopeid;
} __packed;
#define FWS_PKTVER_STATE 'S'
#define FWS_PKTVER_ALIAS 'N'
#endif
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>