History log of /openbmc/phosphor-snmp/snmp_notification.hpp (Results 1 – 12 of 12)
Revision Date Author Comments
# 9fa30b98 16-Aug-2024 Patrick Williams <patrick@stwcx.xyz>

clang-format: re-format for clang-18

clang-format-18 isn't compatible with the clang-format-17 output, so we
need to reformat the code with the latest version. The way clang-18
handles lambda forma

clang-format: re-format for clang-18

clang-format-18 isn't compatible with the clang-format-17 output, so we
need to reformat the code with the latest version. The way clang-18
handles lambda formatting also changed, so we have made changes to the
organization default style format to better handle lambda formatting.

See I5e08687e696dd240402a2780158664b7113def0e for updated style.
See Iea0776aaa7edd483fa395e23de25ebf5a6288f71 for clang-18 enablement.

Change-Id: Ib551fc6639fa2e7a4146272c43003c80e8fbd3b5
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>

show more ...


# 46d7ea4c 12-Jul-2023 Ed Tanous <edtanous@google.com>

Use a real struct

There's no usage of these structures as a tuple, and get<0> isn't very
descriptive. Replace them with a struct.

Change-Id: I7705a14fe1486c9398fd4bbc426f3c8208060c8e
Signed-off-by

Use a real struct

There's no usage of these structures as a tuple, and get<0> isn't very
descriptive. Replace them with a struct.

Change-Id: I7705a14fe1486c9398fd4bbc426f3c8208060c8e
Signed-off-by: Ed Tanous <edtanous@google.com>

show more ...


# 69cea063 12-Jul-2023 Ed Tanous <edtanous@google.com>

Use scopes for construction

Change-Id: I92ed65c2b47ad427a36cce7de7db82162f53f28c
Signed-off-by: Ed Tanous <edtanous@google.com>


# 6d421739 12-Jul-2023 Ed Tanous <edtanous@google.com>

Zero initialize member variables

The default constructor on this class does not zero initialize the
variables, so add explicit zero initialization.

Change-Id: Id0c1348ef6e17f974c900924fd7453aad51b5

Zero initialize member variables

The default constructor on this class does not zero initialize the
variables, so add explicit zero initialization.

Change-Id: Id0c1348ef6e17f974c900924fd7453aad51b5c15
Signed-off-by: Ed Tanous <edtanous@google.com>

show more ...


# edd70829 10-May-2023 Patrick Williams <patrick@stwcx.xyz>

clang-format: copy latest and re-format

clang-format-16 has some backwards incompatible changes that require
additional settings for best compatibility and re-running the formatter.
Copy the latest

clang-format: copy latest and re-format

clang-format-16 has some backwards incompatible changes that require
additional settings for best compatibility and re-running the formatter.
Copy the latest .clang-format from the docs repository and reformat the
repository.

Change-Id: If2c2888544013ba1ef292b173c97dac6cc04d1c2
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>

show more ...


# 06c65c0c 16-Jun-2022 Patrick Williams <patrick@stwcx.xyz>

remove unused experimental::any

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: If7ce8f2fcf23f199119b253e7932509d2a8f2be7


# 65113c2b 27-May-2022 Ed Tanous <edtanous@google.com>

Simplify construction of tuples

The latest version of GCC flags an error on this code, where string
length isn't initialized in some cases, and prints several pages of
template and compiler errors.

Simplify construction of tuples

The latest version of GCC flags an error on this code, where string
length isn't initialized in some cases, and prints several pages of
template and compiler errors.

This commit simplifies the code such that rather than constructing a
tuple, moving it to a stack variable, then moving it into the vector,
simply constructs the tuple in the vector in the first place. This
avoids an undefined behavior warning of use after free on the tuple
variable.

Tested: Code compiles.

Signed-off-by: Ed Tanous <edtanous@google.com>
Change-Id: I4d8424f452a98e558607527abd3ec9cf7f4460d1

show more ...


# 0d5094bf 05-Mar-2021 Ratan Gupta <ratagupt@linux.vnet.ibm.com>

Add the Sysuptime in SNMP trap

As per the rfc3416 https://tools.ietf.org/search/rfc3416#page-22
The first two variable bindings in the variable binding list
of an SNMPv2-Trap-PDU are sysUpTime.0 [RF

Add the Sysuptime in SNMP trap

As per the rfc3416 https://tools.ietf.org/search/rfc3416#page-22
The first two variable bindings in the variable binding list
of an SNMPv2-Trap-PDU are sysUpTime.0 [RFC3418] and snmpTrapOID.0
[RFC3418].

This commit adds the sysUpTime.0 [RFC3418] in the SNMP trap.

Signed-off-by: Ratan Gupta <ratagupt@linux.vnet.ibm.com>
Change-Id: Ie1a28ac2bbf30e05f0be498c278d866e9bf9c8a2

show more ...


# 1334b7b3 22-Feb-2021 Patrick Williams <patrick@stwcx.xyz>

clang-format-11: reformat

The .clang-format file here is an old version of the common one.
Upgrade to the latest and reformat.

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Ic87853

clang-format-11: reformat

The .clang-format file here is an old version of the common one.
Upgrade to the latest and reformat.

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Ic87853e6004d2d5ad6645a3ece8c0c87ccc96efd

show more ...


# e5d90c35 13-May-2020 Patrick Williams <patrick@stwcx.xyz>

sdbusplus: replace message::variant with std::variant

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Ic7440c349fc69df0c74c9ecf6c2a3759aeca3e7d


# ec26fa6b 16-Apr-2018 Ratan Gupta <ratagupt@in.ibm.com>

Implement sendTrap function

This function gets all the objects from the specific
notification class and send the snmp trap using the
netsnmp lib functions.

This commt adds the configure, makefile,

Implement sendTrap function

This function gets all the objects from the specific
notification class and send the snmp trap using the
netsnmp lib functions.

This commt adds the configure, makefile, bootstrap.sh,
clangformat file.

Add the unit test cases for ErrorNotification unit.

Change-Id: I2e982f18eb2745f2c0c8de0702cc85d12e80f6e3
Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>

show more ...


# aaf87dee 16-Apr-2018 Ratan Gupta <ratagupt@in.ibm.com>

Add SNMP Error Notification

This class represents the Error Notification
mib object.

The object of this class would be constructed from
the function (sendTrap<>()) which would be implemented
in lat

Add SNMP Error Notification

This class represents the Error Notification
mib object.

The object of this class would be constructed from
the function (sendTrap<>()) which would be implemented
in later commit.

Change-Id: I3a737a20570acafb8263f3a69cf0464680f42b13
Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>

show more ...