X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=userapps%2Fopensource%2Fnet-snmp%2Fagent%2Fmibgroup%2Fsmux%2Fsmux.h;fp=userapps%2Fopensource%2Fnet-snmp%2Fagent%2Fmibgroup%2Fsmux%2Fsmux.h;h=0000000000000000000000000000000000000000;hb=cf3b25a5003e531e4599b2a56fa007f272198570;hp=3b7626f63fd14964dcf0f665b9e5818820e2c4ba;hpb=59e02c1be2c9b373846b0789fbd5b7ef46f0927f;p=bcm963xx.git diff --git a/userapps/opensource/net-snmp/agent/mibgroup/smux/smux.h b/userapps/opensource/net-snmp/agent/mibgroup/smux/smux.h deleted file mode 100755 index 3b7626f6..00000000 --- a/userapps/opensource/net-snmp/agent/mibgroup/smux/smux.h +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Smux module authored by Rohit Dube. - * Rewritten by Nick Amato . - */ - -#define SMUXPORT 199 - -#define SMUXMAXPKTSIZE 1500 -#define SMUXMAXSTRLEN 1024 -#define SMUXMAXPEERS 10 - -#define SMUX_OPEN (ASN_APPLICATION | ASN_CONSTRUCTOR | 0) -#define SMUX_CLOSE (ASN_APPLICATION | ASN_PRIMITIVE | 1) -#define SMUX_RREQ (ASN_APPLICATION | ASN_CONSTRUCTOR | 2) -#define SMUX_RRSP (ASN_APPLICATION | ASN_PRIMITIVE | 3) -#define SMUX_SOUT (ASN_APPLICATION | ASN_PRIMITIVE | 4) - -#define SMUX_GET (ASN_CONTEXT | ASN_CONSTRUCTOR | 0) -#define SMUX_GETNEXT (ASN_CONTEXT | ASN_CONSTRUCTOR | 1) -#define SMUX_GETRSP (ASN_CONTEXT | ASN_CONSTRUCTOR | 2) -#define SMUX_SET (ASN_CONTEXT | ASN_CONSTRUCTOR | 3) -#define SMUX_TRAP (ASN_CONTEXT | ASN_CONSTRUCTOR | 4) - -#define SMUXC_GOINGDOWN 0 -#define SMUXC_UNSUPPORTEDVERSION 1 -#define SMUXC_PACKETFORMAT 2 -#define SMUXC_PROTOCOLERROR 3 -#define SMUXC_INTERNALERROR 4 -#define SMUXC_AUTHENTICATIONFAILURE 5 - -#define SMUX_MAX_PEERS 10 -#define SMUX_MAX_PRIORITY 2147483647 - -#define SMUX_REGOP_DELETE 0 -#define SMUX_REGOP_REGISTER_RO 1 -#define SMUX_REGOP_REGISTER_RW 2 - -/* - * Authorized peers read from the config file - */ -typedef struct _smux_peer_auth { - oid sa_oid[MAX_OID_LEN]; /* name of peer */ - size_t sa_oid_len; /* length of peer name */ - char sa_passwd[SMUXMAXSTRLEN]; /* configured passwd */ - int sa_active_fd; /* the peer using this auth */ -} smux_peer_auth; - -/* - * Registrations - */ -typedef struct _smux_reg { - oid sr_name[MAX_OID_LEN]; /* name of subtree */ - size_t sr_name_len; /* length of subtree name */ - int sr_priority; /* priority of registration */ - int sr_fd; /* descriptor of owner */ - struct _smux_reg *sr_next; /* next one */ -} smux_reg; - -extern void init_smux(void); -extern int smux_accept(int); -extern u_char *smux_snmp_process(int, oid *, size_t *, size_t *, u_char *, - int); -extern int smux_process(int); -extern void smux_parse_peer_auth(const char *, char *); -extern void smux_free_peer_auth(void); -extern void send_enterprise_trap_vars(int, int, oid *, int, - netsnmp_variable_list *);