style(9): clean up trailing whitespace

MFC after:	3 weeks
This commit is contained in:
Enji Cooper 2016-12-27 23:32:54 +00:00
parent c71c814a97
commit e1d581b289
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=310648
85 changed files with 346 additions and 346 deletions

View File

@ -4,7 +4,7 @@
.\" All rights reserved. .\" All rights reserved.
.\" .\"
.\" Author: Harti Brandt <harti@FreeBSD.org> .\" Author: Harti Brandt <harti@FreeBSD.org>
.\" .\"
.\" Redistribution and use in source and binary forms, with or without .\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions .\" modification, are permitted provided that the following conditions
.\" are met: .\" are met:
@ -13,7 +13,7 @@
.\" 2. Redistributions in binary form must reproduce the above copyright .\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the .\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution. .\" documentation and/or other materials provided with the distribution.
.\" .\"
.\" THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND .\" THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE

View File

@ -1,10 +1,10 @@
/* /*
* Copyright (C) 2004-2006 * Copyright (C) 2004-2006
* Hartmut Brandt. * Hartmut Brandt.
* All rights reserved. * All rights reserved.
* *
* Author: Harti Brandt <harti@freebsd.org> * Author: Harti Brandt <harti@freebsd.org>
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
* are met: * are met:
@ -13,7 +13,7 @@
* 2. Redistributions in binary form must reproduce the above copyright * 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the * notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution. * documentation and/or other materials provided with the distribution.
* *
* THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@ -233,7 +233,7 @@ print_scalar(SmiNode *n, u_int level)
printf(" op_%s", p->name); printf(" op_%s", p->name);
print_access(n->access); print_access(n->access);
printf(")\n"); printf(")\n");
} }
@ -422,7 +422,7 @@ static void
print_enum_typedef(SmiType *t) print_enum_typedef(SmiType *t)
{ {
SmiNamedNumber *nnum; SmiNamedNumber *nnum;
for (nnum = smiGetFirstNamedNumber(t); nnum != NULL; for (nnum = smiGetFirstNamedNumber(t); nnum != NULL;
nnum = smiGetNextNamedNumber(nnum)) { nnum = smiGetNextNamedNumber(nnum)) {
printf("\t%ld %s\n" , nnum->value.value.integer32, nnum->name); printf("\t%ld %s\n" , nnum->value.value.integer32, nnum->name);
@ -434,10 +434,10 @@ print_stype(SmiNode *n)
{ {
SmiType *type; SmiType *type;
struct tdef *t = NULL; struct tdef *t = NULL;
type = smiGetNodeType(n); type = smiGetNodeType(n);
assert(type != NULL); assert(type != NULL);
if (type->basetype == SMI_BASETYPE_ENUM) { if (type->basetype == SMI_BASETYPE_ENUM) {
if (do_typedef == 'e' && type->name != NULL) { if (do_typedef == 'e' && type->name != NULL) {
SLIST_FOREACH(t, &tdefs, link) { SLIST_FOREACH(t, &tdefs, link) {
@ -450,7 +450,7 @@ print_stype(SmiNode *n)
printf("typedef %sType ENUM (\n", n->name); printf("typedef %sType ENUM (\n", n->name);
else else
return; return;
print_enum_typedef(type); print_enum_typedef(type);
printf(")\n\n"); printf(")\n\n");
@ -476,7 +476,7 @@ static void
print_typdefs(SmiNode *n) print_typdefs(SmiNode *n)
{ {
SmiNode *p; SmiNode *p;
p = n; p = n;
n = smiGetFirstChildNode(n); n = smiGetFirstChildNode(n);
while (n != NULL) { while (n != NULL) {

View File

@ -7,7 +7,7 @@
.\" All rights reserved. .\" All rights reserved.
.\" .\"
.\" Author: Harti Brandt <harti@FreeBSD.org> .\" Author: Harti Brandt <harti@FreeBSD.org>
.\" .\"
.\" Redistribution and use in source and binary forms, with or without .\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions .\" modification, are permitted provided that the following conditions
.\" are met: .\" are met:
@ -16,7 +16,7 @@
.\" 2. Redistributions in binary form must reproduce the above copyright .\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the .\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution. .\" documentation and/or other materials provided with the distribution.
.\" .\"
.\" THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND .\" THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE

View File

@ -8,7 +8,7 @@
* All rights reserved. * All rights reserved.
* *
* Author: Harti Brandt <harti@freebsd.org> * Author: Harti Brandt <harti@freebsd.org>
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
* are met: * are met:
@ -17,7 +17,7 @@
* 2. Redistributions in binary form must reproduce the above copyright * 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the * notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution. * documentation and/or other materials provided with the distribution.
* *
* THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@ -738,7 +738,7 @@ parse_type(enum tok *tok, struct type *t, const char *vname)
e->value = -(long)val; e->value = -(long)val;
} else } else
e->value = val; e->value = val;
if (*tok != TOK_NUM) if (*tok != TOK_NUM)
report("need value for ENUM/BITS"); report("need value for ENUM/BITS");
if (gettoken() != TOK_STR) if (gettoken() != TOK_STR)

View File

@ -5,9 +5,9 @@
.\" Copyright (c) 2001-2003 .\" Copyright (c) 2001-2003
.\" Fraunhofer Institute for Open Communication Systems (FhG Fokus). .\" Fraunhofer Institute for Open Communication Systems (FhG Fokus).
.\" All rights reserved. .\" All rights reserved.
.\" .\"
.\" Author: Harti Brandt <harti@FreeBSD.org> .\" Author: Harti Brandt <harti@FreeBSD.org>
.\" .\"
.\" Redistribution and use in source and binary forms, with or without .\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions .\" modification, are permitted provided that the following conditions
.\" are met: .\" are met:
@ -16,7 +16,7 @@
.\" 2. Redistributions in binary form must reproduce the above copyright .\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the .\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution. .\" documentation and/or other materials provided with the distribution.
.\" .\"
.\" THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND .\" THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE

View File

@ -4,7 +4,7 @@
* All rights reserved. * All rights reserved.
* *
* Author: Harti Brandt <harti@freebsd.org> * Author: Harti Brandt <harti@freebsd.org>
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
* are met: * are met:
@ -13,7 +13,7 @@
* 2. Redistributions in binary form must reproduce the above copyright * 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the * notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution. * documentation and/or other materials provided with the distribution.
* *
* THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@ -285,7 +285,7 @@ asn_put_real_integer(struct asn_buf *b, u_char type, int64_t ival)
enum asn_err ret; enum asn_err ret;
if (ival < 0) { if (ival < 0) {
/* this may fail if |INT64_MIN| > |INT64_MAX| and /* this may fail if |INT64_MIN| > |INT64_MAX| and
* the value is between * INT64_MIN <= ival < -(INT64_MAX+1) */ * the value is between * INT64_MIN <= ival < -(INT64_MAX+1) */
val = (uint64_t)-(ival + 1); val = (uint64_t)-(ival + 1);
neg = 1; neg = 1;
@ -890,7 +890,7 @@ asn_slice_oid(struct asn_oid *dest, const struct asn_oid *src,
memcpy(dest->subs, &src->subs[from], dest->len * sizeof(dest->subs[0])); memcpy(dest->subs, &src->subs[from], dest->len * sizeof(dest->subs[0]));
} }
/* /*
* Append from to to * Append from to to
*/ */
void void

View File

@ -4,7 +4,7 @@
* All rights reserved. * All rights reserved.
* *
* Author: Harti Brandt <harti@freebsd.org> * Author: Harti Brandt <harti@freebsd.org>
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
* are met: * are met:
@ -13,7 +13,7 @@
* 2. Redistributions in binary form must reproduce the above copyright * 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the * notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution. * documentation and/or other materials provided with the distribution.
* *
* THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE

View File

@ -7,7 +7,7 @@
.\" All rights reserved. .\" All rights reserved.
.\" .\"
.\" Author: Harti Brandt <harti@FreeBSD.org> .\" Author: Harti Brandt <harti@FreeBSD.org>
.\" .\"
.\" Redistribution and use in source and binary forms, with or without .\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions .\" modification, are permitted provided that the following conditions
.\" are met: .\" are met:
@ -16,7 +16,7 @@
.\" 2. Redistributions in binary form must reproduce the above copyright .\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the .\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution. .\" documentation and/or other materials provided with the distribution.
.\" .\"
.\" THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND .\" THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE

View File

@ -7,7 +7,7 @@
.\" All rights reserved. .\" All rights reserved.
.\" .\"
.\" Author: Harti Brandt <harti@FreeBSD.org> .\" Author: Harti Brandt <harti@FreeBSD.org>
.\" .\"
.\" Redistribution and use in source and binary forms, with or without .\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions .\" modification, are permitted provided that the following conditions
.\" are met: .\" are met:
@ -16,7 +16,7 @@
.\" 2. Redistributions in binary form must reproduce the above copyright .\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the .\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution. .\" documentation and/or other materials provided with the distribution.
.\" .\"
.\" THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND .\" THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE

View File

@ -13,7 +13,7 @@
.\" All rights reserved. .\" All rights reserved.
.\" .\"
.\" Author: Harti Brandt <harti@FreeBSD.org> .\" Author: Harti Brandt <harti@FreeBSD.org>
.\" .\"
.\" Redistribution and use in source and binary forms, with or without .\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions .\" modification, are permitted provided that the following conditions
.\" are met: .\" are met:
@ -22,7 +22,7 @@
.\" 2. Redistributions in binary form must reproduce the above copyright .\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the .\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution. .\" documentation and/or other materials provided with the distribution.
.\" .\"
.\" THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND .\" THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE

View File

@ -4,7 +4,7 @@
* All rights reserved. * All rights reserved.
* *
* Author: Harti Brandt <harti@freebsd.org> * Author: Harti Brandt <harti@freebsd.org>
* *
* Copyright (c) 2010 The FreeBSD Foundation * Copyright (c) 2010 The FreeBSD Foundation
* All rights reserved. * All rights reserved.
* *
@ -19,7 +19,7 @@
* 2. Redistributions in binary form must reproduce the above copyright * 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the * notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution. * documentation and/or other materials provided with the distribution.
* *
* THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@ -684,7 +684,7 @@ snmp_pdu_snoop(const struct asn_buf *b0)
struct asn_buf b = *b0; struct asn_buf b = *b0;
/* <0x10|0x20> <len> <data...> */ /* <0x10|0x20> <len> <data...> */
if (b.asn_len == 0) if (b.asn_len == 0)
return (0); return (0);
if (b.asn_cptr[0] != (ASN_TYPE_SEQUENCE | ASN_TYPE_CONSTRUCTED)) { if (b.asn_cptr[0] != (ASN_TYPE_SEQUENCE | ASN_TYPE_CONSTRUCTED)) {
@ -759,7 +759,7 @@ snmp_pdu_encode_header(struct asn_buf *b, struct snmp_pdu *pdu)
if (asn_put_temp_header(b, (ASN_TYPE_SEQUENCE | if (asn_put_temp_header(b, (ASN_TYPE_SEQUENCE |
ASN_TYPE_CONSTRUCTED), &v3_hdr_ptr) != ASN_ERR_OK) ASN_TYPE_CONSTRUCTED), &v3_hdr_ptr) != ASN_ERR_OK)
return (SNMP_CODE_FAILED); return (SNMP_CODE_FAILED);
if (asn_put_integer(b, pdu->identifier) != ASN_ERR_OK) if (asn_put_integer(b, pdu->identifier) != ASN_ERR_OK)
return (SNMP_CODE_FAILED); return (SNMP_CODE_FAILED);

View File

@ -4,14 +4,14 @@
* All rights reserved. * All rights reserved.
* *
* Author: Harti Brandt <harti@freebsd.org> * Author: Harti Brandt <harti@freebsd.org>
* *
* Copyright (c) 2010 The FreeBSD Foundation * Copyright (c) 2010 The FreeBSD Foundation
* All rights reserved. * All rights reserved.
* *
* Portions of this software were developed by Shteryana Sotirova Shopova * Portions of this software were developed by Shteryana Sotirova Shopova
* under sponsorship from the FreeBSD Foundation. * under sponsorship from the FreeBSD Foundation.
* *
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
* are met: * are met:
@ -20,7 +20,7 @@
* 2. Redistributions in binary form must reproduce the above copyright * 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the * notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution. * documentation and/or other materials provided with the distribution.
* *
* THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE

View File

@ -4,7 +4,7 @@
* All rights reserved. * All rights reserved.
* *
* Author: Harti Brandt <harti@freebsd.org> * Author: Harti Brandt <harti@freebsd.org>
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
* are met: * are met:
@ -13,7 +13,7 @@
* 2. Redistributions in binary form must reproduce the above copyright * 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the * notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution. * documentation and/or other materials provided with the distribution.
* *
* THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@ -518,7 +518,7 @@ snmp_getbulk(struct snmp_pdu *pdu, struct asn_buf *resp_b,
/* PDU is full */ /* PDU is full */
goto done; goto done;
if (cnt == 0) if (cnt == 0)
result = do_getnext(&context, &pdu->bindings[i], result = do_getnext(&context, &pdu->bindings[i],
&resp->bindings[resp->nbindings], pdu); &resp->bindings[resp->nbindings], pdu);
else else
@ -692,7 +692,7 @@ snmp_set(struct snmp_pdu *pdu, struct asn_buf *resp_b,
if (snmp_pdu_encode_header(resp_b, resp)) if (snmp_pdu_encode_header(resp_b, resp))
return (SNMP_RET_IGN); return (SNMP_RET_IGN);
/* /*
* 1. Find all nodes, check that they are writeable and * 1. Find all nodes, check that they are writeable and
* that the syntax is ok, copy over the binding to the response. * that the syntax is ok, copy over the binding to the response.
*/ */
@ -970,7 +970,7 @@ snmp_dep_lookup(struct snmp_context *ctx, const struct asn_oid *obj,
/* /*
* Make an error response from a PDU. We do this without decoding the * Make an error response from a PDU. We do this without decoding the
* variable bindings. This means we can sent the junk back to a caller * variable bindings. This means we can sent the junk back to a caller
* that has sent us junk in the first place. * that has sent us junk in the first place.
*/ */
enum snmp_ret enum snmp_ret
snmp_make_errresp(const struct snmp_pdu *pdu, struct asn_buf *pdu_b, snmp_make_errresp(const struct snmp_pdu *pdu, struct asn_buf *pdu_b,

View File

@ -4,7 +4,7 @@
* All rights reserved. * All rights reserved.
* *
* Author: Harti Brandt <harti@freebsd.org> * Author: Harti Brandt <harti@freebsd.org>
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
* are met: * are met:
@ -13,7 +13,7 @@
* 2. Redistributions in binary form must reproduce the above copyright * 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the * notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution. * documentation and/or other materials provided with the distribution.
* *
* THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE

View File

@ -68,7 +68,7 @@
struct snmp_client snmp_client; struct snmp_client snmp_client;
/* List of all outstanding requests */ /* List of all outstanding requests */
struct sent_pdu { struct sent_pdu {
int reqid; int reqid;
struct snmp_pdu *pdu; struct snmp_pdu *pdu;
struct timeval time; struct timeval time;
@ -510,7 +510,7 @@ table_check_response(struct tabwork *work, const struct snmp_pdu *resp)
table_free(work, 1); table_free(work, 1);
return (-2); return (-2);
} }
continue; continue;
} }
if (!asn_is_suboid(&work->descr->table, &b->var) || if (!asn_is_suboid(&work->descr->table, &b->var) ||
@ -754,7 +754,7 @@ snmp_oid_append(struct asn_oid *oid, const char *fmt, ...)
ret = 0; ret = 0;
while (*fmt != '\0') { while (*fmt != '\0') {
switch (*fmt++) { switch (*fmt++) {
case 'i': case 'i':
/* just an integer more */ /* just an integer more */
if (oid->len + 1 > ASN_MAXOIDLEN) { if (oid->len + 1 > ASN_MAXOIDLEN) {
warnx("%s: OID too long for integer", __func__); warnx("%s: OID too long for integer", __func__);
@ -804,7 +804,7 @@ snmp_oid_append(struct asn_oid *oid, const char *fmt, ...)
break; break;
case 'b': case 'b':
/* append `size` characters */ /* append `size` characters */
str = (const u_char *)va_arg(va, const char *); str = (const u_char *)va_arg(va, const char *);
if (oid->len + size > ASN_MAXOIDLEN) { if (oid->len + size > ASN_MAXOIDLEN) {
warnx("%s: OID too long for string", __func__); warnx("%s: OID too long for string", __func__);
@ -852,7 +852,7 @@ snmp_client_init(struct snmp_client *c)
strcpy(c->read_community, "public"); strcpy(c->read_community, "public");
strcpy(c->write_community, "private"); strcpy(c->write_community, "private");
c->security_model = SNMP_SECMODEL_USM; c->security_model = SNMP_SECMODEL_USM;
strcpy(c->cname, ""); strcpy(c->cname, "");
@ -863,7 +863,7 @@ snmp_client_init(struct snmp_client *c)
c->txbuflen = c->rxbuflen = 10000; c->txbuflen = c->rxbuflen = 10000;
c->fd = -1; c->fd = -1;
c->max_reqid = INT32_MAX; c->max_reqid = INT32_MAX;
c->min_reqid = 0; c->min_reqid = 0;
c->next_reqid = 0; c->next_reqid = 0;

View File

@ -5,7 +5,7 @@
* *
* Author: Harti Brandt <harti@freebsd.org> * Author: Harti Brandt <harti@freebsd.org>
* Kendy Kutzner * Kendy Kutzner
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
* are met: * are met:
@ -14,7 +14,7 @@
* 2. Redistributions in binary form must reproduce the above copyright * 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the * notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution. * documentation and/or other materials provided with the distribution.
* *
* THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@ -59,7 +59,7 @@ typedef void (*snmp_send_cb_f)(struct snmp_pdu *, struct snmp_pdu *, void *);
typedef void (*snmp_timeout_cb_f)(void * ); typedef void (*snmp_timeout_cb_f)(void * );
/* timeout start function */ /* timeout start function */
typedef void *(*snmp_timeout_start_f)(struct timeval *timeout, typedef void *(*snmp_timeout_start_f)(struct timeval *timeout,
snmp_timeout_cb_f callback, void *); snmp_timeout_cb_f callback, void *);
/* timeout stop function */ /* timeout stop function */

View File

@ -322,7 +322,7 @@ snmp_calc_keychange(struct snmp_user *user, uint8_t *keychange)
for (i = 0; i < keylen / 4; i++) for (i = 0; i < keylen / 4; i++)
rvalue[i] = random(); rvalue[i] = random();
memcpy(keychange, user->auth_key, keylen); memcpy(keychange, user->auth_key, keylen);
memcpy(keychange + keylen, rvalue, keylen); memcpy(keychange + keylen, rvalue, keylen);

View File

@ -4,7 +4,7 @@
* All rights reserved. * All rights reserved.
* *
* Author: Harti Brandt <harti@freebsd.org> * Author: Harti Brandt <harti@freebsd.org>
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
* are met: * are met:
@ -13,7 +13,7 @@
* 2. Redistributions in binary form must reproduce the above copyright * 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the * notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution. * documentation and/or other materials provided with the distribution.
* *
* THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE

View File

@ -1,10 +1,10 @@
/* /*
* Copyright (C) 2004 * Copyright (C) 2004
* Hartmut Brandt. * Hartmut Brandt.
* All rights reserved. * All rights reserved.
* *
* Author: Harti Brandt <harti@freebsd.org> * Author: Harti Brandt <harti@freebsd.org>
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
* are met: * are met:
@ -13,7 +13,7 @@
* 2. Redistributions in binary form must reproduce the above copyright * 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the * notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution. * documentation and/or other materials provided with the distribution.
* *
* THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE

View File

@ -4,7 +4,7 @@
* All rights reserved. * All rights reserved.
* *
* Author: Harti Brandt <harti@freebsd.org> * Author: Harti Brandt <harti@freebsd.org>
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
* are met: * are met:
@ -13,7 +13,7 @@
* 2. Redistributions in binary form must reproduce the above copyright * 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the * notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution. * documentation and/or other materials provided with the distribution.
* *
* THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE

View File

@ -4,7 +4,7 @@
* All rights reserved. * All rights reserved.
* *
* Author: Harti Brandt <harti@freebsd.org> * Author: Harti Brandt <harti@freebsd.org>
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
* are met: * are met:
@ -13,7 +13,7 @@
* 2. Redistributions in binary form must reproduce the above copyright * 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the * notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution. * documentation and/or other materials provided with the distribution.
* *
* THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@ -1228,7 +1228,7 @@ mib_fetch_rtab(int af, int info, int arg, size_t *lenp)
return (NULL); return (NULL);
} }
buf = newbuf; buf = newbuf;
if (sysctl(name, 6, buf, lenp, NULL, 0) == 0) if (sysctl(name, 6, buf, lenp, NULL, 0) == 0)
break; break;
@ -1329,7 +1329,7 @@ mib_arp_update(void)
in_update_arp = 0; in_update_arp = 0;
return; return;
} }
next = buf; next = buf;
while (next < buf + needed) { while (next < buf + needed) {
rtm = (struct rt_msghdr *)(void *)next; rtm = (struct rt_msghdr *)(void *)next;
@ -1521,7 +1521,7 @@ mib_unmodify_ifa(struct mibifa *ifa)
} }
/* /*
* Modify an IFA. * Modify an IFA.
*/ */
int int
mib_modify_ifa(struct mibifa *ifa) mib_modify_ifa(struct mibifa *ifa)

View File

@ -4,7 +4,7 @@
* All rights reserved. * All rights reserved.
* *
* Author: Harti Brandt <harti@freebsd.org> * Author: Harti Brandt <harti@freebsd.org>
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
* are met: * are met:
@ -13,7 +13,7 @@
* 2. Redistributions in binary form must reproduce the above copyright * 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the * notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution. * documentation and/or other materials provided with the distribution.
* *
* THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE

View File

@ -4,7 +4,7 @@
* All rights reserved. * All rights reserved.
* *
* Author: Harti Brandt <harti@freebsd.org> * Author: Harti Brandt <harti@freebsd.org>
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
* are met: * are met:
@ -13,7 +13,7 @@
* 2. Redistributions in binary form must reproduce the above copyright * 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the * notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution. * documentation and/or other materials provided with the distribution.
* *
* THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE

View File

@ -4,7 +4,7 @@
* All rights reserved. * All rights reserved.
* *
* Author: Harti Brandt <harti@freebsd.org> * Author: Harti Brandt <harti@freebsd.org>
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
* are met: * are met:
@ -13,7 +13,7 @@
* 2. Redistributions in binary form must reproduce the above copyright * 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the * notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution. * documentation and/or other materials provided with the distribution.
* *
* THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE

View File

@ -4,7 +4,7 @@
* All rights reserved. * All rights reserved.
* *
* Author: Harti Brandt <harti@freebsd.org> * Author: Harti Brandt <harti@freebsd.org>
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
* are met: * are met:
@ -13,7 +13,7 @@
* 2. Redistributions in binary form must reproduce the above copyright * 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the * notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution. * documentation and/or other materials provided with the distribution.
* *
* THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE

View File

@ -4,7 +4,7 @@
* All rights reserved. * All rights reserved.
* *
* Author: Harti Brandt <harti@freebsd.org> * Author: Harti Brandt <harti@freebsd.org>
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
* are met: * are met:
@ -13,7 +13,7 @@
* 2. Redistributions in binary form must reproduce the above copyright * 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the * notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution. * documentation and/or other materials provided with the distribution.
* *
* THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE

View File

@ -4,7 +4,7 @@
* All rights reserved. * All rights reserved.
* *
* Author: Harti Brandt <harti@freebsd.org> * Author: Harti Brandt <harti@freebsd.org>
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
* are met: * are met:
@ -13,7 +13,7 @@
* 2. Redistributions in binary form must reproduce the above copyright * 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the * notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution. * documentation and/or other materials provided with the distribution.
* *
* THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE

View File

@ -4,7 +4,7 @@
* All rights reserved. * All rights reserved.
* *
* Author: Harti Brandt <harti@freebsd.org> * Author: Harti Brandt <harti@freebsd.org>
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
* are met: * are met:
@ -13,7 +13,7 @@
* 2. Redistributions in binary form must reproduce the above copyright * 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the * notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution. * documentation and/or other materials provided with the distribution.
* *
* THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE

View File

@ -4,7 +4,7 @@
* All rights reserved. * All rights reserved.
* *
* Author: Harti Brandt <harti@freebsd.org> * Author: Harti Brandt <harti@freebsd.org>
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
* are met: * are met:
@ -13,7 +13,7 @@
* 2. Redistributions in binary form must reproduce the above copyright * 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the * notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution. * documentation and/or other materials provided with the distribution.
* *
* THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE

View File

@ -4,7 +4,7 @@
* All rights reserved. * All rights reserved.
* *
* Author: Harti Brandt <harti@freebsd.org> * Author: Harti Brandt <harti@freebsd.org>
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
* are met: * are met:
@ -13,7 +13,7 @@
* 2. Redistributions in binary form must reproduce the above copyright * 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the * notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution. * documentation and/or other materials provided with the distribution.
* *
* THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE

View File

@ -4,7 +4,7 @@
* All rights reserved. * All rights reserved.
* *
* Author: Harti Brandt <harti@freebsd.org> * Author: Harti Brandt <harti@freebsd.org>
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
* are met: * are met:
@ -13,7 +13,7 @@
* 2. Redistributions in binary form must reproduce the above copyright * 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the * notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution. * documentation and/or other materials provided with the distribution.
* *
* THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@ -257,7 +257,7 @@ mib_fetch_route(void)
continue; continue;
mib_extract_addrs(rtm->rtm_addrs, (u_char *)(rtm + 1), addrs); mib_extract_addrs(rtm->rtm_addrs, (u_char *)(rtm + 1), addrs);
mib_sroute_process(rtm, addrs[RTAX_GATEWAY], addrs[RTAX_DST], mib_sroute_process(rtm, addrs[RTAX_GATEWAY], addrs[RTAX_DST],
addrs[RTAX_NETMASK]); addrs[RTAX_NETMASK]);
} }

View File

@ -4,7 +4,7 @@
* All rights reserved. * All rights reserved.
* *
* Author: Harti Brandt <harti@freebsd.org> * Author: Harti Brandt <harti@freebsd.org>
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
* are met: * are met:
@ -13,7 +13,7 @@
* 2. Redistributions in binary form must reproduce the above copyright * 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the * notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution. * documentation and/or other materials provided with the distribution.
* *
* THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE

View File

@ -4,7 +4,7 @@
# All rights reserved. # All rights reserved.
# #
# Author: Harti Brandt <harti@freebsd.org> # Author: Harti Brandt <harti@freebsd.org>
# #
# Redistribution and use in source and binary forms, with or without # Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions # modification, are permitted provided that the following conditions
# are met: # are met:
@ -13,7 +13,7 @@
# 2. Redistributions in binary form must reproduce the above copyright # 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the # notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution. # documentation and/or other materials provided with the distribution.
# #
# THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND # THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE

View File

@ -4,7 +4,7 @@
* All rights reserved. * All rights reserved.
* *
* Author: Harti Brandt <harti@freebsd.org> * Author: Harti Brandt <harti@freebsd.org>
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
* are met: * are met:
@ -13,7 +13,7 @@
* 2. Redistributions in binary form must reproduce the above copyright * 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the * notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution. * documentation and/or other materials provided with the distribution.
* *
* THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE

View File

@ -7,7 +7,7 @@
.\" All rights reserved. .\" All rights reserved.
.\" .\"
.\" Author: Harti Brandt <harti@FreeBSD.org> .\" Author: Harti Brandt <harti@FreeBSD.org>
.\" .\"
.\" Redistribution and use in source and binary forms, with or without .\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions .\" modification, are permitted provided that the following conditions
.\" are met: .\" are met:
@ -16,7 +16,7 @@
.\" 2. Redistributions in binary form must reproduce the above copyright .\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the .\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution. .\" documentation and/or other materials provided with the distribution.
.\" .\"
.\" THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND .\" THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE

View File

@ -4,7 +4,7 @@
* All rights reserved. * All rights reserved.
* *
* Author: Harti Brandt <harti@freebsd.org> * Author: Harti Brandt <harti@freebsd.org>
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
* are met: * are met:
@ -13,7 +13,7 @@
* 2. Redistributions in binary form must reproduce the above copyright * 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the * notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution. * documentation and/or other materials provided with the distribution.
* *
* THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE

View File

@ -5,7 +5,7 @@
NTP-MIB DEFINITIONS ::= BEGIN NTP-MIB DEFINITIONS ::= BEGIN
IMPORTS IMPORTS
Integer32, IpAddress, MODULE-IDENTITY, OBJECT-TYPE, Unsigned32, Integer32, IpAddress, MODULE-IDENTITY, OBJECT-TYPE, Unsigned32,
enterprises enterprises
FROM SNMPv2-SMI FROM SNMPv2-SMI
@ -14,9 +14,9 @@ IMPORTS
ntpMIB MODULE-IDENTITY ntpMIB MODULE-IDENTITY
LAST-UPDATED "199707251530Z" LAST-UPDATED "199707251530Z"
ORGANIZATION ORGANIZATION
"University of Delaware" "University of Delaware"
CONTACT-INFO CONTACT-INFO
"Adarsh Sethi "Adarsh Sethi
Department of Computer & Information Sciences Department of Computer & Information Sciences
University of Delaware University of Delaware
@ -30,7 +30,7 @@ ntpMIB MODULE-IDENTITY
Newark, DE 19716 Newark, DE 19716
Tel: +1 302 831 ???? Tel: +1 302 831 ????
E-mail: mills@ee.udel.edu" E-mail: mills@ee.udel.edu"
DESCRIPTION DESCRIPTION
"This MIB module defines a MIB which provides mechanisms to "This MIB module defines a MIB which provides mechanisms to
monitor and control an NTP server." monitor and control an NTP server."
::= { udel 3 } ::= { udel 3 }
@ -60,18 +60,18 @@ ntpFilter OBJECT IDENTIFIER
NTPTimeStamp ::= TEXTUAL-CONVENTION NTPTimeStamp ::= TEXTUAL-CONVENTION
DISPLAY-HINT "4x.4x" DISPLAY-HINT "4x.4x"
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"" ""
SYNTAX OCTET STRING (SIZE(8)) SYNTAX OCTET STRING (SIZE(8))
NTPLeapIndicator ::= TEXTUAL-CONVENTION NTPLeapIndicator ::= TEXTUAL-CONVENTION
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"" ""
SYNTAX INTEGER { SYNTAX INTEGER {
noWarning(0), noWarning(0),
addSecond(1), addSecond(1),
subtractSecond(2), subtractSecond(2),
alarm(3) } alarm(3) }
-- --
@ -82,7 +82,7 @@ ntpSysLeap OBJECT-TYPE
SYNTAX NTPLeapIndicator SYNTAX NTPLeapIndicator
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
" two-bit code warning of an impending leap " two-bit code warning of an impending leap
second to be inserted in the NTP timescale." second to be inserted in the NTP timescale."
::= { ntpSystem 1 } ::= { ntpSystem 1 }
@ -91,7 +91,7 @@ ntpSysStratum OBJECT-TYPE
SYNTAX Integer32 (0..255) SYNTAX Integer32 (0..255)
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
" indicating the stratum of the local clock. " indicating the stratum of the local clock.
0, unspecified 0, unspecified
1, primary reference (e.g.,, calibrated atomic clock, 1, primary reference (e.g.,, calibrated atomic clock,
@ -103,7 +103,7 @@ ntpSysPrecision OBJECT-TYPE
SYNTAX Integer32 SYNTAX Integer32
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"signed integer indicating the precision "signed integer indicating the precision
of the various clocks, in seconds to the nearest power of the various clocks, in seconds to the nearest power
of two." of two."
@ -113,7 +113,7 @@ ntpSysRootDelay OBJECT-TYPE
SYNTAX OCTET STRING SYNTAX OCTET STRING
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"the total roundtrip delay to the primary "the total roundtrip delay to the primary
reference source at the root of the synchronization reference source at the root of the synchronization
subnet, in seconds" subnet, in seconds"
@ -123,7 +123,7 @@ ntpSysRootDispersion OBJECT-TYPE
SYNTAX OCTET STRING SYNTAX OCTET STRING
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"the maximum error relative to the primary "the maximum error relative to the primary
reference source at the root of the synchronization reference source at the root of the synchronization
subnet, in seconds. Only positive values greater subnet, in seconds. Only positive values greater
@ -134,7 +134,7 @@ ntpSysRefId OBJECT-TYPE
SYNTAX OCTET STRING SYNTAX OCTET STRING
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
" the particular reference clock. In the case of " the particular reference clock. In the case of
stratum 0 (unspecified) or stratum 1 (primary reference stratum 0 (unspecified) or stratum 1 (primary reference
source), this is a four-octet, left-justified,zero-padded source), this is a four-octet, left-justified,zero-padded
@ -147,7 +147,7 @@ ntpSysRefTime OBJECT-TYPE
SYNTAX NTPTimeStamp SYNTAX NTPTimeStamp
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
" the local time when the local clock was last " the local time when the local clock was last
updated. If the local clock has neverbeen synchronized, updated. If the local clock has neverbeen synchronized,
the value is zero." the value is zero."
@ -157,7 +157,7 @@ ntpSysPoll OBJECT-TYPE
SYNTAX Integer32 SYNTAX Integer32
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
" the minimum interval between transmitted " the minimum interval between transmitted
messages, in seconds as a power of two. For instance, messages, in seconds as a power of two. For instance,
a value of six indicates a minimum interval of 64 seconds." a value of six indicates a minimum interval of 64 seconds."
@ -167,7 +167,7 @@ ntpSysPeer OBJECT-TYPE
SYNTAX Unsigned32 SYNTAX Unsigned32
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
" the current synchronization source. Usually " the current synchronization source. Usually
this will be a pointer to a structure containing the peer this will be a pointer to a structure containing the peer
variables. The special value NULL indicates there is no variables. The special value NULL indicates there is no
@ -178,7 +178,7 @@ ntpSysPhase OBJECT-TYPE
SYNTAX OCTET STRING SYNTAX OCTET STRING
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"" ""
::= { ntpSystem 10 } ::= { ntpSystem 10 }
@ -186,7 +186,7 @@ ntpSysFreq OBJECT-TYPE
SYNTAX OCTET STRING SYNTAX OCTET STRING
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"" ""
::= { ntpSystem 11 } ::= { ntpSystem 11 }
@ -194,7 +194,7 @@ ntpSysError OBJECT-TYPE
SYNTAX OCTET STRING SYNTAX OCTET STRING
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"" ""
::= { ntpSystem 12 } ::= { ntpSystem 12 }
@ -202,7 +202,7 @@ ntpSysClock OBJECT-TYPE
SYNTAX NTPTimeStamp SYNTAX NTPTimeStamp
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"the current local time. Local time is derived "the current local time. Local time is derived
from the hardware clock of the particular machine and from the hardware clock of the particular machine and
increments at intervals depending on the design used." increments at intervals depending on the design used."
@ -212,7 +212,7 @@ ntpSysSystem OBJECT-TYPE
SYNTAX OCTET STRING SYNTAX OCTET STRING
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
" the type of the local Operating System" " the type of the local Operating System"
::= { ntpSystem 14 } ::= { ntpSystem 14 }
@ -220,7 +220,7 @@ ntpSysProcessor OBJECT-TYPE
SYNTAX OCTET STRING SYNTAX OCTET STRING
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
" the type of the local Processor" " the type of the local Processor"
::= { ntpSystem 15 } ::= { ntpSystem 15 }
@ -236,7 +236,7 @@ ntpPeersVarTable OBJECT-TYPE
SYNTAX SEQUENCE OF NtpPeersVarEntry SYNTAX SEQUENCE OF NtpPeersVarEntry
MAX-ACCESS not-accessible MAX-ACCESS not-accessible
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"" ""
::= { ntpPeers 1 } ::= { ntpPeers 1 }
@ -244,7 +244,7 @@ ntpPeersVarEntry OBJECT-TYPE
SYNTAX NtpPeersVarEntry SYNTAX NtpPeersVarEntry
MAX-ACCESS not-accessible MAX-ACCESS not-accessible
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"" ""
INDEX { ntpPeersAssocId } INDEX { ntpPeersAssocId }
::= { ntpPeersVarTable 1 } ::= { ntpPeersVarTable 1 }
@ -281,7 +281,7 @@ ntpPeersAssocId OBJECT-TYPE
SYNTAX Unsigned32 SYNTAX Unsigned32
MAX-ACCESS not-accessible MAX-ACCESS not-accessible
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"" ""
::= { ntpPeersVarEntry 1 } ::= { ntpPeersVarEntry 1 }
@ -289,7 +289,7 @@ ntpPeersConfigured OBJECT-TYPE
SYNTAX TruthValue SYNTAX TruthValue
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
" This is a bit indicating that the association " This is a bit indicating that the association
was created from configuration information and should not was created from configuration information and should not
be demobilized if the peer becomes unreachable." be demobilized if the peer becomes unreachable."
@ -299,7 +299,7 @@ ntpPeersPeerAddress OBJECT-TYPE
SYNTAX IpAddress SYNTAX IpAddress
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
" the Internet address of the peer" " the Internet address of the peer"
::= { ntpPeersVarEntry 3 } ::= { ntpPeersVarEntry 3 }
@ -307,7 +307,7 @@ ntpPeersPeerPort OBJECT-TYPE
SYNTAX Unsigned32 SYNTAX Unsigned32
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
" 16-bit port number of the peer." " 16-bit port number of the peer."
::= { ntpPeersVarEntry 4 } ::= { ntpPeersVarEntry 4 }
@ -315,7 +315,7 @@ ntpPeersHostAddress OBJECT-TYPE
SYNTAX IpAddress SYNTAX IpAddress
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
" the Internet address of the host" " the Internet address of the host"
::= { ntpPeersVarEntry 5 } ::= { ntpPeersVarEntry 5 }
@ -323,7 +323,7 @@ ntpPeersHostPort OBJECT-TYPE
SYNTAX Unsigned32 SYNTAX Unsigned32
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
" 16-bit port number of the host" " 16-bit port number of the host"
::= { ntpPeersVarEntry 6 } ::= { ntpPeersVarEntry 6 }
@ -331,7 +331,7 @@ ntpPeersLeap OBJECT-TYPE
SYNTAX NTPLeapIndicator SYNTAX NTPLeapIndicator
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
" two-bit code warning of an impending leap " two-bit code warning of an impending leap
second to be inserted in the NTP timescale." second to be inserted in the NTP timescale."
::= { ntpPeersVarEntry 7 } ::= { ntpPeersVarEntry 7 }
@ -339,17 +339,17 @@ ntpPeersLeap OBJECT-TYPE
ntpPeersMode OBJECT-TYPE ntpPeersMode OBJECT-TYPE
SYNTAX INTEGER { SYNTAX INTEGER {
unspecified(0), unspecified(0),
symmetricActive(1), symmetricActive(1),
symmetricPassive(2), symmetricPassive(2),
client(3), client(3),
server(4), server(4),
broadcast(5), broadcast(5),
reservedControl(6), reservedControl(6),
reservedPrivate(7) reservedPrivate(7)
} }
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
" the association mode,with values coded as " the association mode,with values coded as
follows: follows:
0, unspecified 0, unspecified
@ -367,7 +367,7 @@ ntpPeersStratum OBJECT-TYPE
SYNTAX Integer32 (0..255) SYNTAX Integer32 (0..255)
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
" indicating the stratum of the peer clock. " indicating the stratum of the peer clock.
0, unspecified 0, unspecified
1, primary reference (e.g.,, calibrated atomic clock, 1, primary reference (e.g.,, calibrated atomic clock,
@ -379,7 +379,7 @@ ntpPeersPeerPoll OBJECT-TYPE
SYNTAX Integer32 SYNTAX Integer32
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"poll interval of the peer" "poll interval of the peer"
::= { ntpPeersVarEntry 10 } ::= { ntpPeersVarEntry 10 }
@ -387,7 +387,7 @@ ntpPeersHostPoll OBJECT-TYPE
SYNTAX Integer32 SYNTAX Integer32
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"poll interval of the host" "poll interval of the host"
::= { ntpPeersVarEntry 11 } ::= { ntpPeersVarEntry 11 }
@ -395,7 +395,7 @@ ntpPeersPrecision OBJECT-TYPE
SYNTAX Integer32 SYNTAX Integer32
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"the same as the systemPrecision except this is "the same as the systemPrecision except this is
for the peer" for the peer"
::= { ntpPeersVarEntry 12 } ::= { ntpPeersVarEntry 12 }
@ -404,7 +404,7 @@ ntpPeersRootDelay OBJECT-TYPE
SYNTAX OCTET STRING SYNTAX OCTET STRING
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"the same as the systemRootDealy except this is for "the same as the systemRootDealy except this is for
the peer" the peer"
::= { ntpPeersVarEntry 13 } ::= { ntpPeersVarEntry 13 }
@ -413,7 +413,7 @@ ntpPeersRootDispersion OBJECT-TYPE
SYNTAX OCTET STRING SYNTAX OCTET STRING
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"the same as the systemDispersion except this is for "the same as the systemDispersion except this is for
the peer" the peer"
::= { ntpPeersVarEntry 14 } ::= { ntpPeersVarEntry 14 }
@ -422,7 +422,7 @@ ntpPeersRefId OBJECT-TYPE
SYNTAX OCTET STRING SYNTAX OCTET STRING
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"the same as the systemRefid except this is for "the same as the systemRefid except this is for
the peer" the peer"
::= { ntpPeersVarEntry 15 } ::= { ntpPeersVarEntry 15 }
@ -431,7 +431,7 @@ ntpPeersRefTime OBJECT-TYPE
SYNTAX NTPTimeStamp SYNTAX NTPTimeStamp
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"the same as the systemRefTime except this is for "the same as the systemRefTime except this is for
the peer" the peer"
::= { ntpPeersVarEntry 16 } ::= { ntpPeersVarEntry 16 }
@ -440,7 +440,7 @@ ntpPeersOrgTime OBJECT-TYPE
SYNTAX NTPTimeStamp SYNTAX NTPTimeStamp
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
" the local time at the peer when its latest " the local time at the peer when its latest
NTP message was sent. If the peer becomes unreachable the NTP message was sent. If the peer becomes unreachable the
value is set to zero." value is set to zero."
@ -450,7 +450,7 @@ ntpPeersReceiveTime OBJECT-TYPE
SYNTAX NTPTimeStamp SYNTAX NTPTimeStamp
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"the local time when the latest NTP message "the local time when the latest NTP message
from the peer arrived. If the peer becomes unreachable the from the peer arrived. If the peer becomes unreachable the
value is set to zero." value is set to zero."
@ -460,7 +460,7 @@ ntpPeersTransmitTime OBJECT-TYPE
SYNTAX NTPTimeStamp SYNTAX NTPTimeStamp
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"the local time at which the NTP message "the local time at which the NTP message
departed the sender." departed the sender."
::= { ntpPeersVarEntry 19 } ::= { ntpPeersVarEntry 19 }
@ -469,7 +469,7 @@ ntpPeersUpdateTime OBJECT-TYPE
SYNTAX NTPTimeStamp SYNTAX NTPTimeStamp
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
" " " "
::= { ntpPeersVarEntry 20 } ::= { ntpPeersVarEntry 20 }
@ -477,7 +477,7 @@ ntpPeersReach OBJECT-TYPE
SYNTAX Unsigned32 SYNTAX Unsigned32
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"a shift register of NTP.WINDOW bits used to determine "a shift register of NTP.WINDOW bits used to determine
the reachability status of the peer, with bits entering the reachability status of the peer, with bits entering
from the least significant (rightmost) end. A peer is from the least significant (rightmost) end. A peer is
@ -489,7 +489,7 @@ ntpPeersTimer OBJECT-TYPE
SYNTAX Integer32 SYNTAX Integer32
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"" ""
::= { ntpPeersVarEntry 22 } ::= { ntpPeersVarEntry 22 }
@ -497,7 +497,7 @@ ntpPeersOffset OBJECT-TYPE
SYNTAX OCTET STRING SYNTAX OCTET STRING
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"" ""
::= { ntpPeersVarEntry 23 } ::= { ntpPeersVarEntry 23 }
@ -505,7 +505,7 @@ ntpPeersDelay OBJECT-TYPE
SYNTAX OCTET STRING SYNTAX OCTET STRING
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"" ""
::= { ntpPeersVarEntry 24 } ::= { ntpPeersVarEntry 24 }
@ -513,7 +513,7 @@ ntpPeersDispersion OBJECT-TYPE
SYNTAX OCTET STRING SYNTAX OCTET STRING
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"" ""
::= { ntpPeersVarEntry 25 } ::= { ntpPeersVarEntry 25 }
@ -532,7 +532,7 @@ ntpFilterPeersVarTable OBJECT-TYPE
SYNTAX SEQUENCE OF NtpFilterPeersVarEntry SYNTAX SEQUENCE OF NtpFilterPeersVarEntry
MAX-ACCESS not-accessible MAX-ACCESS not-accessible
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"This table is an extension of the Peer Variables Table "This table is an extension of the Peer Variables Table
in the Peer Group." in the Peer Group."
::= { ntpFilter 1 } ::= { ntpFilter 1 }
@ -541,7 +541,7 @@ ntpFilterPeersVarEntry OBJECT-TYPE
SYNTAX NtpFilterPeersVarEntry SYNTAX NtpFilterPeersVarEntry
MAX-ACCESS not-accessible MAX-ACCESS not-accessible
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"" ""
AUGMENTS { ntpPeersVarEntry } AUGMENTS { ntpPeersVarEntry }
::= { ntpFilterPeersVarTable 1 } ::= { ntpFilterPeersVarTable 1 }
@ -554,7 +554,7 @@ ntpFilterValidEntries OBJECT-TYPE
SYNTAX Integer32 SYNTAX Integer32
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"The number of valid entries for a peer in the Filter Register Table." "The number of valid entries for a peer in the Filter Register Table."
::= { ntpFilterPeersVarEntry 1 } ::= { ntpFilterPeersVarEntry 1 }
@ -566,7 +566,7 @@ ntpFilterRegisterTable OBJECT-TYPE
SYNTAX SEQUENCE OF NtpFilterRegisterEntry SYNTAX SEQUENCE OF NtpFilterRegisterEntry
MAX-ACCESS not-accessible MAX-ACCESS not-accessible
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"" ""
::= { ntpFilter 2 } ::= { ntpFilter 2 }
@ -574,7 +574,7 @@ ntpFilterRegisterEntry OBJECT-TYPE
SYNTAX NtpFilterRegisterEntry SYNTAX NtpFilterRegisterEntry
MAX-ACCESS not-accessible MAX-ACCESS not-accessible
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"" ""
INDEX { ntpPeersAssocId, ntpFilterIndex } INDEX { ntpPeersAssocId, ntpFilterIndex }
::= { ntpFilterRegisterTable 1 } ::= { ntpFilterRegisterTable 1 }
@ -590,7 +590,7 @@ ntpFilterIndex OBJECT-TYPE
SYNTAX Unsigned32 SYNTAX Unsigned32
MAX-ACCESS not-accessible MAX-ACCESS not-accessible
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"" ""
::= { ntpFilterRegisterEntry 1 } ::= { ntpFilterRegisterEntry 1 }
@ -598,7 +598,7 @@ ntpFilterPeersOffset OBJECT-TYPE
SYNTAX OCTET STRING SYNTAX OCTET STRING
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"the offset of the peer clock relative to the "the offset of the peer clock relative to the
local clock in seconds" local clock in seconds"
::= { ntpFilterRegisterEntry 2 } ::= { ntpFilterRegisterEntry 2 }
@ -607,7 +607,7 @@ ntpFilterPeersDelay OBJECT-TYPE
SYNTAX OCTET STRING SYNTAX OCTET STRING
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"roundtrip delay of the peer clock relative to the "roundtrip delay of the peer clock relative to the
local clock over the network path between them, in seconds. local clock over the network path between them, in seconds.
this variable can take on both positive and negative values, this variable can take on both positive and negative values,
@ -618,7 +618,7 @@ ntpFilterPeersDispersion OBJECT-TYPE
SYNTAX OCTET STRING SYNTAX OCTET STRING
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"the maximum error of the peer clock relative to the "the maximum error of the peer clock relative to the
local clock over the network path between them, in seconds. local clock over the network path between them, in seconds.
Only positive values greater than zero are possible." Only positive values greater than zero are possible."

View File

@ -8,7 +8,7 @@ IMPORTS
NTPLeapIndicator, NTPTimeStamp NTPLeapIndicator, NTPTimeStamp
FROM NTP-MIB FROM NTP-MIB
Integer32, IpAddress, MODULE-IDENTITY, OBJECT-TYPE, Unsigned32, Integer32, IpAddress, MODULE-IDENTITY, OBJECT-TYPE, Unsigned32,
enterprises enterprises
FROM SNMPv2-SMI FROM SNMPv2-SMI
@ -17,23 +17,23 @@ IMPORTS
ntpProxyMIB MODULE-IDENTITY ntpProxyMIB MODULE-IDENTITY
LAST-UPDATED "199707251540Z" LAST-UPDATED "199707251540Z"
ORGANIZATION ORGANIZATION
"University of Delaware" "University of Delaware"
CONTACT-INFO CONTACT-INFO
"Adarsh Sethi "Adarsh Sethi
Department of Computer & Information Sciences Department of Computer & Information Sciences
University of Delaware University of Delaware
Newark, DE 19716 Newark, DE 19716
Tel: +1 302 831 1945 Tel: +1 302 831 1945
E-mail: sethi@cis.udel.edu E-mail: sethi@cis.udel.edu
David Mills David Mills
Department of Electrical Engineering Department of Electrical Engineering
University of Delaware University of Delaware
Newark, DE 19716 Newark, DE 19716
Tel: +1 302 831 ???? Tel: +1 302 831 ????
E-mail: mills@ee.udel.edu" E-mail: mills@ee.udel.edu"
DESCRIPTION DESCRIPTION
"This MIB module defines a MIB which provides mechanisms to "This MIB module defines a MIB which provides mechanisms to
monitor and control many NTP servers via a Proxy Agent." monitor and control many NTP servers via a Proxy Agent."
::= { enterprises 1277 4 } ::= { enterprises 1277 4 }
@ -58,7 +58,7 @@ ntpProxyControl OBJECT IDENTIFIER
NTPRowStatus ::= TEXTUAL-CONVENTION NTPRowStatus ::= TEXTUAL-CONVENTION
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"The NTPRowStatus textual convention is modeled after the "The NTPRowStatus textual convention is modeled after the
RowStatus textual convention of RFC 1903, but is simpler RowStatus textual convention of RFC 1903, but is simpler
because it only allows one create operation (the create- because it only allows one create operation (the create-
@ -81,7 +81,7 @@ NTPRowStatus ::= TEXTUAL-CONVENTION
create(3) create(3)
} }
-- --
-- Control group -- Control group
-- --
@ -93,7 +93,7 @@ ntpProxyControlTable OBJECT-TYPE
SYNTAX SEQUENCE OF NtpProxyControlEntry SYNTAX SEQUENCE OF NtpProxyControlEntry
MAX-ACCESS not-accessible MAX-ACCESS not-accessible
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"" ""
::= { ntpProxyControl 1 } ::= { ntpProxyControl 1 }
@ -101,7 +101,7 @@ ntpProxyControlEntry OBJECT-TYPE
SYNTAX NtpProxyControlEntry SYNTAX NtpProxyControlEntry
MAX-ACCESS not-accessible MAX-ACCESS not-accessible
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"" ""
INDEX { ntpProxyServerIPAddr } INDEX { ntpProxyServerIPAddr }
::= { ntpProxyControlTable 1 } ::= { ntpProxyControlTable 1 }
@ -115,7 +115,7 @@ ntpProxyServerIPAddr OBJECT-TYPE
SYNTAX IpAddress SYNTAX IpAddress
MAX-ACCESS not-accessible MAX-ACCESS not-accessible
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"" ""
::= { ntpProxyControlEntry 1 } ::= { ntpProxyControlEntry 1 }
@ -123,7 +123,7 @@ ntpProxyControlStatus OBJECT-TYPE
SYNTAX NTPRowStatus SYNTAX NTPRowStatus
MAX-ACCESS read-create MAX-ACCESS read-create
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"" ""
::= { ntpProxyControlEntry 2 } ::= { ntpProxyControlEntry 2 }
@ -135,7 +135,7 @@ ntpProxyServerSystemTable OBJECT-TYPE
SYNTAX SEQUENCE OF NtpProxyServerSystemEntry SYNTAX SEQUENCE OF NtpProxyServerSystemEntry
MAX-ACCESS not-accessible MAX-ACCESS not-accessible
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"" ""
::= { ntpProxyControl 2 } ::= { ntpProxyControl 2 }
@ -143,7 +143,7 @@ ntpProxyServerSystemEntry OBJECT-TYPE
SYNTAX NtpProxyServerSystemEntry SYNTAX NtpProxyServerSystemEntry
MAX-ACCESS not-accessible MAX-ACCESS not-accessible
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"" ""
INDEX { ntpProxyServerIPAddr } INDEX { ntpProxyServerIPAddr }
::= { ntpProxyServerSystemTable 1 } ::= { ntpProxyServerSystemTable 1 }
@ -170,7 +170,7 @@ ntpProxyServerSysLeap OBJECT-TYPE
SYNTAX NTPLeapIndicator SYNTAX NTPLeapIndicator
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"" ""
::= { ntpProxyServerSystemEntry 1 } ::= { ntpProxyServerSystemEntry 1 }
@ -178,7 +178,7 @@ ntpProxyServerSysStratum OBJECT-TYPE
SYNTAX Integer32 (0..255) SYNTAX Integer32 (0..255)
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"" ""
::= { ntpProxyServerSystemEntry 2 } ::= { ntpProxyServerSystemEntry 2 }
@ -186,7 +186,7 @@ ntpProxyServerSysPrecision OBJECT-TYPE
SYNTAX Integer32 SYNTAX Integer32
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"" ""
::= { ntpProxyServerSystemEntry 3 } ::= { ntpProxyServerSystemEntry 3 }
@ -194,7 +194,7 @@ ntpProxyServerSysRootDelay OBJECT-TYPE
SYNTAX OCTET STRING SYNTAX OCTET STRING
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"" ""
::= { ntpProxyServerSystemEntry 4 } ::= { ntpProxyServerSystemEntry 4 }
@ -202,7 +202,7 @@ ntpProxyServerSysRootDispersion OBJECT-TYPE
SYNTAX OCTET STRING SYNTAX OCTET STRING
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"" ""
::= { ntpProxyServerSystemEntry 5 } ::= { ntpProxyServerSystemEntry 5 }
@ -210,7 +210,7 @@ ntpProxyServerSysRefId OBJECT-TYPE
SYNTAX OCTET STRING SYNTAX OCTET STRING
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"" ""
::= { ntpProxyServerSystemEntry 6 } ::= { ntpProxyServerSystemEntry 6 }
@ -218,7 +218,7 @@ ntpProxyServerSysRefTime OBJECT-TYPE
SYNTAX NTPTimeStamp SYNTAX NTPTimeStamp
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"" ""
::= { ntpProxyServerSystemEntry 7 } ::= { ntpProxyServerSystemEntry 7 }
@ -226,7 +226,7 @@ ntpProxyServerSysPoll OBJECT-TYPE
SYNTAX Integer32 SYNTAX Integer32
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"" ""
::= { ntpProxyServerSystemEntry 8 } ::= { ntpProxyServerSystemEntry 8 }
@ -234,7 +234,7 @@ ntpProxyServerSysPeer OBJECT-TYPE
SYNTAX Unsigned32 SYNTAX Unsigned32
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"" ""
::= { ntpProxyServerSystemEntry 9 } ::= { ntpProxyServerSystemEntry 9 }
@ -242,7 +242,7 @@ ntpProxyServerSysPhase OBJECT-TYPE
SYNTAX OCTET STRING SYNTAX OCTET STRING
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"" ""
::= { ntpProxyServerSystemEntry 10 } ::= { ntpProxyServerSystemEntry 10 }
@ -250,7 +250,7 @@ ntpProxyServerSysFreq OBJECT-TYPE
SYNTAX OCTET STRING SYNTAX OCTET STRING
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"" ""
::= { ntpProxyServerSystemEntry 11 } ::= { ntpProxyServerSystemEntry 11 }
@ -258,7 +258,7 @@ ntpProxyServerSysError OBJECT-TYPE
SYNTAX OCTET STRING SYNTAX OCTET STRING
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"" ""
::= { ntpProxyServerSystemEntry 12 } ::= { ntpProxyServerSystemEntry 12 }
@ -266,7 +266,7 @@ ntpProxyServerSysClock OBJECT-TYPE
SYNTAX NTPTimeStamp SYNTAX NTPTimeStamp
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"" ""
::= { ntpProxyServerSystemEntry 13 } ::= { ntpProxyServerSystemEntry 13 }
@ -274,7 +274,7 @@ ntpProxyServerSysSystem OBJECT-TYPE
SYNTAX OCTET STRING SYNTAX OCTET STRING
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"" ""
::= { ntpProxyServerSystemEntry 14 } ::= { ntpProxyServerSystemEntry 14 }
@ -282,7 +282,7 @@ ntpProxyServerSysProcessor OBJECT-TYPE
SYNTAX OCTET STRING SYNTAX OCTET STRING
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"" ""
::= { ntpProxyServerSystemEntry 15 } ::= { ntpProxyServerSystemEntry 15 }
@ -293,7 +293,7 @@ ntpProxyPeersVarTable OBJECT-TYPE
SYNTAX SEQUENCE OF NtpProxyPeersVarEntry SYNTAX SEQUENCE OF NtpProxyPeersVarEntry
MAX-ACCESS not-accessible MAX-ACCESS not-accessible
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"" ""
::= { ntpProxyControl 3 } ::= { ntpProxyControl 3 }
@ -301,7 +301,7 @@ ntpProxyPeersVarEntry OBJECT-TYPE
SYNTAX NtpProxyPeersVarEntry SYNTAX NtpProxyPeersVarEntry
MAX-ACCESS not-accessible MAX-ACCESS not-accessible
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"" ""
INDEX { ntpProxyServerIPAddr, ntpProxyPeersAssocId } INDEX { ntpProxyServerIPAddr, ntpProxyPeersAssocId }
::= { ntpProxyPeersVarTable 1 } ::= { ntpProxyPeersVarTable 1 }
@ -339,7 +339,7 @@ ntpProxyPeersAssocId OBJECT-TYPE
SYNTAX Unsigned32 SYNTAX Unsigned32
MAX-ACCESS not-accessible MAX-ACCESS not-accessible
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"" ""
::= { ntpProxyPeersVarEntry 1 } ::= { ntpProxyPeersVarEntry 1 }
@ -347,7 +347,7 @@ ntpProxyPeersConfigured OBJECT-TYPE
SYNTAX TruthValue SYNTAX TruthValue
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"" ""
::= { ntpProxyPeersVarEntry 2 } ::= { ntpProxyPeersVarEntry 2 }
@ -355,7 +355,7 @@ ntpProxyPeersPeerAddress OBJECT-TYPE
SYNTAX IpAddress SYNTAX IpAddress
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"" ""
::= { ntpProxyPeersVarEntry 3 } ::= { ntpProxyPeersVarEntry 3 }
@ -363,7 +363,7 @@ ntpProxyPeersPeerPort OBJECT-TYPE
SYNTAX Unsigned32 SYNTAX Unsigned32
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"" ""
::= { ntpProxyPeersVarEntry 4 } ::= { ntpProxyPeersVarEntry 4 }
@ -371,7 +371,7 @@ ntpProxyPeersHostAddress OBJECT-TYPE
SYNTAX IpAddress SYNTAX IpAddress
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"" ""
::= { ntpProxyPeersVarEntry 5 } ::= { ntpProxyPeersVarEntry 5 }
@ -379,7 +379,7 @@ ntpProxyPeersHostPort OBJECT-TYPE
SYNTAX Unsigned32 SYNTAX Unsigned32
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"" ""
::= { ntpProxyPeersVarEntry 6 } ::= { ntpProxyPeersVarEntry 6 }
@ -387,23 +387,23 @@ ntpProxyPeersLeap OBJECT-TYPE
SYNTAX NTPLeapIndicator SYNTAX NTPLeapIndicator
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"" ""
::= { ntpProxyPeersVarEntry 7 } ::= { ntpProxyPeersVarEntry 7 }
ntpProxyPeersMode OBJECT-TYPE ntpProxyPeersMode OBJECT-TYPE
SYNTAX INTEGER { SYNTAX INTEGER {
unspecified(0), unspecified(0),
symmetricActive(1), symmetricActive(1),
symmetricPassive(2), symmetricPassive(2),
client(3), client(3),
server(4), server(4),
broadcast(5), broadcast(5),
reservedControl(6), reservedControl(6),
reservedPrivate(7) } reservedPrivate(7) }
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"" ""
::= { ntpProxyPeersVarEntry 8 } ::= { ntpProxyPeersVarEntry 8 }
@ -411,7 +411,7 @@ ntpProxyPeersStratum OBJECT-TYPE
SYNTAX Integer32 (0..255) SYNTAX Integer32 (0..255)
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"" ""
::= { ntpProxyPeersVarEntry 9 } ::= { ntpProxyPeersVarEntry 9 }
@ -419,7 +419,7 @@ ntpProxyPeersPeerPoll OBJECT-TYPE
SYNTAX Integer32 SYNTAX Integer32
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"" ""
::= { ntpProxyPeersVarEntry 10 } ::= { ntpProxyPeersVarEntry 10 }
@ -427,7 +427,7 @@ ntpProxyPeersHostPoll OBJECT-TYPE
SYNTAX Integer32 SYNTAX Integer32
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"" ""
::= { ntpProxyPeersVarEntry 11 } ::= { ntpProxyPeersVarEntry 11 }
@ -435,7 +435,7 @@ ntpProxyPeersPrecision OBJECT-TYPE
SYNTAX Integer32 SYNTAX Integer32
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"" ""
::= { ntpProxyPeersVarEntry 12 } ::= { ntpProxyPeersVarEntry 12 }
@ -443,7 +443,7 @@ ntpProxyPeersRootDelay OBJECT-TYPE
SYNTAX OCTET STRING SYNTAX OCTET STRING
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"" ""
::= { ntpProxyPeersVarEntry 13 } ::= { ntpProxyPeersVarEntry 13 }
@ -451,7 +451,7 @@ ntpProxyPeersRootDispersion OBJECT-TYPE
SYNTAX OCTET STRING SYNTAX OCTET STRING
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"" ""
::= { ntpProxyPeersVarEntry 14 } ::= { ntpProxyPeersVarEntry 14 }
@ -459,7 +459,7 @@ ntpProxyPeersRefId OBJECT-TYPE
SYNTAX OCTET STRING SYNTAX OCTET STRING
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"" ""
::= { ntpProxyPeersVarEntry 15 } ::= { ntpProxyPeersVarEntry 15 }
@ -467,7 +467,7 @@ ntpProxyPeersRefTime OBJECT-TYPE
SYNTAX NTPTimeStamp SYNTAX NTPTimeStamp
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"" ""
::= { ntpProxyPeersVarEntry 16 } ::= { ntpProxyPeersVarEntry 16 }
@ -475,7 +475,7 @@ ntpProxyPeersOrgTime OBJECT-TYPE
SYNTAX NTPTimeStamp SYNTAX NTPTimeStamp
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"" ""
::= { ntpProxyPeersVarEntry 17 } ::= { ntpProxyPeersVarEntry 17 }
@ -483,7 +483,7 @@ ntpProxyPeersReceiveTime OBJECT-TYPE
SYNTAX NTPTimeStamp SYNTAX NTPTimeStamp
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"" ""
::= { ntpProxyPeersVarEntry 18 } ::= { ntpProxyPeersVarEntry 18 }
@ -491,7 +491,7 @@ ntpProxyPeersTransmitTime OBJECT-TYPE
SYNTAX NTPTimeStamp SYNTAX NTPTimeStamp
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"" ""
::= { ntpProxyPeersVarEntry 19 } ::= { ntpProxyPeersVarEntry 19 }
@ -499,7 +499,7 @@ ntpProxyPeersUpdateTime OBJECT-TYPE
SYNTAX NTPTimeStamp SYNTAX NTPTimeStamp
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"" ""
::= { ntpProxyPeersVarEntry 20 } ::= { ntpProxyPeersVarEntry 20 }
@ -507,7 +507,7 @@ ntpProxyPeersReach OBJECT-TYPE
SYNTAX Unsigned32 SYNTAX Unsigned32
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"" ""
::= { ntpProxyPeersVarEntry 21 } ::= { ntpProxyPeersVarEntry 21 }
@ -515,7 +515,7 @@ ntpProxyPeersTimer OBJECT-TYPE
SYNTAX Integer32 SYNTAX Integer32
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"" ""
::= { ntpProxyPeersVarEntry 22 } ::= { ntpProxyPeersVarEntry 22 }
@ -523,7 +523,7 @@ ntpProxyPeersOffset OBJECT-TYPE
SYNTAX OCTET STRING SYNTAX OCTET STRING
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"" ""
::= { ntpProxyPeersVarEntry 23 } ::= { ntpProxyPeersVarEntry 23 }
@ -531,7 +531,7 @@ ntpProxyPeersDelay OBJECT-TYPE
SYNTAX OCTET STRING SYNTAX OCTET STRING
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"" ""
::= { ntpProxyPeersVarEntry 24 } ::= { ntpProxyPeersVarEntry 24 }
@ -539,7 +539,7 @@ ntpProxyPeersDispersion OBJECT-TYPE
SYNTAX OCTET STRING SYNTAX OCTET STRING
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"" ""
::= { ntpProxyPeersVarEntry 25 } ::= { ntpProxyPeersVarEntry 25 }
@ -547,7 +547,7 @@ ntpProxyPeersFilterValidEntries OBJECT-TYPE
SYNTAX Integer32 SYNTAX Integer32
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"The number of valid entries for a peer in the Proxy Filter "The number of valid entries for a peer in the Proxy Filter
Register Table. This number can be zero." Register Table. This number can be zero."
::= { ntpProxyPeersVarEntry 26 } ::= { ntpProxyPeersVarEntry 26 }
@ -560,7 +560,7 @@ ntpProxyFilterRegisterTable OBJECT-TYPE
SYNTAX SEQUENCE OF NtpProxyFilterRegisterEntry SYNTAX SEQUENCE OF NtpProxyFilterRegisterEntry
MAX-ACCESS not-accessible MAX-ACCESS not-accessible
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"" ""
::= { ntpProxyControl 4 } ::= { ntpProxyControl 4 }
@ -568,9 +568,9 @@ ntpProxyFilterRegisterEntry OBJECT-TYPE
SYNTAX NtpProxyFilterRegisterEntry SYNTAX NtpProxyFilterRegisterEntry
MAX-ACCESS not-accessible MAX-ACCESS not-accessible
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"" ""
INDEX { ntpProxyServerIPAddr, ntpProxyPeersAssocId, INDEX { ntpProxyServerIPAddr, ntpProxyPeersAssocId,
ntpProxyFilterIndex } ntpProxyFilterIndex }
::= { ntpProxyFilterRegisterTable 1 } ::= { ntpProxyFilterRegisterTable 1 }
@ -585,7 +585,7 @@ ntpProxyFilterIndex OBJECT-TYPE
SYNTAX Unsigned32 SYNTAX Unsigned32
MAX-ACCESS not-accessible MAX-ACCESS not-accessible
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"" ""
::= { ntpProxyFilterRegisterEntry 1 } ::= { ntpProxyFilterRegisterEntry 1 }
@ -593,7 +593,7 @@ ntpProxyFilterPeersOffset OBJECT-TYPE
SYNTAX OCTET STRING SYNTAX OCTET STRING
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"" ""
::= { ntpProxyFilterRegisterEntry 2 } ::= { ntpProxyFilterRegisterEntry 2 }
@ -601,7 +601,7 @@ ntpProxyFilterPeersDelay OBJECT-TYPE
SYNTAX OCTET STRING SYNTAX OCTET STRING
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"" ""
::= { ntpProxyFilterRegisterEntry 3 } ::= { ntpProxyFilterRegisterEntry 3 }
@ -609,7 +609,7 @@ ntpProxyFilterPeersDispersion OBJECT-TYPE
SYNTAX OCTET STRING SYNTAX OCTET STRING
MAX-ACCESS read-only MAX-ACCESS read-only
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"" ""
::= { ntpProxyFilterRegisterEntry 4 } ::= { ntpProxyFilterRegisterEntry 4 }

View File

@ -1,7 +1,7 @@
.\"- .\"-
.\" Copyright (C) 2010 The FreeBSD Foundation .\" Copyright (C) 2010 The FreeBSD Foundation
.\" All rights reserved. .\" All rights reserved.
.\" .\"
.\" This documentation was written by Shteryana Sotirova Shopova under .\" This documentation was written by Shteryana Sotirova Shopova under
.\" sponsorship from the FreeBSD Foundation. .\" sponsorship from the FreeBSD Foundation.
.\" .\"
@ -13,7 +13,7 @@
.\" 2. Redistributions in binary form must reproduce the above copyright .\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the .\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution. .\" documentation and/or other materials provided with the distribution.
.\" .\"
.\" THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND .\" THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE

View File

@ -1,7 +1,7 @@
.\"- .\"-
.\" Copyright (C) 2010 The FreeBSD Foundation .\" Copyright (C) 2010 The FreeBSD Foundation
.\" All rights reserved. .\" All rights reserved.
.\" .\"
.\" This documentation was written by Shteryana Sotirova Shopova under .\" This documentation was written by Shteryana Sotirova Shopova under
.\" sponsorship from the FreeBSD Foundation. .\" sponsorship from the FreeBSD Foundation.
.\" .\"
@ -13,7 +13,7 @@
.\" 2. Redistributions in binary form must reproduce the above copyright .\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the .\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution. .\" documentation and/or other materials provided with the distribution.
.\" .\"
.\" THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND .\" THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE

View File

@ -179,7 +179,7 @@ op_usm_users(struct snmp_context *ctx, struct snmp_value *val,
case LEAF_usmUserCloneFrom: case LEAF_usmUserCloneFrom:
if (uuser != NULL || usm_user_index_decode(&val->var, if (uuser != NULL || usm_user_index_decode(&val->var,
sub, eid, &elen, uname) < 0 || sub, eid, &elen, uname) < 0 ||
!(asn_is_suboid(&oid_usmUserSecurityName, &val->v.oid))) !(asn_is_suboid(&oid_usmUserSecurityName, &val->v.oid)))
return (SNMP_ERR_WRONG_VALUE); return (SNMP_ERR_WRONG_VALUE);
if ((clone = usm_get_user(&val->v.oid, sub)) == NULL) if ((clone = usm_get_user(&val->v.oid, sub)) == NULL)
@ -311,7 +311,7 @@ op_usm_users(struct snmp_context *ctx, struct snmp_value *val,
} else if (val->v.integer != RowStatus_active && } else if (val->v.integer != RowStatus_active &&
val->v.integer != RowStatus_destroy) val->v.integer != RowStatus_destroy)
return (SNMP_ERR_INCONS_VALUE); return (SNMP_ERR_INCONS_VALUE);
uuser->status = val->v.integer; uuser->status = val->v.integer;
break; break;
} }
@ -381,7 +381,7 @@ op_usm_users(struct snmp_context *ctx, struct snmp_value *val,
usm_delete_user(uuser); usm_delete_user(uuser);
break; break;
default: default:
break; break;
} }
return (SNMP_ERR_NOERROR); return (SNMP_ERR_NOERROR);

View File

@ -1,7 +1,7 @@
.\"- .\"-
.\" Copyright (C) 2010 The FreeBSD Foundation .\" Copyright (C) 2010 The FreeBSD Foundation
.\" All rights reserved. .\" All rights reserved.
.\" .\"
.\" This documentation was written by Shteryana Sotirova Shopova under .\" This documentation was written by Shteryana Sotirova Shopova under
.\" sponsorship from the FreeBSD Foundation. .\" sponsorship from the FreeBSD Foundation.
.\" .\"
@ -13,7 +13,7 @@
.\" 2. Redistributions in binary form must reproduce the above copyright .\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the .\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution. .\" documentation and/or other materials provided with the distribution.
.\" .\"
.\" THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND .\" THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE

View File

@ -578,7 +578,7 @@ op_vacm_view(struct snmp_context *ctx, struct snmp_value *val, uint32_t sub,
return (vacm_delete_view(view)); return (vacm_delete_view(view));
break; break;
default: default:
break; break;
} }
return (SNMP_ERR_NOERROR); return (SNMP_ERR_NOERROR);
@ -683,7 +683,7 @@ vacm_append_access_rule_index(struct asn_oid *oid, uint sub,
const struct vacm_access *acl) const struct vacm_access *acl)
{ {
uint32_t i; uint32_t i;
oid->len = sub + strlen(acl->group->groupname) + oid->len = sub + strlen(acl->group->groupname) +
strlen(acl->ctx_prefix) + 4; strlen(acl->ctx_prefix) + 4;
@ -776,7 +776,7 @@ vacm_get_next_access_rule(const struct asn_oid *oid __unused, uint sub __unused)
static int static int
vacm_view_index_decode(const struct asn_oid *oid, uint sub, char *vname, vacm_view_index_decode(const struct asn_oid *oid, uint sub, char *vname,
struct asn_oid *view_oid) struct asn_oid *view_oid)
{ {
uint32_t i; uint32_t i;
int viod_off; int viod_off;

View File

@ -4,7 +4,7 @@
-- All rights reserved. -- All rights reserved.
-- --
-- Author: Harti Brandt <harti@freebsd.org> -- Author: Harti Brandt <harti@freebsd.org>
-- --
-- Redistribution and use in source and binary forms, with or without -- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions -- modification, are permitted provided that the following conditions
-- are met: -- are met:
@ -13,7 +13,7 @@
-- 2. Redistributions in binary form must reproduce the above copyright -- 2. Redistributions in binary form must reproduce the above copyright
-- notice, this list of conditions and the following disclaimer in the -- notice, this list of conditions and the following disclaimer in the
-- documentation and/or other materials provided with the distribution. -- documentation and/or other materials provided with the distribution.
-- --
-- THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND -- THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
-- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE

View File

@ -4,7 +4,7 @@
-- All rights reserved. -- All rights reserved.
-- --
-- Author: Harti Brandt <harti@freebsd.org> -- Author: Harti Brandt <harti@freebsd.org>
-- --
-- Redistribution and use in source and binary forms, with or without -- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions -- modification, are permitted provided that the following conditions
-- are met: -- are met:
@ -13,7 +13,7 @@
-- 2. Redistributions in binary form must reproduce the above copyright -- 2. Redistributions in binary form must reproduce the above copyright
-- notice, this list of conditions and the following disclaimer in the -- notice, this list of conditions and the following disclaimer in the
-- documentation and/or other materials provided with the distribution. -- documentation and/or other materials provided with the distribution.
-- --
-- THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND -- THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
-- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE

View File

@ -4,7 +4,7 @@
-- All rights reserved. -- All rights reserved.
-- --
-- Author: Harti Brandt <harti@freebsd.org> -- Author: Harti Brandt <harti@freebsd.org>
-- --
-- Redistribution and use in source and binary forms, with or without -- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions -- modification, are permitted provided that the following conditions
-- are met: -- are met:
@ -13,7 +13,7 @@
-- 2. Redistributions in binary form must reproduce the above copyright -- 2. Redistributions in binary form must reproduce the above copyright
-- notice, this list of conditions and the following disclaimer in the -- notice, this list of conditions and the following disclaimer in the
-- documentation and/or other materials provided with the distribution. -- documentation and/or other materials provided with the distribution.
-- --
-- THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND -- THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
-- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE

View File

@ -7,7 +7,7 @@
* All rights reserved. * All rights reserved.
* *
* Author: Harti Brandt <harti@freebsd.org> * Author: Harti Brandt <harti@freebsd.org>
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
* are met: * are met:
@ -16,7 +16,7 @@
* 2. Redistributions in binary form must reproduce the above copyright * 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the * notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution. * documentation and/or other materials provided with the distribution.
* *
* THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@ -171,7 +171,7 @@ init_snmpd_engine(void)
} else { } else {
memcpy(snmpd_engine.engine_id + snmpd_engine.engine_len, memcpy(snmpd_engine.engine_id + snmpd_engine.engine_len,
hostid, strlen(hostid)); hostid, strlen(hostid));
snmpd_engine.engine_len += strlen(hostid); snmpd_engine.engine_len += strlen(hostid);
} }
free(hostid); free(hostid);
@ -1089,7 +1089,7 @@ op_snmp_engine(struct snmp_context *ctx __unused, struct snmp_value *value,
ctx->scratch->int1 = snmpd_engine.max_msg_size; ctx->scratch->int1 = snmpd_engine.max_msg_size;
snmpd_engine.max_msg_size = value->v.integer; snmpd_engine.max_msg_size = value->v.integer;
break; break;
default: default:
return (SNMP_ERR_NOT_WRITEABLE); return (SNMP_ERR_NOT_WRITEABLE);
} }
@ -1119,7 +1119,7 @@ op_snmp_engine(struct snmp_context *ctx __unused, struct snmp_value *value,
snmpd_engine.engine_len = ctx->scratch->int1; snmpd_engine.engine_len = ctx->scratch->int1;
memcpy(snmpd_engine.engine_id, memcpy(snmpd_engine.engine_id,
ctx->scratch->ptr1, ctx->scratch->int1); ctx->scratch->ptr1, ctx->scratch->int1);
} }
free(ctx->scratch->ptr1); free(ctx->scratch->ptr1);
} }
return (SNMP_ERR_NOERROR); return (SNMP_ERR_NOERROR);

View File

@ -4,7 +4,7 @@
* All rights reserved. * All rights reserved.
* *
* Author: Harti Brandt <harti@freebsd.org> * Author: Harti Brandt <harti@freebsd.org>
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
* are met: * are met:
@ -13,7 +13,7 @@
* 2. Redistributions in binary form must reproduce the above copyright * 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the * notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution. * documentation and/or other materials provided with the distribution.
* *
* THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE

View File

@ -4,7 +4,7 @@
* All rights reserved. * All rights reserved.
* *
* Author: Harti Brandt <harti@freebsd.org> * Author: Harti Brandt <harti@freebsd.org>
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
* are met: * are met:
@ -13,7 +13,7 @@
* 2. Redistributions in binary form must reproduce the above copyright * 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the * notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution. * documentation and/or other materials provided with the distribution.
* *
* THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE

View File

@ -4,7 +4,7 @@
* All rights reserved. * All rights reserved.
* *
* Author: Harti Brandt <harti@freebsd.org> * Author: Harti Brandt <harti@freebsd.org>
* *
* Copyright (c) 2010 The FreeBSD Foundation * Copyright (c) 2010 The FreeBSD Foundation
* All rights reserved. * All rights reserved.
* *
@ -19,7 +19,7 @@
* 2. Redistributions in binary form must reproduce the above copyright * 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the * notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution. * documentation and/or other materials provided with the distribution.
* *
* THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE

View File

@ -4,7 +4,7 @@
# All rights reserved. # All rights reserved.
# #
# Author: Harti Brandt <harti@freebsd.org> # Author: Harti Brandt <harti@freebsd.org>
# #
# Redistribution and use in source and binary forms, with or without # Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions # modification, are permitted provided that the following conditions
# are met: # are met:
@ -13,7 +13,7 @@
# 2. Redistributions in binary form must reproduce the above copyright # 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the # notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution. # documentation and/or other materials provided with the distribution.
# #
# THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND # THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE

View File

@ -4,7 +4,7 @@
* All rights reserved. * All rights reserved.
* *
* Author: Harti Brandt <harti@freebsd.org> * Author: Harti Brandt <harti@freebsd.org>
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
* are met: * are met:
@ -13,7 +13,7 @@
* 2. Redistributions in binary form must reproduce the above copyright * 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the * notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution. * documentation and/or other materials provided with the distribution.
* *
* THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE

View File

@ -5,7 +5,7 @@
# All rights reserved. # All rights reserved.
# #
# Author: Harti Brandt <harti@freebsd.org> # Author: Harti Brandt <harti@freebsd.org>
# #
# Redistribution and use in source and binary forms, with or without # Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions # modification, are permitted provided that the following conditions
# are met: # are met:
@ -14,7 +14,7 @@
# 2. Redistributions in binary form must reproduce the above copyright # 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the # notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution. # documentation and/or other materials provided with the distribution.
# #
# THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND # THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE

View File

@ -7,7 +7,7 @@
.\" All rights reserved. .\" All rights reserved.
.\" .\"
.\" Author: Harti Brandt <harti@FreeBSD.org> .\" Author: Harti Brandt <harti@FreeBSD.org>
.\" .\"
.\" Redistribution and use in source and binary forms, with or without .\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions .\" modification, are permitted provided that the following conditions
.\" are met: .\" are met:
@ -16,7 +16,7 @@
.\" 2. Redistributions in binary form must reproduce the above copyright .\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the .\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution. .\" documentation and/or other materials provided with the distribution.
.\" .\"
.\" THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND .\" THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE

View File

@ -4,7 +4,7 @@
* All rights reserved. * All rights reserved.
* *
* Author: Harti Brandt <harti@freebsd.org> * Author: Harti Brandt <harti@freebsd.org>
* *
* Copyright (c) 2010 The FreeBSD Foundation * Copyright (c) 2010 The FreeBSD Foundation
* All rights reserved. * All rights reserved.
* *
@ -19,7 +19,7 @@
* 2. Redistributions in binary form must reproduce the above copyright * 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the * notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution. * documentation and/or other materials provided with the distribution.
* *
* THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE

View File

@ -4,7 +4,7 @@
* All rights reserved. * All rights reserved.
* *
* Author: Harti Brandt <harti@freebsd.org> * Author: Harti Brandt <harti@freebsd.org>
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
* are met: * are met:
@ -13,7 +13,7 @@
* 2. Redistributions in binary form must reproduce the above copyright * 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the * notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution. * documentation and/or other materials provided with the distribution.
* *
* THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE

View File

@ -4,7 +4,7 @@
* All rights reserved. * All rights reserved.
* *
* Author: Harti Brandt <harti@freebsd.org> * Author: Harti Brandt <harti@freebsd.org>
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
* are met: * are met:
@ -13,7 +13,7 @@
* 2. Redistributions in binary form must reproduce the above copyright * 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the * notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution. * documentation and/or other materials provided with the distribution.
* *
* THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE

View File

@ -4,7 +4,7 @@
* All rights reserved. * All rights reserved.
* *
* Author: Harti Brandt <harti@freebsd.org> * Author: Harti Brandt <harti@freebsd.org>
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
* are met: * are met:
@ -13,7 +13,7 @@
* 2. Redistributions in binary form must reproduce the above copyright * 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the * notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution. * documentation and/or other materials provided with the distribution.
* *
* THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE

View File

@ -4,7 +4,7 @@
* All rights reserved. * All rights reserved.
* *
* Author: Harti Brandt <harti@freebsd.org> * Author: Harti Brandt <harti@freebsd.org>
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
* are met: * are met:
@ -13,7 +13,7 @@
* 2. Redistributions in binary form must reproduce the above copyright * 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the * notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution. * documentation and/or other materials provided with the distribution.
* *
* THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE

View File

@ -19,7 +19,7 @@
* 2. Redistributions in binary form must reproduce the above copyright * 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the * notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution. * documentation and/or other materials provided with the distribution.
* *
* THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE

View File

@ -4,7 +4,7 @@
# All rights reserved. # All rights reserved.
# #
# Author: Harti Brandt <harti@freebsd.org> # Author: Harti Brandt <harti@freebsd.org>
# #
# Redistribution and use in source and binary forms, with or without # Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions # modification, are permitted provided that the following conditions
# are met: # are met:
@ -13,7 +13,7 @@
# 2. Redistributions in binary form must reproduce the above copyright # 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the # notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution. # documentation and/or other materials provided with the distribution.
# #
# THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND # THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@ -48,7 +48,7 @@ typedef RowStatus ENUM (
(1 system (1 system
# #
# The standard System group # The standard System group
# #
(1 sysDescr OCTETSTRING op_system_group GET) (1 sysDescr OCTETSTRING op_system_group GET)
(2 sysObjectId OID op_system_group GET) (2 sysObjectId OID op_system_group GET)
(3 sysUpTime TIMETICKS op_system_group GET) (3 sysUpTime TIMETICKS op_system_group GET)

View File

@ -4,7 +4,7 @@
-- All rights reserved. -- All rights reserved.
-- --
-- Author: Hartmut Brandt <harti@freebsd.org> -- Author: Hartmut Brandt <harti@freebsd.org>
-- --
-- Redistribution and use in source and binary forms, with or without -- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions -- modification, are permitted provided that the following conditions
-- are met: -- are met:
@ -13,7 +13,7 @@
-- 2. Redistributions in binary form must reproduce the above copyright -- 2. Redistributions in binary form must reproduce the above copyright
-- notice, this list of conditions and the following disclaimer in the -- notice, this list of conditions and the following disclaimer in the
-- documentation and/or other materials provided with the distribution. -- documentation and/or other materials provided with the distribution.
-- --
-- THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND -- THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
-- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@ -25,7 +25,7 @@
-- LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -- LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
-- OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -- OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-- SUCH DAMAGE. -- SUCH DAMAGE.
-- --
-- $FreeBSD$ -- $FreeBSD$
-- --
-- Private Begemot MIB for ATM interfaces on FreeBSD -- Private Begemot MIB for ATM interfaces on FreeBSD

View File

@ -7,7 +7,7 @@
* All rights reserved. * All rights reserved.
* *
* Author: Hartmut Brandt <harti@freebsd.org> * Author: Hartmut Brandt <harti@freebsd.org>
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
* are met: * are met:
@ -16,7 +16,7 @@
* 2. Redistributions in binary form must reproduce the above copyright * 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the * notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution. * documentation and/or other materials provided with the distribution.
* *
* THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@ -215,7 +215,7 @@ atmif_sys_attach_if(struct atmif_priv *aif)
return (0); return (0);
} }
/* /*
* Table of all ATM interfaces - Ng part * Table of all ATM interfaces - Ng part
*/ */
int int

View File

@ -111,7 +111,7 @@ begemotBridgePf OBJECT IDENTIFIER ::= { begemotBridge 4 }
begemotBridgeConfigObjects OBJECT IDENTIFIER ::= { begemotBridge 5 } begemotBridgeConfigObjects OBJECT IDENTIFIER ::= { begemotBridge 5 }
-- ---------------------------------------------------------- -- -- ---------------------------------------------------------- --
-- the base Bridge interface table -- the base Bridge interface table
-- ---------------------------------------------------------- -- -- ---------------------------------------------------------- --
begemotBridgeBaseTable OBJECT-TYPE begemotBridgeBaseTable OBJECT-TYPE
@ -180,7 +180,7 @@ begemotBridgeBaseType OBJECT-TYPE
perform." perform."
::= { begemotBridgeBaseEntry 4 } ::= { begemotBridgeBaseEntry 4 }
begemotBridgeBaseStatus OBJECT-TYPE begemotBridgeBaseStatus OBJECT-TYPE
SYNTAX RowStatus SYNTAX RowStatus
MAX-ACCESS read-create MAX-ACCESS read-create
STATUS current STATUS current
@ -190,7 +190,7 @@ begemotBridgeBaseStatus OBJECT-TYPE
::= { begemotBridgeBaseEntry 5 } ::= { begemotBridgeBaseEntry 5 }
-- ---------------------------------------------------------- -- -- ---------------------------------------------------------- --
-- the base Bridge ports table -- the base Bridge ports table
-- ---------------------------------------------------------- -- -- ---------------------------------------------------------- --
begemotBridgeBasePortTable OBJECT-TYPE begemotBridgeBasePortTable OBJECT-TYPE
@ -292,7 +292,7 @@ begemotBridgeBasePortPrivate OBJECT-TYPE
::= { begemotBridgeBasePortEntry 7 } ::= { begemotBridgeBasePortEntry 7 }
-- ---------------------------------------------------------- -- -- ---------------------------------------------------------- --
-- the Bridge interface STP table -- the Bridge interface STP table
-- ---------------------------------------------------------- -- -- ---------------------------------------------------------- --
begemotBridgeStpTable OBJECT-TYPE begemotBridgeStpTable OBJECT-TYPE
@ -529,7 +529,7 @@ begemotBridgeStpTxHoldCount OBJECT-TYPE
::= { begemotBridgeStpEntry 16 } ::= { begemotBridgeStpEntry 16 }
-- ---------------------------------------------------------- -- -- ---------------------------------------------------------- --
-- the Bridge STP ports table -- the Bridge STP ports table
-- ---------------------------------------------------------- -- -- ---------------------------------------------------------- --
begemotBridgeStpPortTable OBJECT-TYPE begemotBridgeStpPortTable OBJECT-TYPE
@ -824,7 +824,7 @@ begemotBridgeStpPortAdminPathCost OBJECT-TYPE
::= { begemotBridgeStpExtPortEntry 6 } ::= { begemotBridgeStpExtPortEntry 6 }
-- ---------------------------------------------------------- -- -- ---------------------------------------------------------- --
-- the Bridge interface Transparent bridging table -- the Bridge interface Transparent bridging table
-- ---------------------------------------------------------- -- -- ---------------------------------------------------------- --
begemotBridgeTpTable OBJECT-TYPE begemotBridgeTpTable OBJECT-TYPE

View File

@ -330,7 +330,7 @@ bridge_addrs_dump(struct bridge_if *bif)
*/ */
/* /*
* Construct the SNMP index from the address DST Mac. * Construct the SNMP index from the address DST Mac.
*/ */
static void static void
bridge_addrs_index_append(struct asn_oid *oid, uint sub, bridge_addrs_index_append(struct asn_oid *oid, uint sub,
@ -449,7 +449,7 @@ op_dot1d_tp_fdb(struct snmp_context *c __unused, struct snmp_value *val,
/* /*
* Construct the SNMP index from the bridge interface name * Construct the SNMP index from the bridge interface name
* and the address DST Mac. * and the address DST Mac.
*/ */
static int static int
bridge_addrs_begemot_index_append(struct asn_oid *oid, uint sub, bridge_addrs_begemot_index_append(struct asn_oid *oid, uint sub,
@ -477,7 +477,7 @@ bridge_addrs_begemot_index_append(struct asn_oid *oid, uint sub,
/* /*
* Find a bridge address entry by the bridge interface name * Find a bridge address entry by the bridge interface name
* and the address DST Mac. * and the address DST Mac.
*/ */
static struct tp_entry * static struct tp_entry *
bridge_addrs_begemot_get(const struct asn_oid *oid, uint sub) bridge_addrs_begemot_get(const struct asn_oid *oid, uint sub)
@ -507,7 +507,7 @@ bridge_addrs_begemot_get(const struct asn_oid *oid, uint sub)
/* /*
* Find the next bridge address entry by the bridge interface name * Find the next bridge address entry by the bridge interface name
* and the address DST Mac. * and the address DST Mac.
*/ */
static struct tp_entry * static struct tp_entry *
bridge_addrs_begemot_getnext(const struct asn_oid *oid, uint sub) bridge_addrs_begemot_getnext(const struct asn_oid *oid, uint sub)

View File

@ -433,7 +433,7 @@ bridge_update_bif(struct bridge_if *bif)
} }
/* /*
* Update all bridge interfaces' ports only - * Update all bridge interfaces' ports only -
* make sure each bridge interface exists first. * make sure each bridge interface exists first.
*/ */
void void

View File

@ -626,7 +626,7 @@ op_dot1d_stp_ext_port(struct snmp_context *ctx, struct snmp_value *val,
return (SNMP_ERR_NOERROR); return (SNMP_ERR_NOERROR);
case LEAF_dot1dStpPortAdminPointToPoint: case LEAF_dot1dStpPortAdminPointToPoint:
if (val->v.integer < 0 || val->v.integer > if (val->v.integer < 0 || val->v.integer >
StpPortAdminPointToPointType_auto) StpPortAdminPointToPointType_auto)
return (SNMP_ERR_WRONG_VALUE); return (SNMP_ERR_WRONG_VALUE);
@ -864,7 +864,7 @@ bridge_port_index_getnext(const struct asn_oid *oid, uint sub, int8_t status)
for (i = 0; i < oid->subs[sub]; i++) for (i = 0; i < oid->subs[sub]; i++)
bif_name[i] = oid->subs[sub + i + 1]; bif_name[i] = oid->subs[sub + i + 1];
bif_name[i] = '\0'; bif_name[i] = '\0';
port_no = oid->subs[sub + i + 1]; port_no = oid->subs[sub + i + 1];
if ((bif = bridge_if_find_ifname(bif_name)) == NULL || if ((bif = bridge_if_find_ifname(bif_name)) == NULL ||
@ -937,7 +937,7 @@ bridge_port_set_status(struct snmp_context *ctx,
ctx->scratch->int1 = bp->status; ctx->scratch->int1 = bp->status;
bp->status = RowStatus_active; bp->status = RowStatus_active;
break; break;
case RowStatus_notInService: case RowStatus_notInService:
if (bp == NULL || bp->span_enable == 0 || if (bp == NULL || bp->span_enable == 0 ||
bp->status == RowStatus_active) bp->status == RowStatus_active)

View File

@ -295,7 +295,7 @@ bridge_set_priority(struct bridge_if *bif, int32_t priority)
/* /*
* Re-fetching the data from the driver after that might be a good * Re-fetching the data from the driver after that might be a good
* idea, since changing our bridge's priority should invoke * idea, since changing our bridge's priority should invoke
* recalculation of the active spanning tree topology in the network. * recalculation of the active spanning tree topology in the network.
*/ */
bif->priority = priority; bif->priority = priority;
@ -1319,7 +1319,7 @@ bridge_addrs_getinfo_ifalist(struct bridge_if *bif, struct ifbareq **buf)
struct ifbaconf bac; struct ifbaconf bac;
struct ifdrv ifd; struct ifdrv ifd;
*buf = NULL; *buf = NULL;
strlcpy(ifd.ifd_name, bif->bif_name, IFNAMSIZ); strlcpy(ifd.ifd_name, bif->bif_name, IFNAMSIZ);
ifd.ifd_cmd = BRDGRTS; ifd.ifd_cmd = BRDGRTS;
ifd.ifd_len = sizeof(bac); ifd.ifd_len = sizeof(bac);

View File

@ -1,7 +1,7 @@
.\"- .\"-
.\" Copyright (C) 2006 Shteryana Shopova <syrinx@FreeBSD.org> .\" Copyright (C) 2006 Shteryana Shopova <syrinx@FreeBSD.org>
.\" All rights reserved. .\" All rights reserved.
.\" .\"
.\" Redistribution and use in source and binary forms, with or without .\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions .\" modification, are permitted provided that the following conditions
.\" are met: .\" are met:
@ -10,7 +10,7 @@
.\" 2. Redistributions in binary form must reproduce the above copyright .\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the .\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution. .\" documentation and/or other materials provided with the distribution.
.\" .\"
.\" THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND .\" THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE

View File

@ -2,7 +2,7 @@
.\" Copyright (C) 2005-2006 .\" Copyright (C) 2005-2006
.\" The FreeBSD Project. .\" The FreeBSD Project.
.\" All rights reserved. .\" All rights reserved.
.\" .\"
.\" Author: Harti Brandt <harti@FreeBSD.org> .\" Author: Harti Brandt <harti@FreeBSD.org>
.\" .\"
.\" Redistribution and use in source and binary forms, with or without .\" Redistribution and use in source and binary forms, with or without
@ -13,7 +13,7 @@
.\" 2. Redistributions in binary form must reproduce the above copyright .\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the .\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution. .\" documentation and/or other materials provided with the distribution.
.\" .\"
.\" THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND .\" THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE

View File

@ -173,7 +173,7 @@ ng_unregister_cookie(void *dd)
* Register a function for hook data. * Register a function for hook data.
*/ */
void * void *
ng_register_hook(const struct lmodule *mod, const char *hook, ng_register_hook(const struct lmodule *mod, const char *hook,
ng_hook_f *func, void *arg) ng_hook_f *func, void *arg)
{ {
struct datareg *d; struct datareg *d;
@ -893,7 +893,7 @@ ng_peer_hook_id(ng_ID_t node, const char *hook, char *peerhook)
else else
strcpy(peerhook, hooklist->link[i].peerhook); strcpy(peerhook, hooklist->link[i].peerhook);
} else } else
strcpy(peerhook, hooklist->link[i].peerhook); strcpy(peerhook, hooklist->link[i].peerhook);
free(resp); free(resp);
@ -903,7 +903,7 @@ ng_peer_hook_id(ng_ID_t node, const char *hook, char *peerhook)
/* /*
* Now the module is started. Select on the sockets, so that we can get * Now the module is started. Select on the sockets, so that we can get
* unsolicited input. * unsolicited input.
*/ */
static void static void
@ -926,7 +926,7 @@ ng_start(void)
return; return;
} }
reg_index = or_register(&oid_begemotNg, reg_index = or_register(&oid_begemotNg,
"The MIB for the NetGraph access module for SNMP.", module); "The MIB for the NetGraph access module for SNMP.", module);
} }

View File

@ -1,4 +1,4 @@
-- --
-- ---------------------------------------------------------------------------- -- ----------------------------------------------------------------------------
-- "THE BEER-WARE LICENSE" (Revision 42): -- "THE BEER-WARE LICENSE" (Revision 42):
-- <philip@FreeBSD.org> wrote this file. As long as you retain this notice you -- <philip@FreeBSD.org> wrote this file. As long as you retain this notice you
@ -7,7 +7,7 @@
-- ---------------------------------------------------------------------------- -- ----------------------------------------------------------------------------
-- --
-- $FreeBSD$ -- $FreeBSD$
-- --
BEGEMOT-PF-MIB DEFINITIONS ::= BEGIN BEGEMOT-PF-MIB DEFINITIONS ::= BEGIN
@ -612,7 +612,7 @@ pfInterfacesIfIndex OBJECT-TYPE
DESCRIPTION DESCRIPTION
"A unique value, greater than zero, for each interface." "A unique value, greater than zero, for each interface."
::= { pfInterfacesIfEntry 1 } ::= { pfInterfacesIfEntry 1 }
pfInterfacesIfDescr OBJECT-TYPE pfInterfacesIfDescr OBJECT-TYPE
SYNTAX OCTET STRING SYNTAX OCTET STRING
MAX-ACCESS read-only MAX-ACCESS read-only
@ -876,7 +876,7 @@ pfTablesTblTZero OBJECT-TYPE
cleared or the time since this table was loaded, whichever is cleared or the time since this table was loaded, whichever is
sooner." sooner."
::= { pfTablesTblEntry 4 } ::= { pfTablesTblEntry 4 }
pfTablesTblRefsAnchor OBJECT-TYPE pfTablesTblRefsAnchor OBJECT-TYPE
SYNTAX Integer32 SYNTAX Integer32
MAX-ACCESS read-only MAX-ACCESS read-only
@ -1294,7 +1294,7 @@ pfLabelsLblIndex OBJECT-TYPE
STATUS current STATUS current
DESCRIPTION DESCRIPTION
"A unique value, greater than zero, for each label." "A unique value, greater than zero, for each label."
::= { pfLabelsLblEntry 1 } ::= { pfLabelsLblEntry 1 }
pfLabelsLblName OBJECT-TYPE pfLabelsLblName OBJECT-TYPE
SYNTAX OCTET STRING SYNTAX OCTET STRING

View File

@ -1,5 +1,5 @@
# $FreeBSD$ # $FreeBSD$
# #
# Author: Philip Paeps <philip@freebsd.org> # Author: Philip Paeps <philip@freebsd.org>
MOD= pf MOD= pf

View File

@ -650,7 +650,7 @@ pf_iftable(struct snmp_context __unused *ctx, struct snmp_value *val,
e->pfi.pfik_packets[IPV6][OUT][PASS]; e->pfi.pfik_packets[IPV6][OUT][PASS];
break; break;
case LEAF_pfInterfacesIf6PktsOutBlock: case LEAF_pfInterfacesIf6PktsOutBlock:
val->v.counter64 = val->v.counter64 =
e->pfi.pfik_packets[IPV6][OUT][BLOCK]; e->pfi.pfik_packets[IPV6][OUT][BLOCK];
break; break;
@ -932,7 +932,7 @@ pf_altq(struct snmp_context __unused *ctx, struct snmp_value *val,
abort(); abort();
return (SNMP_ERR_GENERR); return (SNMP_ERR_GENERR);
} }
int int
pf_altqq(struct snmp_context __unused *ctx, struct snmp_value *val, pf_altqq(struct snmp_context __unused *ctx, struct snmp_value *val,
@ -987,7 +987,7 @@ pf_altqq(struct snmp_context __unused *ctx, struct snmp_value *val,
case LEAF_pfAltqQueueLimit: case LEAF_pfAltqQueueLimit:
val->v.integer = e->altq.qlimit; val->v.integer = e->altq.qlimit;
break; break;
default: default:
return (SNMP_ERR_NOSUCHNAME); return (SNMP_ERR_NOSUCHNAME);
} }
@ -1225,7 +1225,7 @@ pfq_refresh(void)
} }
bzero(&pa, sizeof(pa)); bzero(&pa, sizeof(pa));
if (ioctl(dev, DIOCGETALTQS, &pa)) { if (ioctl(dev, DIOCGETALTQS, &pa)) {
syslog(LOG_ERR, "pfq_refresh: ioctl(DIOCGETALTQS): %s", syslog(LOG_ERR, "pfq_refresh: ioctl(DIOCGETALTQS): %s",
strerror(errno)); strerror(errno));
@ -1260,7 +1260,7 @@ pfq_refresh(void)
INSERT_OBJECT_INT_LINK_INDEX(e, &pfq_table, link, index); INSERT_OBJECT_INT_LINK_INDEX(e, &pfq_table, link, index);
} }
} }
pfq_table_age = time(NULL); pfq_table_age = time(NULL);
pf_tick = this_tick; pf_tick = this_tick;
@ -1648,7 +1648,7 @@ altq_is_enabled(int pfdev)
syslog(LOG_INFO, "No ALTQ support in kernel\n" syslog(LOG_INFO, "No ALTQ support in kernel\n"
"ALTQ related functions disabled\n"); "ALTQ related functions disabled\n");
return (0); return (0);
} else } else
syslog(LOG_ERR, "DIOCGETALTQS returned an error: %s", syslog(LOG_ERR, "DIOCGETALTQS returned an error: %s",
strerror(errno)); strerror(errno));
return (-1); return (-1);
@ -1674,7 +1674,7 @@ pf_init(struct lmodule *mod, int __unused argc, char __unused *argv[])
syslog(LOG_ERR, "pf_init(): altq test failed"); syslog(LOG_ERR, "pf_init(): altq test failed");
return (-1); return (-1);
} }
/* Prepare internal state */ /* Prepare internal state */
TAILQ_INIT(&pfi_table); TAILQ_INIT(&pfi_table);
TAILQ_INIT(&pfq_table); TAILQ_INIT(&pfq_table);
@ -1765,7 +1765,7 @@ pf_dump(void)
(intmax_t)pfi_table_age); (intmax_t)pfi_table_age);
syslog(LOG_ERR, "Dump: pfi_table_count = %d", syslog(LOG_ERR, "Dump: pfi_table_count = %d",
pfi_table_count); pfi_table_count);
syslog(LOG_ERR, "Dump: pfq_table_age = %jd", syslog(LOG_ERR, "Dump: pfq_table_age = %jd",
(intmax_t)pfq_table_age); (intmax_t)pfq_table_age);
syslog(LOG_ERR, "Dump: pfq_table_count = %d", syslog(LOG_ERR, "Dump: pfq_table_count = %d",

View File

@ -15,6 +15,6 @@ CFLAGS+= -I${CONTRIB}/lib -I${CONTRIB}/snmpd -DSNMPTREE_TYPES
CFLAGS+= -DHAVE_ERR_H -DHAVE_GETADDRINFO -DHAVE_STRLCPY -DHAVE_SYS_TREE_H CFLAGS+= -DHAVE_ERR_H -DHAVE_GETADDRINFO -DHAVE_STRLCPY -DHAVE_SYS_TREE_H
DEFS= ${MOD}_tree.def DEFS= ${MOD}_tree.def
BMIBS= BMIBS=
.include <bsd.snmpmod.mk> .include <bsd.snmpmod.mk>

View File

@ -17,6 +17,6 @@ CFLAGS+= -I${CONTRIB}/lib -I${CONTRIB}/snmpd -DSNMPTREE_TYPES
CFLAGS+= -DHAVE_ERR_H -DHAVE_GETADDRINFO -DHAVE_STRLCPY -DHAVE_SYS_TREE_H CFLAGS+= -DHAVE_ERR_H -DHAVE_GETADDRINFO -DHAVE_STRLCPY -DHAVE_SYS_TREE_H
DEFS= ${MOD}_tree.def DEFS= ${MOD}_tree.def
BMIBS= BMIBS=
.include <bsd.snmpmod.mk> .include <bsd.snmpmod.mk>

View File

@ -15,6 +15,6 @@ CFLAGS+= -I${CONTRIB}/lib -I${CONTRIB}/snmpd -DSNMPTREE_TYPES
CFLAGS+= -DHAVE_ERR_H -DHAVE_GETADDRINFO -DHAVE_STRLCPY -DHAVE_SYS_TREE_H CFLAGS+= -DHAVE_ERR_H -DHAVE_GETADDRINFO -DHAVE_STRLCPY -DHAVE_SYS_TREE_H
DEFS= ${MOD}_tree.def DEFS= ${MOD}_tree.def
BMIBS= BMIBS=
.include <bsd.snmpmod.mk> .include <bsd.snmpmod.mk>

View File

@ -1841,7 +1841,7 @@ op_wlan_wep_iface(struct snmp_context *ctx, struct snmp_value *val,
default: default:
abort(); abort();
} }
return (SNMP_ERR_NOERROR); return (SNMP_ERR_NOERROR);
} }
@ -3435,7 +3435,7 @@ wlan_get_channel_type(struct ieee80211_channel *c)
return (WlanChannelType_turbo); return (WlanChannelType_turbo);
if (IEEE80211_IS_CHAN_HT(c)) if (IEEE80211_IS_CHAN_HT(c))
return (WlanChannelType_ht); return (WlanChannelType_ht);
return (-1); return (-1);
} }
@ -3740,7 +3740,7 @@ wlan_scan_add_result(struct wlan_iface *wif, struct wlan_scan_result *sr)
SLIST_INSERT_HEAD(&wif->scanlist, sr, wsr); SLIST_INSERT_HEAD(&wif->scanlist, sr, wsr);
return (0); return (0);
} }
SLIST_FOREACH(temp, &wif->scanlist, wsr) { SLIST_FOREACH(temp, &wif->scanlist, wsr) {
if (wlan_scan_compare_result(sr, temp) < 0) if (wlan_scan_compare_result(sr, temp) < 0)
break; break;

View File

@ -182,7 +182,7 @@ struct wlan_iface {
enum wlanHWMPRootMode hwmp_root_mode; enum wlanHWMPRootMode hwmp_root_mode;
uint32_t hwmp_max_hops; uint32_t hwmp_max_hops;
struct wlan_mesh_routes mesh_routelist; struct wlan_mesh_routes mesh_routelist;
SLIST_ENTRY(wlan_iface) w_if; SLIST_ENTRY(wlan_iface) w_if;
}; };

View File

@ -1,7 +1,7 @@
/*- /*-
* Copyright (c) 2010 The FreeBSD Foundation * Copyright (c) 2010 The FreeBSD Foundation
* All rights reserved. * All rights reserved.
* This software was developed by Shteryana Sotirova Shopova under * This software was developed by Shteryana Sotirova Shopova under
* sponsorship from the FreeBSD Foundation. * sponsorship from the FreeBSD Foundation.
* *
@ -158,7 +158,7 @@ wlan_kmodules_load(void)
syslog(LOG_NOTICE, "SNMP wlan loaded %s module", syslog(LOG_NOTICE, "SNMP wlan loaded %s module",
wmod_names[WLAN_KMOD_WEP]); wmod_names[WLAN_KMOD_WEP]);
return (0); return (0);
} }
/* XXX: FIXME */ /* XXX: FIXME */
@ -2387,7 +2387,7 @@ wlan_get_mac_policy(struct wlan_iface *wif)
wif->mac_policy = wlanMACAccessControlPolicy_open; wif->mac_policy = wlanMACAccessControlPolicy_open;
return (0); return (0);
} }
} }
wif->macsupported = 1; wif->macsupported = 1;

View File

@ -776,7 +776,7 @@ parse_syntax_val(struct snmp_value *value, enum snmp_syntax syntax, char *val)
} }
/* /*
* Parse a command line argument of type OID=syntax:value and fill in whatever * Parse a command line argument of type OID=syntax:value and fill in whatever
* fields can be derived from the input into snmp_value structure. Reads numeric * fields can be derived from the input into snmp_value structure. Reads numeric
* OIDs. * OIDs.
*/ */
@ -908,7 +908,7 @@ parse_pair_stroid_val(struct snmp_toolinfo *snmptoolctx,
if ((ptr = snmptools_parse_stroid(snmptoolctx, obj, argv)) == NULL) if ((ptr = snmptools_parse_stroid(snmptoolctx, obj, argv)) == NULL)
return (-1); return (-1);
if (*ptr != '=') { if (*ptr != '=') {
warnx("Value to set expected after OID"); warnx("Value to set expected after OID");
return (-1); return (-1);

View File

@ -53,7 +53,7 @@
* subtype := STRING * subtype := STRING
* *
* enum := ENUM '(' value ')' * enum := ENUM '(' value ')'
* *
* bits := BITS '(' value ')' * bits := BITS '(' value ')'
* *
* value := INT STRING | INT STRING value * value := INT STRING | INT STRING value
@ -483,7 +483,7 @@ snmp_import_update_table(enum snmp_tbl_entry te, struct snmp_index_entry *tbl)
switch (te) { switch (te) {
case ENTRY_NONE: case ENTRY_NONE:
if (table_data.tbl_type == ENTRY_NONE) if (table_data.tbl_type == ENTRY_NONE)
return (NULL); return (NULL);
if (table_data.tbl_type == ENTRY_INDEX) if (table_data.tbl_type == ENTRY_INDEX)
table_data.table_idx = NULL; table_data.table_idx = NULL;
table_data.tbl_type--; table_data.tbl_type--;
@ -539,7 +539,7 @@ parse_subtype(struct snmp_toolinfo *snmptoolctx, int32_t *tok,
warnx("subtype expected after '|'"); warnx("subtype expected after '|'");
return (-1); return (-1);
} }
*tc = snmp_get_tc(nexttok); *tc = snmp_get_tc(nexttok);
*tok = gettoken(snmptoolctx); *tok = gettoken(snmptoolctx);
@ -806,7 +806,7 @@ snmp_import_object(struct snmp_toolinfo *snmptoolctx)
if (snmp_suboid_append(&current_oid, (asn_subid_t) val) < 0) if (snmp_suboid_append(&current_oid, (asn_subid_t) val) < 0)
goto error; goto error;
/* /*
* Ignore the error for nodes since the .def files currently * Ignore the error for nodes since the .def files currently
* contain different strings for 1.3.6.1.2.1 - mibII. Only make * contain different strings for 1.3.6.1.2.1 - mibII. Only make
* sure the memory is freed and don't complain. * sure the memory is freed and don't complain.

View File

@ -29,7 +29,7 @@
* $FreeBSD$ * $FreeBSD$
*/ */
#include <sys/param.h> #include <sys/param.h>
#include <sys/queue.h> #include <sys/queue.h>
#include <sys/uio.h> #include <sys/uio.h>
@ -636,7 +636,7 @@ snmp_mapping_dumptable(struct snmp_table_index *headp)
} }
} }
void void
snmp_mapping_dump(struct snmp_toolinfo *snmptoolctx /* int bits */) snmp_mapping_dump(struct snmp_toolinfo *snmptoolctx /* int bits */)
{ {
if (!_bsnmptools_debug) if (!_bsnmptools_debug)

View File

@ -31,7 +31,7 @@
* $FreeBSD$ * $FreeBSD$
*/ */
#include <sys/param.h> #include <sys/param.h>
#include <sys/queue.h> #include <sys/queue.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <sys/uio.h> #include <sys/uio.h>
@ -1143,7 +1143,7 @@ parse_bport_id(struct snmp_value *value, char *string)
************************************************************** **************************************************************
* TODO: FIXME!!! syrinx: Since we do not support checking the * TODO: FIXME!!! syrinx: Since we do not support checking the
* consistency of a varbinding based on the value of a previous * consistency of a varbinding based on the value of a previous
* one, try to guess the type of address based on the * one, try to guess the type of address based on the
* OctetString SIZE - 4 for IPv4, 16 for IPv6, others currently * OctetString SIZE - 4 for IPv4, 16 for IPv6, others currently
* not supported. * not supported.
*/ */

View File

@ -31,7 +31,7 @@
* $FreeBSD$ * $FreeBSD$
*/ */
#include <sys/param.h> #include <sys/param.h>
#include <sys/queue.h> #include <sys/queue.h>
#include <sys/uio.h> #include <sys/uio.h>
@ -117,7 +117,7 @@ static const struct {
{ "Gauge", SNMP_SYNTAX_GAUGE }, { "Gauge", SNMP_SYNTAX_GAUGE },
{ "TimeTicks", SNMP_SYNTAX_TIMETICKS }, { "TimeTicks", SNMP_SYNTAX_TIMETICKS },
{ "Counter64", SNMP_SYNTAX_COUNTER64 }, { "Counter64", SNMP_SYNTAX_COUNTER64 },
{ "Unknown", SNMP_SYNTAX_UNKNOWN }, { "Unknown", SNMP_SYNTAX_UNKNOWN },
}; };
int int
@ -189,7 +189,7 @@ snmptool_init(struct snmp_toolinfo *snmptoolctx)
#define OBJECT_IDX_LIST(o) o->info->table_idx->index_list #define OBJECT_IDX_LIST(o) o->info->table_idx->index_list
/* /*
* Walk through the file list and import string<->oid mappings from each file. * Walk through the file list and import string<->oid mappings from each file.
*/ */
int32_t int32_t
@ -287,7 +287,7 @@ free_filelist(struct snmp_toolinfo *snmptoolctx)
} }
} }
static char static char
isvalid_fchar(char c, int pos) isvalid_fchar(char c, int pos)
{ {
if (isalpha(c)|| c == '/'|| c == '_' || c == '.' || c == '~' || if (isalpha(c)|| c == '/'|| c == '_' || c == '.' || c == '~' ||
@ -652,7 +652,7 @@ parse_user_security(struct snmp_toolinfo *snmptoolctx __unused, char *opt_arg)
warnx("Suboption 'engine' - no argument"); warnx("Suboption 'engine' - no argument");
return (-1); return (-1);
} }
snmp_client.engine.engine_len = parse_ascii(val, snmp_client.engine.engine_len = parse_ascii(val,
snmp_client.engine.engine_id, SNMP_ENGINE_ID_SIZ); snmp_client.engine.engine_id, SNMP_ENGINE_ID_SIZ);
if ((int32_t)snmp_client.engine.engine_len == -1) { if ((int32_t)snmp_client.engine.engine_len == -1) {
warnx("Bad EngineID - %s", val); warnx("Bad EngineID - %s", val);
@ -1465,7 +1465,7 @@ snmp_pdu_add_bindings(struct snmp_toolinfo *snmptoolctx,
/* Return 0 in case of no more work todo. */ /* Return 0 in case of no more work todo. */
if (SLIST_EMPTY(&snmptoolctx->snmp_objectlist)) if (SLIST_EMPTY(&snmptoolctx->snmp_objectlist))
return (0); return (0);
if (maxcount < 0 || maxcount > SNMP_MAX_BINDINGS) { if (maxcount < 0 || maxcount > SNMP_MAX_BINDINGS) {
warnx("maxcount out of range: <0 || >SNMP_MAX_BINDINGS"); warnx("maxcount out of range: <0 || >SNMP_MAX_BINDINGS");
return (-1); return (-1);