Determining a user's remote port in a VFS module

David Gutierrez davegu1 at hotmail.com
Tue Jun 26 23:01:57 GMT 2007


There are some tools out there. Try tcpdump, netpdump or any other network 
tool. Also, for Unix, there sed to be a tool called lslk which is from the 
same person who designed the lsof.
Check both and will give you more info.
David



From: Constantine Vetoshev <gepardcv at yahoo.com>
To: samba-technical at lists.samba.org
Subject: Determining a user's remote port in a VFS module
Date: Mon, 25 Jun 2007 21:51:54 +0000 (UTC)
MIME-Version: 1.0
Received: from lists.samba.org ([66.70.73.150]) by 
bay0-mc8-f2.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668); Tue, 26 
Jun 2007 15:12:00 -0700
Received: from dp.samba.org (localhost [127.0.0.1])by lists.samba.org 
(Postfix) with ESMTP id F1617163B4Dfor <davegu1 at hotmail.com>; Tue, 26 Jun 
2007 22:11:59 +0000 (GMT)
Received: from ciao.gmane.org (main.gmane.org [80.91.229.2])by 
lists.samba.org (Postfix) with ESMTP id 2C313162C35for 
<samba-technical at lists.samba.org>;Tue, 26 Jun 2007 22:11:05 +0000 (GMT)
Received: from root by ciao.gmane.org with local (Exim 4.43)id 
1I3JEY-00065j-Bjfor samba-technical at lists.samba.org; Wed, 27 Jun 2007 
00:10:03 +0200
Received: from mobile-166-217-116-043.mycingular.net ([166.217.116.43])by 
main.gmane.org with esmtp (Gmexim 0.1 (Debian))id 1AlnuQ-0007hv-00for 
<samba-technical at lists.samba.org>; Wed, 27 Jun 2007 00:10:02 +0200
Received: from gepardcv by mobile-166-217-116-043.mycingular.net with 
local(Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00for 
<samba-technical at lists.samba.org>; Wed, 27 Jun 2007 00:10:02 +0200
X-Message-Info: 
txF49lGdW43Xxnrcm0XIn9IhgWFzYvS/H8G7C7jhf9wV/oGckUv+zJmC8Tfm6/XD
X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on dp.samba.org
X-Spam-Level:
X-Spam-Status: No, score=0.1 required=3.8 
tests=BAYES_00,DATE_IN_PAST_24_48,FORGED_YAHOO_RCVD,RCVD_IN_DSBL,SPF_HELO_PASS,SPF_PASS 
autolearn=no version=3.1.7
X-Original-To: samba-technical at lists.samba.org
Delivered-To: samba-technical at lists.samba.org
X-Injected-Via-Gmane: http://gmane.org/
Lines: 7
X-Complaints-To: usenet at sea.gmane.org
X-Gmane-NNTP-Posting-Host: main.gmane.org
User-Agent: Loom/3.14 (http://gmane.org/)
X-Loom-IP: 166.217.116.43 (Mozilla/5.0 (Windows; U; Windows NT 5.1; 
en-US;rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4)
X-BeenThere: samba-technical at lists.samba.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: "Discussions on Samba internals. For general questions 
pleasesubscribe to the list 
samba at samba.org"<samba-technical.lists.samba.org>
List-Unsubscribe: 
<https://lists.samba.org/mailman/listinfo/samba-technical>, 
<mailto:samba-technical-request at lists.samba.org?subject=unsubscribe>
List-Archive: <http://lists.samba.org/archive/samba-technical>
List-Post: <mailto:samba-technical at lists.samba.org>
List-Help: <mailto:samba-technical-request at lists.samba.org?subject=help>
List-Subscribe: 
<https://lists.samba.org/mailman/listinfo/samba-technical>,<mailto:samba-technical-request at lists.samba.org?subject=subscribe>
Errors-To: samba-technical-bounces+davegu1=hotmail.com at lists.samba.org
Return-Path: samba-technical-bounces+davegu1=hotmail.com at lists.samba.org
X-OriginalArrivalTime: 26 Jun 2007 22:12:00.0449 (UTC) 
FILETIME=[04B0BB10:01C7B83F]

I need to figure out which port a user connected from in a VFS module. 
Looking
in connection_struct in smb.h, I don't see anything promising. I see the 
remote
IP, but not the remote port. Is this information available from Samba, or do 
I
have to do some sketchy /proc scraping to figure this out?

Thanks,
CV

_________________________________________________________________
Get a preview of Live Earth, the hottest event this summer - only on MSN 
http://liveearth.msn.com?source=msntaglineliveearthhm



More information about the samba-technical mailing list