X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=nmb.c;fp=nmb.c;h=085aefb2a620d6642d22cc989aabc3ffe5ec9216;hb=5fcf4e25ccd1148036ca46554670f7ef0c713bbd;hp=bb89ba9a1a052942838d30e898c9b7a98508d0d0;hpb=7aa185f7ffbfb86dd631682014d3397c5ca82342;p=nbtscanner diff --git a/nmb.c b/nmb.c index bb89ba9..085aefb 100644 --- a/nmb.c +++ b/nmb.c @@ -24,6 +24,7 @@ #include #include #include +#include #include "nmb.h" #include "packet.h" @@ -32,6 +33,7 @@ void build_nbt_packet(struct nmb_packet *nmb, int name_trn_id) { + /* this could in theory be optimized, but I don't think it's worth it */ nmb->header.name_trn_id = name_trn_id; nmb->header.opcode = 0; nmb->header.response = 0;