From 8752e38c05779b6ff72bb0bf49940ef6afe55184 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 9 Nov 2005 08:11:50 +0000 Subject: r11595: added a helper layer to parse streams into individual packets. This is something that Andrew Bartlett has been asking for for a while, and when I started having to re-invent this packet parsing code yet again for SMB2 I decided it was time to do it generically you use it by providing a "is this a full packet yet?" helper function to the packet_*() functions, which then handle all the logic of partial packet buffering. This also goes to great lengths to operate efficiently, minimising the number of recv system calls. (This used to be commit e6c47b954a6f09c53ea419800ce873295fcd0be9) --- source4/lib/stream/config.mk | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 source4/lib/stream/config.mk (limited to 'source4/lib/stream/config.mk') diff --git a/source4/lib/stream/config.mk b/source4/lib/stream/config.mk new file mode 100644 index 0000000000..1ec650ab10 --- /dev/null +++ b/source4/lib/stream/config.mk @@ -0,0 +1,9 @@ + +################################################ +# Start SUBSYSTEM LIBPACKET +[SUBSYSTEM::LIBPACKET] +INIT_OBJ_FILES = \ + packet.o +NOPROTO=YES +# End SUBSYSTEM LIBPACKET +################################################ -- cgit