Ask a Question related to UNIX Programming, Design and Development.
-
Raja Sambasivan #1
Determining which ip address and port an inbound packet was sent to
Hello,
For various reasons, I need to be able to determine the ip address and
port that an RPC request was sent to (though trivial on a machine with
just one network card, if a RPC request is sent to a multi-homed
machine, then determining which network interface received the request
becomes a bit harder, I think.)
So machine A sends say a RPC read request to machine B. Machine B
gets the request and wishes to determine which network interface
received the request. What I do now, to get this information is call
getsockname on the SVCXPRT* parameter of the server side transport
handle...
So if svc_req *rqstp is the server side transport handle, I call
getsockname on the socket defined by rqstp->rq_xprt->xp_sock in order
to find the port and ip the RPC packet was sent to on machine B.
Unfortunately, the resulting sock_addr structure gives me an IP of
zero, and a rather interesting port...
Is there a better way of doing this? Please bear with me, as I'm
rather new at all this socket based stuff:(
Raja Sambasivan Guest
-
Tools for Inbound travel agents
Dear Colleagues, Greetings from http://www.China-TravelGuide.com. Email Promoter - Currently a total more than 46,000 travel agents, tour... -
iptables woes on woody, not accepting inbound connections
Hi, I'm in the middle of trying to build a secure webserver, using stock woody (2.4.18-bf2.4), the box is completely updates from last night. I... -
Change address location in WSDL to port 8080
Hi, does anyone know how to change the port to 8080 in the address location from within visual studio dotnet? The WSDL is automatically... -
Packet monitoring at the port level
In article <I0lPa.48310$xd5.2585327@stones.force9.net>, Rob Martyn <robmartyn@hotmail.com> wrote: man snoop -- Barry Margolin,... -
Inbound connection limit in XP Home
No. its not possible. Only option is to upgrade to Server OS. Inbound Connections Limit in Windows XP...



Reply With Quote

