/usr/include/net-snmp/library/snmpCallbackDomain.h is in libsnmp-dev 5.7.2~dfsg-8.1ubuntu3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 | #ifndef _SNMPCALLBACKDOMAIN_H
#define _SNMPCALLBACKDOMAIN_H
#ifndef NET_SNMP_CONFIG_H
#error "Please include <netsnmp/net-snmp-config.h> before this file"
#endif
#ifdef __cplusplus
extern "C" {
#endif
#ifdef NETSNMP_TRANSPORT_CALLBACK_DOMAIN
#include <net-snmp/types.h>
#include <net-snmp/library/snmp_transport.h>
typedef struct netsnmp_callback_pass_s {
int return_transport_num;
netsnmp_pdu *pdu;
struct netsnmp_callback_pass_s *next;
} netsnmp_callback_pass;
typedef struct netsnmp_callback_info_s {
int linkedto;
void *parent_data;
netsnmp_callback_pass *data;
int callback_num;
int pipefds[2];
} netsnmp_callback_info;
netsnmp_transport *netsnmp_callback_transport(int);
int netsnmp_callback_hook_parse(netsnmp_session * sp,
netsnmp_pdu *pdu,
u_char * packetptr,
size_t len);
int netsnmp_callback_hook_build(netsnmp_session * sp,
netsnmp_pdu *pdu,
u_char * ptk, size_t * len);
int netsnmp_callback_check_packet(u_char * pkt, size_t len);
netsnmp_pdu *netsnmp_callback_create_pdu(netsnmp_transport *transport,
void *opaque, size_t olength);
NETSNMP_IMPORT
netsnmp_session *netsnmp_callback_open(int attach_to,
int (*return_func) (int op,
netsnmp_session
* session,
int reqid,
netsnmp_pdu
*pdu,
void *magic),
int (*fpre_parse) (netsnmp_session
*,
struct
netsnmp_transport_s
*, void *, int),
int (*fpost_parse) (netsnmp_session
*,
netsnmp_pdu *,
int));
NETSNMP_IMPORT
void netsnmp_clear_callback_list(void);
#else
#define netsnmp_clear_callback_list()
#endif /*NETSNMP_TRANSPORT_CALLBACK_DOMAIN*/
#ifdef __cplusplus
}
#endif
#endif/*_SNMPCALLBACKDOMAIN_H*/
|