Commit faa183cd authored by Dafydd Harries's avatar Dafydd Harries

remove StunAttributeAddress struct in favour of nested anonymous struct

darcs-hash:20070105202908-c9803-be773d83c6046340291735a2d0d87ebd48af62d8.gz
parent bd179add
...@@ -27,21 +27,17 @@ typedef enum { ...@@ -27,21 +27,17 @@ typedef enum {
STUN_ATTRIBUTE_REFLECTED_FROM = 0xb STUN_ATTRIBUTE_REFLECTED_FROM = 0xb
} StunAttributeType; } StunAttributeType;
typedef struct _StunAttributeAddress StunAttributeAddress;
struct _StunAttributeAddress {
guint8 padding;
guint8 af;
guint16 port;
guint32 ip;
};
typedef struct _StunAttribute StunAttribute; typedef struct _StunAttribute StunAttribute;
struct _StunAttribute { struct _StunAttribute {
guint16 type; guint16 type;
guint16 length; guint16 length;
StunAttributeAddress address; struct {
guint8 padding;
guint8 af;
guint16 port;
guint32 ip;
} address;
}; };
typedef struct _StunMessage StunMessage; typedef struct _StunMessage StunMessage;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment