diff options
author | Linus Nordberg <linus@nordu.net> | 2011-03-07 15:23:40 +0100 |
---|---|---|
committer | Linus Nordberg <linus@nordu.net> | 2011-03-07 15:23:40 +0100 |
commit | cbcaa6a7c8f8a6704f6b4a68f260020957214a07 (patch) | |
tree | 1d0bc882bfd69f490562daa829a7a8845ecf4552 /lib/packet.h | |
parent | 41af6cd03dac4eb905d0d3de574d2e4f3f9600eb (diff) |
Move verification of response packets up to a level where it makes sense.
Replace the user_dispatch_flag on connections with
conn_user_dispatch_p().
Remove the 'original' member from packet and instead have an upper
layer verify.
Rename packet valid_flag --> received_flag to reflect that we don't
verify.
Move _close_conn() --> conn_close().
Move packet flags into a single unsigned int, for portability.
(_read_packet): Don't verify packet.
(rs_conn_receive_packet): Don't touch PKT_OUT if there isn't a packet.
(rs_conn_receive_packet): Verify packet using packet_verify_response().
Diffstat (limited to 'lib/packet.h')
-rw-r--r-- | lib/packet.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/packet.h b/lib/packet.h index 7053329..edff9de 100644 --- a/lib/packet.h +++ b/lib/packet.h @@ -2,3 +2,6 @@ See the file COPYING for licensing information. */ int packet_do_send (struct rs_packet *pkt); +int packet_verify_response (struct rs_connection *conn, + struct rs_packet *response, + struct rs_packet *request); |