Forgot one flag in response (AUTHORATIVE) - doesn't work without!

This commit is contained in:
goldsimon 2007-10-21 12:44:29 +00:00
parent dd75189919
commit 9e8b944c7f

View File

@ -214,6 +214,7 @@ netbios_recv(void *arg, struct udp_pcb *upcb, struct pbuf *p, struct ip_addr *ad
netbios_resp.resp_hdr.trans_id = netbios_hdr->trans_id;
netbios_resp.resp_hdr.flags = htons(NETB_HFLAG_RESPONSE |
NETB_HFLAG_OPCODE_NAME_QUERY |
NETB_HFLAG_AUTHORATIVE |
NETB_HFLAG_RECURS_DESIRED);
netbios_resp.resp_hdr.questions = 0;
netbios_resp.resp_hdr.answerRRs = htons(1);