mirror of
https://github.com/samba-team/samba.git
synced 2025-03-20 22:50:26 +03:00
removed reference to subnet_record and work_record, as neither are needed.
lkcl (This used to be commit 3e7bd36c774a3d4252cbc89a52003cdbccc14d3d)
This commit is contained in:
parent
c1da1bfc1e
commit
6e444304d3
@ -39,21 +39,15 @@ extern pstring myname;
|
||||
/****************************************************************************
|
||||
process a domain logon packet
|
||||
|
||||
08aug96 lkcl@pires.co.uk
|
||||
reply_code == 0xC courtesy of jim@oxfordcc.co.uk forwarded by
|
||||
lewis2@server.uwindsor.ca
|
||||
**************************************************************************/
|
||||
void process_logon_packet(struct packet_struct *p,char *buf,int len)
|
||||
{
|
||||
struct dgram_packet *dgram = &p->packet.dgram;
|
||||
struct in_addr ip = dgram->header.source_ip;
|
||||
struct subnet_record *d = find_subnet_all(ip);
|
||||
char *logname,*q;
|
||||
fstring reply_name;
|
||||
BOOL add_slashes = False;
|
||||
pstring outbuf;
|
||||
int code,reply_code;
|
||||
struct work_record *work;
|
||||
char unknown_byte = 0;
|
||||
uint16 request_count = 0;
|
||||
uint16 token = 0;
|
||||
@ -64,19 +58,6 @@ void process_logon_packet(struct packet_struct *p,char *buf,int len)
|
||||
return;
|
||||
}
|
||||
|
||||
if (!d)
|
||||
{
|
||||
DEBUG(0,("process_logon_packet: Cannot find subnet for logon request from %s\n",
|
||||
inet_ntoa(p->ip) ));
|
||||
return;
|
||||
}
|
||||
|
||||
if (!(work = find_workgroupstruct(d,dgram->dest_name.name, False)))
|
||||
{
|
||||
DEBUG(0,("process_logon_packet: Cannot find WORKGROUP %s for logon request fomr %s\n",
|
||||
dgram->dest_name.name, inet_ntoa(p->ip) ));
|
||||
return;
|
||||
}
|
||||
|
||||
code = SVAL(buf,0);
|
||||
switch (code)
|
||||
|
Loading…
x
Reference in New Issue
Block a user