version 1.1.1.1, 2012/02/21 17:26:12
|
version 1.1.1.2, 2012/10/09 09:22:28
|
Line 270 static void
|
Line 270 static void
|
smux_getresp_send (oid objid[], size_t objid_len, long reqid, long errstat, |
smux_getresp_send (oid objid[], size_t objid_len, long reqid, long errstat, |
long errindex, u_char val_type, void *arg, size_t arg_len) |
long errindex, u_char val_type, void *arg, size_t arg_len) |
{ |
{ |
int ret; |
|
u_char buf[BUFSIZ]; |
u_char buf[BUFSIZ]; |
u_char *ptr, *h1, *h1e, *h2, *h2e; |
u_char *ptr, *h1, *h1e, *h2, *h2e; |
size_t len, length; |
size_t len, length; |
Line 326 smux_getresp_send (oid objid[], size_t objid_len, long
|
Line 325 smux_getresp_send (oid objid[], size_t objid_len, long
|
if (debug_smux) |
if (debug_smux) |
zlog_debug ("SMUX getresp send: %td", (ptr - buf)); |
zlog_debug ("SMUX getresp send: %td", (ptr - buf)); |
|
|
ret = send (smux_sock, buf, (ptr - buf), 0); | send (smux_sock, buf, (ptr - buf), 0); |
} |
} |
|
|
static u_char * |
static u_char * |
Line 946 smux_open (int sock)
|
Line 945 smux_open (int sock)
|
u_char *ptr; |
u_char *ptr; |
size_t len; |
size_t len; |
long version; |
long version; |
u_char progname[] = QUAGGA_PROGNAME "-" QUAGGA_VERSION; | const char progname[] = QUAGGA_PROGNAME "-" QUAGGA_VERSION; |
|
|
if (debug_smux) |
if (debug_smux) |
{ |
{ |
Line 977 smux_open (int sock)
|
Line 976 smux_open (int sock)
|
ptr = asn_build_string (ptr, &len, |
ptr = asn_build_string (ptr, &len, |
(u_char) |
(u_char) |
(ASN_UNIVERSAL | ASN_PRIMITIVE | ASN_OCTET_STR), |
(ASN_UNIVERSAL | ASN_PRIMITIVE | ASN_OCTET_STR), |
progname, strlen (progname)); | (const u_char *) progname, strlen (progname)); |
|
|
/* SMUX connection password. */ |
/* SMUX connection password. */ |
ptr = asn_build_string (ptr, &len, |
ptr = asn_build_string (ptr, &len, |