r5118: added support for node status replies in nbtd. nmblookup -S now works against...
[samba.git] / source / nbt_server / nbt_server.h
index 49a07ca95e522361713d3a40511534cf41610e78..602d7b2e46569b73693cde0282a88a6681680baf 100644 (file)
@@ -62,3 +62,10 @@ struct nbt_server {
 
 
 
+/* check a condition on an incoming packet */
+#define NBT_ASSERT_PACKET(packet, src_address, test) do { \
+       if (!(test)) { \
+               nbt_bad_packet(packet, src_address, #test); \
+               return; \
+       } \
+} while (0)