service listener for both IPv4 and IPv6
- From: Panduranga Chary <pr.chary@xxxxxxxxx>
- Date: Tue, 19 Feb 2008 00:52:15 -0800 (PST)
Hi,
How do we make service both listening to ipv4 and ipv6 in unix.
Do we need to create two sockets (1 for v4 and 1 for v6) and listen on
both as in windows XP.
or
For inted initiated service.
we are putting 2 entries (1 for v4 and 1 for v6) though the binary is
same. only single socket opened and address binds to first accepted
address from a call to getaddrinfo().
/etc/services
tcp service #v4
tcp6 service
/etc/inetd.conf
service stream tcp nowait root service_path service
service stream tcp6 nowait root service_path service
Could you please suggest. How we go about it.
Thanks
Panduranga Chary
.
- Follow-Ups:
- Re: service listener for both IPv4 and IPv6
- From: Tristram Scott
- Re: service listener for both IPv4 and IPv6
- From: Casper H . S . ***
- Re: service listener for both IPv4 and IPv6
- Prev by Date: Re: Disaster recovery - Sun server
- Next by Date: Re: service listener for both IPv4 and IPv6
- Previous by thread: solaris 10: ge0 delayed startup
- Next by thread: Re: service listener for both IPv4 and IPv6
- Index(es):