windows-loopback-adapter-support-20021126
authorScott D. Williams <sdw@email.unc.edu>
Tue, 10 Dec 2002 16:39:47 +0000 (16:39 +0000)
committerDerrick Brashear <shadow@dementia.org>
Tue, 10 Dec 2002 16:39:47 +0000 (16:39 +0000)
try to bind to loopback on windows

src/WINNT/afsd/smb.c

index 21aac83..f740e00 100644 (file)
@@ -6059,6 +6059,22 @@ void smb_NetbiosInit()
     int len;
     int lana_found = 0;
 
+    /*******************************************************************/
+    /*      ms loopback adapter scan                                   */
+    /*******************************************************************/
+    struct
+    {
+       ADAPTER_STATUS status;
+       NAME_BUFFER    NameBuff [30];
+    }       Adapter;
+    
+    int j;
+    BOOL wla_found;
+
+    /*      AFAIK, this is the default for the ms loopback adapter.*/
+    unsigned char kWLA_MAC[6] = { 0x02, 0x00, 0x4c, 0x4f, 0x4f, 0x50 };
+    /*******************************************************************/
+
     /* setup the NCB system */
     ncbp = GetNCB();
 #ifdef DJGPP