gpsd-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: listen on specific network interfaces


From: Greg Troxel
Subject: Re: listen on specific network interfaces
Date: Wed, 15 Apr 2020 09:08:46 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (berkeley-unix)

Steffen Sledz <address@hidden> writes:

> According to the manpage the -G flag enables listening on all
> addresses (INADDR_ANY) rather than just the loop back
> (INADDR_LOOPBACK) address. This is unfortunately a little too
> unspecific for us.
>
> Is it possible to specify specific interfaces to listen on?

I believe you would have to implement such a feature.

Typically people who want to do what I'm guessing you want to do (you
didn't really explain) would use firewall configuration.

If I recall correctly (80% odds I wrote or suggested the patch for -G),
this is just flipping the address from INADDR_ANY to INADDR_LOOPBACK in
the bind call.  But you can read the code to see.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]