diff options
author | rodri <rgl@antares-labs.eu> | 2023-02-11 00:26:30 +0000 |
---|---|---|
committer | rodri <rgl@antares-labs.eu> | 2023-02-11 00:26:30 +0000 |
commit | 775309861b51dd1f340d82074b7e9234f3e0675e (patch) | |
tree | c0a20e4edcb09814e3fc659e97aaeb363b5b51ef /pack.c | |
parent | c1cdf0f980b92193953f05bf444b7c78f369a122 (diff) | |
download | musw-775309861b51dd1f340d82074b7e9234f3e0675e.tar.gz musw-775309861b51dd1f340d82074b7e9234f3e0675e.tar.bz2 musw-775309861b51dd1f340d82074b7e9234f3e0675e.zip |
implemented connection establishment with per client DHX.
Diffstat (limited to 'pack.c')
-rw-r--r-- | pack.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,6 +1,5 @@ #include <u.h> #include <libc.h> -#include <pool.h> #include <ip.h> #include <draw.h> #include <geometry.h> @@ -87,6 +86,7 @@ vpack(uchar *p, int n, char *fmt, va_list a) if(p+Framehdrsize+F->len > e) goto err; + put4(p, F->id), p += 4; *p++ = F->type; put4(p, F->seq), p += 4; put4(p, F->ack), p += 4; @@ -156,6 +156,7 @@ vunpack(uchar *p, int n, char *fmt, va_list a) if(F == nil) F = va_arg(a, Frame*); + F->id = get4(p), p += 4; F->type = *p++; F->seq = get4(p), p += 4; F->ack = get4(p), p += 4; |