The Assimilation Project
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
ipportframe.h
Go to the documentation of this file.
1 
27 #ifndef _IPPORTFRAME_H
28 #define _IPPORTFRAME_H
29 #include <projectcommon.h>
30 #include <frame.h>
31 #include <netaddr.h>
32 
39 typedef struct _IpPortFrame IpPortFrame;
40 struct _IpPortFrame {
43  guint16 port;
44  void (*_basefinal)(AssimObj*);
45  NetAddr*(*getnetaddr)(IpPortFrame*f);
46 };
47 
49 WINEXPORT IpPortFrame* ipportframe_ipv4_new(guint16 frame_type, guint16 port, gconstpointer addrbuf);
50 WINEXPORT IpPortFrame* ipportframe_ipv6_new(guint16 frame_type, guint16 port, gconstpointer addrbuf);
51 WINEXPORT Frame* ipportframe_tlvconstructor(gconstpointer tlvstart, gconstpointer pktend);
52 
54 #endif /* _IPPORTFRAME_H */