1: /*************************************************************************
2: * (C) 2022 CloudSigma AG - Sofia/Bulgaria
3: * by Michael Pounov <misho@elwix.org>
4: **************************************************************************/
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;
14: uint16_t fws_rulenum;
15: uint32_t fws_ruleid;
16: uint16_t fws_sport;
17: uint16_t fws_dport;
18: uint16_t fws_aport;
19: uint16_t fws_pport;
20: struct in_addr fws_aaddr;
21: struct in_addr fws_paddr;
22: union {
23: struct in_addr fws_saddr;
24: struct in6_addr fws_saddr6;
25: };
26: union {
27: struct in_addr fws_daddr;
28: struct in6_addr fws_daddr6;
29: };
30: uint32_t fws_scopeid;
31: } __packed;
32:
33: #define FWS_PKTVER_STATE 'S'
34: #define FWS_PKTVER_ALIAS 'N'
35:
36:
37: #endif
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>