On Tue, May 29, 2018 at 11:42:16PM +0200, Anders Selhammer wrote:
> UDS transport is configured using pmc_common funtions.
"functions."
> +static int open_pmc(struct config *cfg)
> +{
> + char uds_local[MAX_IFNAME_SIZE + 1];
> + snprintf(uds_local, sizeof(uds_local), "/var/run/snmpd.%d", getpid());
> +
> + pmc = pmc_create(cfg, TRANS_UDS, uds_local, 0, 1);
> +
> + return (pmc) ? 0 : -1;
Don't need parenthesis here.
> +}
> +
> static int open_snmp()
> {
> snmp_enable_calllog();
> @@ -35,23 +50,99 @@ static int open_snmp()
> return 0;
> }
>
> +static void usage(char *progname)
> +{
> + fprintf(stderr,
> + "\nusage: %s [options]\n\n"
> + " -f [file] read configuration from 'file'\n"
> + " -h prints this message and exits\n"
> + " -m print messages to stdout\n"
It would be useful to have "-q" as well, just like the other programs.
> + "\n",
> + progname);
> +}
> +
Thanks,
Richard
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Linuxptp-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel