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 (22 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

/*************************************************************************
* (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;
	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>