File:  [ELWIX - Embedded LightWeight unIX -] / fwsync / driver / fwsync_proto.h
Revision 1.6: download - view: text, annotated - select for diffs - revision graph
Thu Aug 18 11:30:27 2022 UTC (21 months, 4 weeks ago) by misho
Branches: MAIN
CVS tags: HEAD
finish alias sync routine

    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: 	uint8_t		fws_cmdtype;
   15: 	uint16_t	fws_kidx;
   16: 	uint16_t	fws_rulenum;
   17: 	uint32_t	fws_ruleid;
   18: 	uint32_t	fws_linktype;
   19: 	uint16_t	fws_sport;
   20: 	uint16_t	fws_dport;
   21: 	uint16_t	fws_aport;
   22: 	uint16_t	fws_pport;
   23: 	struct in_addr	fws_aaddr;
   24: 	struct in_addr	fws_paddr;
   25: 	union {
   26: 		struct in_addr	fws_saddr;
   27: 		struct in6_addr	fws_saddr6;
   28: 	};
   29: 	union {
   30: 		struct in_addr	fws_daddr;
   31: 		struct in6_addr	fws_daddr6;
   32: 	};
   33: 	uint32_t	fws_scopeid;
   34: } __packed;
   35: 
   36: #define FWS_PKTVER_STATE	'S'
   37: #define FWS_PKTVER_ALIAS	'N'
   38: 
   39: 
   40: #endif

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