fam
[Top] [All Lists]

Re: [fam] question

To: fault@xxxxxxxxxxxxxx
Subject: Re: [fam] question
From: "Rusty Ballinger" <rusty@xxxxxxxxxxxxxxxxxx>
Date: Mon, 26 Jun 2000 21:17:56 -0700
Cc: fam@xxxxxxxxxxx
In-reply-to: brad <fault@xxxxxxxxxxxxxx> "[fam] question" (Jun 24, 5:03pm)
References: <20000624170332.A939@localhost>
Reply-to: rusty@xxxxxxx
Sender: owner-fam@xxxxxxxxxxx
> I am setting up a firewall and want to know what port fam uses. Thanks

fam is an RPC service started by inetd, so it runs on whatever port inetd
gives it.  If you start it yourself instead of through inetd, it calls
bindresvport(), which (I think) uses the first available port at or below
1023.  (Perhaps it ought to have a command-line argument for which port to
use.)  Anyway, that means you don't know ahead of time what port it will use,
but you can ask the portmapper (either through pmap_getport() or
pmap_getmaps(), or through "rpcinfo -p") what port it's running on after it
starts.  Does that help?

--Rusty

--
Source code, list archive, and docs: http://oss.sgi.com/projects/fam/
To unsubscribe: echo unsubscribe fam | mail majordomo@xxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>
  • [fam] question, brad
    • Message not available
      • Re: [fam] question, Rusty Ballinger <=