'lsof' will tell you. Usually listeners bind to a specific port, or use getsocketname to acquire their own port and send it to a correspondent, like in passive FTP.
As far as IP goes, you can listen on 0.0.0.0 = any, localhost 127.0.0.1, any IP of devices on your host. Otherwise, you get nothing.
I'm sorry for not being more specific in my query.
The concern is while configuring the server if I specify the DNS name then
Does not yeild the webpage and visa-versa. So i have to know using the pid is the server is listening on the DNS name, if so what is it and if it is listening on the IP address and what it is.
Hello,
Please help me to know, How to find out the how much amount of process addres space is required/is used for/by a process.
Tnx & Regards
Vishwa. (1 Reply)
Hi all,
How can I log all requests on ports for programs like ftp, telnet, rsh, xdmcp etc...
I want to see if anyone uses these programs/protocols and how often.
Is it difficult to setup a log for these ports and listen on all requests?
/combat (4 Replies)
Hi,
I am looking to work on unix systems which include (hp-ux, ibm aix, solaris and linux). I want to get the total virtual address space of a process, the used virtual memory i am able to get without any problem. I have tried using getrlimit and getrlimit64, but that gives only ... (4 Replies)
hi,
For some special reason , I'd like to control the memory address for the shared libraries in my dynamically linked process.
And it is the "ld" which interpret the dynamically linked library, and in my system, the "ld-linux.so.2" is put at 0x00812000. Then I use "prelink -r" command to change... (0 Replies)
hi,
For some special reason , I'd like to control the memory address for the shared libraries in my dynamically linked process.
And it is the "ld" which interpret the dynamically linked library, and in my system, the "ld-linux.so.2" is put at 0x00812000. Then I use "prelink -r" command to... (3 Replies)
Hi All,
From C++, I just want to find the address space size that a process is allowed to use. For ex, in 32 bit OS the allowed address space is 4GB and in 64 bit OS I guess this is 16GB or more.
I jsut want to find it in my C++ project. Is there any API calls that gives me such information.... (2 Replies)
Hi
If suppose there is a MAC address of NIC port. I have change the MAC address through following command
# ifconfig hme0 ether a:0:30:f0.ad:51
The change MAC address will be there till reboot.
Now I would like to know how to make the change MAC address permanent. I believe that... (1 Reply)
Hi,
I am trying to configure a transparent squid cache. When I try to use the below option in squid.conf, squid listens on port 80 only for the IP address configured on the system's interface.
http_port 80 transparent
But I want squid to accept connections for any IP address on port 80.... (3 Replies)
Suppose I have 3 gb of ram and 250 gb hard disk in my pc.
Now I wrote a simple C program having only one statement malloc() to allocate 4 gb of memory as 32 bit os can address 4gb address space then will the malloc succeed?
If yes then how it will get extra 1 gb of memory?
Does the process gets... (3 Replies)
Discussion started by: rupeshkp728
3 Replies
LEARN ABOUT FREEBSD
rarpd
RARPD(8) BSD System Manager's Manual RARPD(8)NAME
rarpd -- reverse ARP daemon
SYNOPSIS
rarpd -a [-dfsv] [-t directory] [-P pidfile]
rarpd [-dfsv] [-t directory] [-P pidfile] interface
DESCRIPTION
The rarpd utility services Reverse ARP requests on the Ethernet connected to interface. Upon receiving a request, rarpd maps the target
hardware address to an IP address via its name, which must be present in both the ethers(5) and hosts(5) databases. If a host does not exist
in both databases, the translation cannot proceed and a reply will not be sent.
By default, a request is honored only if the server (i.e., the host that rarpd is running on) can "boot" the target; that is, a file or
directory matching the glob /tftpboot/ipaddr* exists, where ipaddr is the target IP address in hex. For example, the IP address
204.216.27.18 will be replied to if any of /tftpboot/CCD81B12, /tftpboot/CCD81B12.SUN3, or /tftpboot/CCD81B12-boot exist. This requirement
can be overridden with the -s flag (see below).
In normal operation, rarpd forks a copy of itself and runs in the background. Anomalies and errors are reported via syslog(3).
The following options are available:
-a Listen on all the Ethernets attached to the system. If -a is omitted, an interface must be specified.
-d If -f is also specified, rarpd logs messages to stdout and stderr instead of via syslog(3).
-f Run in the foreground.
-P Specify the pathname of the PID file. If not specified, /var/run/rarpd.pid or /var/run/rarpd.ifname.pid will be used depending on
the -a flag or the specified interface name.
-s Supply a response to any RARP request for which an ethernet to IP address mapping exists; do not depend on the existence of
/tftpboot/ipaddr*.
-t Supply an alternate tftp root directory to /tftpboot, similar to the -s option of tftpd(8). This permits rarpd to selectively
respond to RARP requests, but use an alternate directory for IP checking.
-v Enable verbose syslogging.
FILES
/etc/ethers
/etc/hosts
/tftpboot
/var/run/rarpd.pid
SEE ALSO bpf(4)
Finlayson, R., Mann, T., Mogul, J.C., and Theimer, M., RFC 903: Reverse Address Resolution Protocol, June 1984, 4 p.
AUTHORS
Craig Leres <leres@ee.lbl.gov> and Steven McCanne <mccanne@ee.lbl.gov>. Lawrence Berkeley Laboratory, University of California, Berkeley,
CA.
BUGS
The rarpd utility can depend on the DNS to resolve the name discovered from /etc/ethers. If this name is not in the DNS but is in
/etc/hosts, the DNS lookup can cause a delayed RARP response, so in this situation it is recommended to configure nsswitch.conf(5) to read
/etc/hosts first.
BSD July 9, 2012 BSD