#include "config.h"
#endif
-#ifndef lint
-static const char rcsid[] _U_ =
- "@(#) $Header: /tcpdump/master/tcpdump/print-smb.c,v 1.47 2007-12-09 00:30:47 guy Exp $";
-#endif
-
#include <tcpdump-stdinc.h>
#include <stdio.h>
#include "extract.h"
#include "smb.h"
+static const char tstr[] = "[|SMB]";
+
static int request = 0;
static int unicodestr = 0;
}
return;
trunc:
- printf("[|SMB]");
+ printf("%s", tstr);
return;
}
}
return;
trunc:
- printf("[|SMB]");
+ printf("%s", tstr);
return;
}
}
return;
trunc:
- printf("[|SMB]");
+ printf("%s", tstr);
return;
}
}
return;
trunc:
- printf("[|SMB]");
+ printf("%s", tstr);
return;
}
}
return;
trunc:
- printf("[|SMB]");
+ printf("%s", tstr);
return;
}
}
return;
trunc:
- printf("[|SMB]");
+ printf("%s", tstr);
return;
}
}
return;
trunc:
- printf("[|SMB]");
+ printf("%s", tstr);
return;
}
if (command == 0xFF)
break;
TCHECK2(words[3], 2);
- newsmboffset = EXTRACT_LE_16BITS(words + 3);
+ newsmboffset = EXTRACT_LE_16BITS(words + 3);
fn = smbfind(command, smb_fns);
printf("\n");
return;
trunc:
- printf("[|SMB]");
+ printf("%s", tstr);
return;
}
}
return;
trunc:
- printf("[|SMB]");
+ printf("%s", tstr);
return;
}
fflush(stdout);
return;
trunc:
- printf("[|SMB]");
+ printf("%s", tstr);
return;
}
printf("SMB-over-TCP packet:(raw data or continuation?)\n");
return;
trunc:
- printf("[|SMB]");
+ printf("%s", tstr);
return;
}
printf("\n");
return;
trunc:
- printf("[|SMB]");
+ printf("%s", tstr);
return;
}