AW: [jcifs] unable to fetch workgroups under winxp

Moritz Post moritzpost at gmx.de
Thu Aug 7 23:25:08 EST 2003


thx for your quick answer

> >>nbtstat -a 192.168.0.1
> >
> > LAN-Verbindung:
> > Knoten-IP-Adresse: [192.168.0.1] Bereichskennung: []
> >
> >       NetBIOS-Namentabelle des Remotecomputers
> >
> >        Name               Typ          Status
> >     ---------------------------------------------
> >     SOUL           <00>  EINDEUTIG   Registriert
> >     NOD            <00>  GRUPPE      Registriert
> >     SOUL           <20>  EINDEUTIG   Registriert
> >     NOD            <1E>  GRUPPE      Registriert
> >     NOD            <1D>  EINDEUTIG   Registriert
> >     ..__MSBROWSE__.<01>  GRUPPE      Registriert
> 
> So are you running nbtstat on the machine you're runnin jCIFS 
> on? Is the XP machine 192.168.0.1? Are you running nbtstat on 
> 192.168.0.1 or is that different machine?

nbtstat is running on the same machine i am using jCIFS on which is the
xp machine with the 192.168.0.1 ip.
so it is all the same computer here.

> If you want a quick answer, please send me a packet capture 
> of jCIFS failing to recolve __MSBROWSE__ using netmon or Ethereal.
> 
> Mike

here is a dump of the ethereal traffic when trying to query "smb:\\".
if more information is needed i'd be happy to provide them.

========= SNIP ============

Frame 1 (92 bytes on wire, 92 bytes captured)
    Arrival Time: Aug  7, 2003 15:19:07.591610000
    Time delta from previous packet: 0.000000000 seconds
    Time relative to first packet: 0.000000000 seconds
    Frame Number: 1
    Packet Length: 92 bytes
    Capture Length: 92 bytes
Ethernet II, Src: 00:50:bf:55:8a:a1, Dst: ff:ff:ff:ff:ff:ff
    Destination: ff:ff:ff:ff:ff:ff (Broadcast)
    Source: 00:50:bf:55:8a:a1 (Mototech_55:8a:a1)
    Type: IP (0x0800)
Internet Protocol, Src Addr: 192.168.0.1 (192.168.0.1), Dst Addr:
255.255.255.255 (255.255.255.255)
    Version: 4
    Header length: 20 bytes
    Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00)
        0000 00.. = Differentiated Services Codepoint: Default (0x00)
        .... ..0. = ECN-Capable Transport (ECT): 0
        .... ...0 = ECN-CE: 0
    Total Length: 78
    Identification: 0x2d12 (11538)
    Flags: 0x00
        .0.. = Don't fragment: Not set
        ..0. = More fragments: Not set
    Fragment offset: 0
    Time to live: 128
    Protocol: UDP (0x11)
    Header checksum: 0x4ce4 (correct)
    Source: 192.168.0.1 (192.168.0.1)
    Destination: 255.255.255.255 (255.255.255.255)
User Datagram Protocol, Src Port: 3210 (3210), Dst Port: netbios-ns
(137)
    Source port: 3210 (3210)
    Destination port: netbios-ns (137)
    Length: 58
    Checksum: 0x883e (correct)
NetBIOS Name Service
    Transaction ID: 0x0001
    Flags: 0x0110 (Name query)
        0... .... .... .... = Response: Message is a query
        .000 0... .... .... = Opcode: Name query (0)
        .... ..0. .... .... = Truncated: Message is not truncated
        .... ...1 .... .... = Recursion desired: Do query recursively
        .... .... ...1 .... = Broadcast: Broadcast packet
    Questions: 1
    Answer RRs: 0
    Authority RRs: 0
    Additional RRs: 0
    Queries
        <01><02>__MSBROWSE__<02><01>: type NB, class inet
            Name: <01><02>__MSBROWSE__<02><01> (Browser)
            Type: NB
            Class: inet

Frame 2 (92 bytes on wire, 92 bytes captured)
    Arrival Time: Aug  7, 2003 15:19:10.593388000
    Time delta from previous packet: 3.001778000 seconds
    Time relative to first packet: 3.001778000 seconds
    Frame Number: 2
    Packet Length: 92 bytes
    Capture Length: 92 bytes
Ethernet II, Src: 00:50:bf:55:8a:a1, Dst: ff:ff:ff:ff:ff:ff
    Destination: ff:ff:ff:ff:ff:ff (Broadcast)
    Source: 00:50:bf:55:8a:a1 (Mototech_55:8a:a1)
    Type: IP (0x0800)
Internet Protocol, Src Addr: 192.168.0.1 (192.168.0.1), Dst Addr:
255.255.255.255 (255.255.255.255)
    Version: 4
    Header length: 20 bytes
    Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00)
        0000 00.. = Differentiated Services Codepoint: Default (0x00)
        .... ..0. = ECN-Capable Transport (ECT): 0
        .... ...0 = ECN-CE: 0
    Total Length: 78
    Identification: 0x2d13 (11539)
    Flags: 0x00
        .0.. = Don't fragment: Not set
        ..0. = More fragments: Not set
    Fragment offset: 0
    Time to live: 128
    Protocol: UDP (0x11)
    Header checksum: 0x4ce3 (correct)
    Source: 192.168.0.1 (192.168.0.1)
    Destination: 255.255.255.255 (255.255.255.255)
User Datagram Protocol, Src Port: 3210 (3210), Dst Port: netbios-ns
(137)
    Source port: 3210 (3210)
    Destination port: netbios-ns (137)
    Length: 58
    Checksum: 0x883d (correct)
NetBIOS Name Service
    Transaction ID: 0x0002
    Flags: 0x0110 (Name query)
        0... .... .... .... = Response: Message is a query
        .000 0... .... .... = Opcode: Name query (0)
        .... ..0. .... .... = Truncated: Message is not truncated
        .... ...1 .... .... = Recursion desired: Do query recursively
        .... .... ...1 .... = Broadcast: Broadcast packet
    Questions: 1
    Answer RRs: 0
    Authority RRs: 0
    Additional RRs: 0
    Queries
        <01><02>__MSBROWSE__<02><01>: type NB, class inet
            Name: <01><02>__MSBROWSE__<02><01> (Browser)
            Type: NB
            Class: inet

=========== SNAP ============

greets Moritz Post




More information about the jcifs mailing list