summaryrefslogtreecommitdiff
path: root/radmsg.h
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2013-08-28 13:48:49 +0200
committerLinus Nordberg <linus@nordberg.se>2013-09-05 15:15:32 +0200
commit33a3b21fa6926e8cbe61725dd80d258951766e2f (patch)
treee96b714d24571395a9a93adcc958af933b878431 /radmsg.h
parente0b805508ae91a82c1992bdf35db5efcd89cfd6d (diff)
Keep Proxy-State attributes in all replies to clients.
Closes RADSECPROXY-52.
Diffstat (limited to 'radmsg.h')
-rw-r--r--radmsg.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/radmsg.h b/radmsg.h
index 1bef59b..7cfcc75 100644
--- a/radmsg.h
+++ b/radmsg.h
@@ -15,6 +15,7 @@
#define RAD_Attr_Reply_Message 18
#define RAD_Attr_Vendor_Specific 26
#define RAD_Attr_Calling_Station_Id 31
+#define RAD_Proxy_State 33
#define RAD_Attr_Tunnel_Password 69
#define RAD_Attr_Message_Authenticator 80
@@ -32,6 +33,10 @@ void radmsg_free(struct radmsg *);
struct radmsg *radmsg_init(uint8_t, uint8_t, uint8_t *);
int radmsg_add(struct radmsg *, struct tlv *);
struct tlv *radmsg_gettype(struct radmsg *, uint8_t);
+struct list *radmsg_getalltype(const struct radmsg *msg, uint8_t type);
+int radmsg_copy_attrs(struct radmsg *dst,
+ const struct radmsg *src,
+ uint8_t type);
uint8_t *radmsg2buf(struct radmsg *msg, uint8_t *);
struct radmsg *buf2radmsg(uint8_t *, uint8_t *, uint8_t *);