File:  [ELWIX - Embedded LightWeight unIX -] / fwsync / driver / fwsync_proto.h
Revision 1.3: download - view: text, annotated - select for diffs - revision graph
Mon Jul 11 15:59:42 2022 UTC (23 months, 1 week ago) by misho
Branches: MAIN
CVS tags: HEAD
Activate debug on module
Adds NAT alias handling
fix memory leak and empty send list

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

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