1 // NAME
2 // $RCSfile: InformPdu.java,v $
3 // DESCRIPTION
4 // [given below in javadoc format]
5 // DELTA
6 // $Revision: 3.5 $
7 // CREATED
8 // $Date: 2006/11/29 16:23:33 $
9 // COPYRIGHT
10 // Westhawk Ltd
11 // TO DO
12 //
13
14 /*
15 * Copyright (C) 2002 - 2006 by Westhawk Ltd
16 * <a href="www.westhawk.co.uk">www.westhawk.co.uk</a>
17 *
18 * Permission to use, copy, modify, and distribute this software
19 * for any purpose and without fee is hereby granted, provided
20 * that the above copyright notices appear in all copies and that
21 * both the copyright notice and this permission notice appear in
22 * supporting documentation.
23 * This software is provided "as is" without express or implied
24 * warranty.
25 * author <a href="mailto:snmp@westhawk.co.uk">Tim Panton</a>
26 */
27
28
29 package uk.co.westhawk.snmp.stack;
30
31 /*-
32 * ╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲
33 * SNMP Java Client
34 * ჻჻჻჻჻჻
35 * Copyright 2023 MetricsHub, Westhawk
36 * ჻჻჻჻჻჻
37 * This program is free software: you can redistribute it and/or modify
38 * it under the terms of the GNU Lesser General Public License as
39 * published by the Free Software Foundation, either version 3 of the
40 * License, or (at your option) any later version.
41 *
42 * This program is distributed in the hope that it will be useful,
43 * but WITHOUT ANY WARRANTY; without even the implied warranty of
44 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
45 * GNU General Lesser Public License for more details.
46 *
47 * You should have received a copy of the GNU General Lesser Public
48 * License along with this program. If not, see
49 * <http://www.gnu.org/licenses/lgpl-3.0.html>.
50 * ╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱
51 */
52
53 /**
54 * This class represents the SNMP Inform Request Pdu. This request has
55 * been added in SNMPv2c, hence is not supported by SNMPv1 agents.
56 *
57 * <p>
58 * Inform Requests
59 * are sent between managers. It is an acknowlegded trap since
60 * the receiving end should send a Response Pdu as reply.
61 * The varbind list has the same elements as the TrapPduv2.<br/>
62 * See <a href="http://www.ietf.org/rfc/rfc3416.txt">SNMPv2-PDU</a>
63 * </p>
64 *
65 * <p>
66 * Note this PDU should be sent to port 162 (the default trap port) by
67 * default. You will have to create a SnmpContext with the
68 * ListeningContextFace.DEFAULT_TRAP_PORT as parameter!
69 * </p>
70 *
71 * <p>
72 * For SNMPv3: The sender of an inform PDU acts as the authoritative engine.
73 * </p>
74 *
75 * @see TrapPduv2
76 * @see ListeningContextFace#DEFAULT_TRAP_PORT
77 * @since 4_12
78 * @author <a href="mailto:snmp@westhawk.co.uk">Birgit Arkesteijn</a>
79 * @version $Revision: 3.5 $ $Date: 2006/11/29 16:23:33 $
80 */
81 public class InformPdu extends Pdu {
82 private static final String version_id = "@(#)$Id: InformPdu.java,v 3.5 2006/11/29 16:23:33 birgit Exp $ Copyright Westhawk Ltd";
83
84 /**
85 * Constructor.
86 *
87 * @param con The context (v2c or v3) of the Pdu
88 */
89 public InformPdu(SnmpContextBasisFace con) {
90 super(con);
91 setMsgType(AsnObject.INFORM_REQ_MSG);
92 }
93
94 }