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, gpointer*,gpointer*);
52 
54 #endif /* _IPPORTFRAME_H */
Frame baseclass
Definition: ipportframe.h:41
WINEXPORT IpPortFrame * ipportframe_ipv6_new(guint16 frame_type, guint16 port, gconstpointer addrbuf)
Construct and initialize an IPv6 IpPortFrame class.
Definition: ipportframe.c:217
WINEXPORT IpPortFrame * ipportframe_netaddr_new(guint16 frame_type, NetAddr *)
Construct and initialize an IpPortFrame class from a IP NetAddr class.
Definition: ipportframe.c:234
This is the base Frame class object (in-memory TLV (type, length, value)) for every general component...
Definition: frame.h:43
#define WINEXPORT
Definition: projectcommon.h:45
guint16 port
Definition: ipportframe.h:43
Implements basic Frame class.
WINEXPORT Frame * ipportframe_tlvconstructor(gconstpointer tlvstart, gconstpointer pktend, gpointer *, gpointer *)
Given marshalled packet data corresponding to an IpPortFrame (address), return the corresponding Fram...
Definition: ipportframe.c:259
Project common header file.
The NetAddr class class represents a general network address - whether IP, MAC, or any other type of ...
Definition: netaddr.h:43
Defines interfaces for the NetAddr (network address) object.
WINEXPORT IpPortFrame * ipportframe_ipv4_new(guint16 frame_type, guint16 port, gconstpointer addrbuf)
Construct and initialize an IPv4 IpPortFrame class.
Definition: ipportframe.c:199
NetAddr * _addr
Definition: ipportframe.h:42
void(* _basefinal)(AssimObj *)
Free object (private)
Definition: ipportframe.h:44