[linux-cifs-client] Re: SMB support still missing?

Shirish S Pargaonkar shirishp at us.ibm.com
Fri Feb 9 04:21:57 GMT 2007







linux-cifs-client-bounces+shirishp=us.ibm.com at lists.samba.org wrote on
02/08/2007 10:06:58 PM:

> Yeah... no.  What I'd really need is an actual capture file:
>
> tcpdump -s 2000 -w JanE.cap host 92.168.222.33 and host 192.168.222.94
>
> ... or something close to that.  Just add the '-w <filename>' and
> '-s <somebignumber>' to whatever you're using.
>
> Chris -)-----
>
> Jan Engelhardt wrote:
> >
> > On Feb 8 2007 18:53, Christopher R. Hertel wrote:
> >>>> It does seem to me that it is some sort of name resolution
> issue, but it may
> >>>> have more to do with the multi-homed nature of your setup.
> >>>>
> >>>> Did you try:
> >>>>
> >>>>  mount.cifs //CL0/c /mnt
> >>> Yes, that one _fails_ with "mount error 112 = Host is down"
> (though tcpdump
> >>> _does_ show that cifs connects to port 139 and then disconnects using
FIN)
> >> It would be interesting to see that capture.
> >
> > 01:39:02.089070 IP 192.168.222.94.2019 > 192.168.222.33.445: S
> 870214128:870214128(0) win 5840 <mss 1460,sackOK,timestamp 828349 0,
> nop,wscale 1>
> >    0x0000:  4500 003c ca4d 4000 4006 329d c0a8 de5e  E..<.M at .@.2....^
> >    0x0010:  c0a8 de21 07e3 01bd 33de 69f0 0000 0000  ...!....3.i.....
> >    0x0020:  a002 16d0 a82c 0000 0204 05b4 0402 080a  .....,..........
> >    0x0030:  000c a3bd 0000 0000 0103 0301            ............
> > 01:39:02.092572 IP 192.168.222.33.445 > 192.168.222.94.2019: R 0:
> 0(0) ack 870214129 win 0
> >    0x0000:  4500 0028 f300 0000 8006 09fe c0a8 de21  E..(...........!
> >    0x0010:  c0a8 de5e 01bd 07e3 0000 0000 33de 69f1  ...^........3.i.
> >    0x0020:  5014 0000 ca8f 0000 0000 0000 0000       P.............
> > 01:39:02.096738 IP 192.168.222.94.1343 > 192.168.222.33.139: S
> 870214131:870214131(0) win 5840 <mss 1460,sackOK,timestamp 828352 0,
> nop,wscale 1>
> >    0x0000:  4500 003c ca33 4000 4006 32b7 c0a8 de5e  E..<.3 at .@.2....^
> >    0x0010:  c0a8 de21 053f 008b 33de 69f3 0000 0000  ...!.?..3.i.....
> >    0x0020:  a002 16d0 abfc 0000 0204 05b4 0402 080a  ................
> >    0x0030:  000c a3c0 0000 0000 0103 0301            ............
> > 01:39:02.102544 IP 192.168.222.33.139 > 192.168.222.94.1343: S
> 4435509:4435509(0) ack 870214132 win 8760 <mss 1460,nop,nop,sackOK>
> >    0x0000:  4500 0030 f400 4000 8006 c8f5 c0a8 de21  E..0.. at ........!
> >    0x0010:  c0a8 de5e 008b 053f 0043 ae35 33de 69f4  ...^...?.C.53.i.
> >    0x0020:  7012 2238 d0f0 0000 0204 05b4 0101 0402  p."8............
> > 01:39:02.104880 IP 192.168.222.94.1343 > 192.168.222.33.139: . ack1 win
5840
> >    0x0000:  4500 0028 ca34 4000 4006 32ca c0a8 de5e  E..(.4 at .@.2....^
> >    0x0010:  c0a8 de21 053f 008b 33de 69f4 0043 ae36  ...!.?..3.i..C.6
> >    0x0020:  5010 16d0 091d 0000                      P.......
> > 01:39:02.117326 IP 192.168.222.94.1343 > 192.168.222.33.139: P 1:
> 73(72) ack 1 win 5840 NBT Session Packet: Session Request
> >    0x0000:  4500 0070 ca35 4000 4006 3281 c0a8 de5e  E..p.5 at .@.2....^
> >    0x0010:  c0a8 de21 053f 008b 33de 69f4 0043 ae36  ...!.?..3.i..C.6
> >    0x0020:  5018 16d0 3e34 0000 8100 0044 2043 4b46  P...>4.....D.CKF
> >    0x0030:  4445 4e45 4346 4445 4646 4346 4745 4646  DENECFDEFFCFGEFF
> >    0x0040:  4343 4143 4143 4143 4143 4143 4100 2046  CCACACACACACA..F
> >    0x0050:  4445 4c44 4143 4143 4143 4143 4143 4143  DELDACACACACACAC
> >    0x0060:  4143 4143 4143 4143 4143 4143 4141 4100  ACACACACACACAAA.
> > 01:39:02.121140 IP 192.168.222.33.139 > 192.168.222.94.1343: FP 1:
> 6(5) ack 73 win 8688 NBT Session Packet: [|SMB]
> >    0x0000:  4500 002d f500 4000 8006 c7f8 c0a8 de21  E..-.. at ........!
> >    0x0010:  c0a8 de5e 008b 053f 0043 ae36 33de 6a3c  ...^...?.C.63.j<
> >    0x0020:  5019 21f0 f8a4 0000 8300 0001 8253       P.!..........S
> > 01:39:02.162638 IP 192.168.222.94.1343 > 192.168.222.33.139: . ack7 win
5840
> >    0x0000:  4500 0028 ca36 4000 4006 32c8 c0a8 de5e  E..(.6 at .@.2....^
> >    0x0010:  c0a8 de21 053f 008b 33de 6a3c 0043 ae3c  ...!.?..3.j<.C.<
> >    0x0020:  5010 16d0 08cf 0000                      P.......
> > 01:39:02.173013 IP 192.168.222.94.1343 > 192.168.222.33.139: P 73:
> 155(82) ack 7 win 5840 NBT Session Packet: Session Message
> >    0x0000:  4500 007a ca37 4000 4006 3275 c0a8 de5e  E..z.7 at .@.2u...^
> >    0x0010:  c0a8 de21 053f 008b 33de 6a3c 0043 ae3c  ...!.?..3.j<.C.<
> >    0x0020:  5018 16d0 3e3e 0000 0000 004e ff53 4d42  P...>>.....N.SMB
> >    0x0030:  7200 0000 0000 0180 0000 0000 0000 0000  r...............
> >    0x0040:  0000 0000 0000 950d 0000 0100 002b 0002  .............+..
> >    0x0050:  4c4d 312e 3258 3030 3200 024c 414e 4d41  LM1.2X002..LANMA
> >    0x0060:  4e32 2e31 0002 4e54 204c 4d20 302e 3132  N2.1..NT.LM.0.12
> >    0x0070:  0002 504f 5349 5820 3200                 ..POSIX.2.
> > 01:39:02.317447 IP 192.168.222.94.1343 > 192.168.222.33.139: R
> 155:155(0) ack 7 win 5840
> >    0x0000:  4500 0028 ca38 4000 4006 32c6 c0a8 de5e  E..(.8 at .@.2....^
> >    0x0010:  c0a8 de21 053f 008b 33de 6a8e 0043 ae3c  ...!.?..3.j..C.<
> >    0x0020:  5014 16d0 0879 0000                      P....y..
> >
> >
> >
> > Jan
>
> --
> "Implementing CIFS - the Common Internet FileSystem" ISBN: 013047116X
> Samba Team -- http://www.samba.org/     -)-----   Christopher R. Hertel
> jCIFS Team -- http://jcifs.samba.org/   -)-----   ubiqx development,
uninq.
> ubiqx Team -- http://www.ubiqx.org/     -)-----   crh at ubiqx.mn.org
> OnLineBook -- http://ubiqx.org/cifs/    -)-----   crh at ubiqx.org
> _______________________________________________
> linux-cifs-client mailing list
> linux-cifs-client at lists.samba.org
> https://lists.samba.org/mailman/listinfo/linux-cifs-client

I compared the two cases using ethereal, in case of successful mount, the
NetBIOS Session Service is 0x82,
Positive session response and in case of failure, it is 0x83 Negative
session response with error code 0x82
Called name not present     if that is what you were looking for in the
transactions.

Regards,

Shirish
-------------- next part --------------
HTML attachment scrubbed and removed


More information about the linux-cifs-client mailing list