Displaying 9 results from an estimated 9 matches for "buffer_put_int64".
Did you mean:
buffer_put_int
2006 Aug 17
0
[RFC] proposed extensions for SFTP
...flag |= SSH2_FX_ST_RDONLY;
+ if (st->f_flag & ST_NOSUID)
+ flag |= SSH2_FX_ST_NOSUID;
+
+ buffer_init(&msg);
+ buffer_put_char(&msg, SSH2_FXP_EXTENDED_REPLY);
+ buffer_put_int(&msg, id);
+ buffer_put_int(&msg, st->f_bsize);
+ buffer_put_int(&msg, st->f_frsize);
+ buffer_put_int64(&msg, st->f_blocks);
+ buffer_put_int64(&msg, st->f_bfree);
+ buffer_put_int64(&msg, st->f_bavail);
+ buffer_put_int64(&msg, st->f_files);
+ buffer_put_int64(&msg, st->f_ffree);
+ buffer_put_int64(&msg, st->f_favail);
+ buffer_put_int(&msg, st->f_fsi...
2006 Aug 19
0
[PATCH] add statfs extension to sftp-server
...ttrib(u_int32_t id, const Attrib *
buffer_free(&msg);
}
+static void
+send_statfs(u_int32_t id, struct statfs *st)
+{
+ Buffer msg;
+
+ buffer_init(&msg);
+ buffer_put_char(&msg, SSH2_FXP_EXTENDED_REPLY);
+ buffer_put_int(&msg, id);
+ buffer_put_int(&msg, st->f_bsize);
+ buffer_put_int64(&msg, st->f_blocks);
+ buffer_put_int64(&msg, st->f_bfree);
+ buffer_put_int64(&msg, st->f_bavail);
+ buffer_put_int64(&msg, st->f_files);
+ buffer_put_int64(&msg, st->f_ffree);
+ send_msg(&msg);
+ buffer_free(&msg);
+}
+
/* parse incoming */
static vo...
2007 Dec 07
2
[PATCH] add statfs extension to sftp-server
...ttrib(u_int32_t id, const Attrib *
buffer_free(&msg);
}
+static void
+send_statfs(u_int32_t id, struct statfs *st)
+{
+ Buffer msg;
+
+ buffer_init(&msg);
+ buffer_put_char(&msg, SSH2_FXP_EXTENDED_REPLY);
+ buffer_put_int(&msg, id);
+ buffer_put_int(&msg, st->f_bsize);
+ buffer_put_int64(&msg, st->f_blocks);
+ buffer_put_int64(&msg, st->f_bfree);
+ buffer_put_int64(&msg, st->f_bavail);
+ buffer_put_int64(&msg, st->f_files);
+ buffer_put_int64(&msg, st->f_ffree);
+ send_msg(&msg);
+ buffer_free(&msg);
+}
+
/* parse incoming */
static vo...
2009 Feb 12
2
[patch 1/3] add protocol extension to ATTR message
...+ decode_extra_attrib(&ext, &a);
+ buffer_free(&ext);
+ }
xfree(type);
- xfree(data);
}
}
return &a;
}
+static void
+encode_extra_attrib(Buffer *b, const Attrib *a)
+{
+ buffer_put_int(b, a->ext_flags);
+ if (a->ext_flags & SSH2_FXE_EXTATTR_DEV)
+ buffer_put_int64(b, a->dev);
+ if (a->ext_flags & SSH2_FXE_EXTATTR_INO)
+ buffer_put_int64(b, a->ino);
+ if (a->ext_flags & SSH2_FXE_EXTATTR_NLINK)
+ buffer_put_int(b, a->nlink);
+ if (a->ext_flags & SSH2_FXE_EXTATTR_RDEV)
+ buffer_put_int64(b, a->rdev);
+ if (a->ext_flags &am...
2002 Jan 06
3
sftp/scp performance testing
Folks, I've noticed poor performance using sftp. If anyone has any
advice on how to improve performance, I'd like to hear it. Test simply
involved transferring a single 143MB MP3 file using defaults for all the
program configs. The opensshd 3.0.2p1 server is used in all tests.
Software:
openssh suite 3.0.2p1
psftp (putty sftp client) latest dev snapshot
pscp (putty scp client) latest
2001 Jan 23
11
cc & no 64bit int patches
...4_T
u_int64_t
buffer_get_int64(Buffer *buffer)
{
@@ -159,6 +160,7 @@
buffer_get(buffer, (char *) buf, 8);
return GET_64BIT(buf);
}
+#endif
/*
* Stores an integer in the buffer in 4 bytes, msb first.
@@ -171,6 +173,7 @@
buffer_append(buffer, buf, 4);
}
+#ifdef HAVE_U_INT64_T
void
buffer_put_int64(Buffer *buffer, u_int64_t value)
{
@@ -178,6 +181,7 @@
PUT_64BIT(buf, value);
buffer_append(buffer, buf, 8);
}
+#endif
/*
* Returns an arbitrary binary string from the buffer. The string cannot
--- bufaux.h.old Mon Jan 22 18:40:22 2001
+++ bufaux.h Mon Jan 22 19:10:22 2001
@@ -31,11 +31...
2002 Jan 03
3
[PATCH] Improving sftp client performance
...st));
+ --*num;
+}
+
+static void
+send_request(int fd, const char *handle, u_int handle_len, int type,
+ const struct request *rq, Buffer *m)
+{
+ buffer_clear(m);
+ buffer_put_char(m, SSH2_FXP_READ);
+ buffer_put_int(m, rq->id);
+ buffer_put_string(m, handle, handle_len);
+ buffer_put_int64(m, rq->offset);
+ buffer_put_int(m, rq->len);
+ send_msg(fd, m);
+ debug3("Sent message SSH2_FXP_READ I:%d O:%llu S:%u",
+ rq->id, rq->offset, rq->len);
+}
+
int
do_init(int fd_in, int fd_out)
{
@@ -674,12 +721,15 @@
int pflag)
{
int local_fd;
- u_int...
2013 Oct 31
9
[Bug 2167] New: Connection remains when fork() fails.
https://bugzilla.mindrot.org/show_bug.cgi?id=2167
Bug ID: 2167
Summary: Connection remains when fork() fails.
Product: Portable OpenSSH
Version: 5.3p1
Hardware: Other
OS: Linux
Status: NEW
Severity: enhancement
Priority: P5
Component: sshd
Assignee: unassigned-bugs at
2009 Jun 11
8
[Bug 1607] New: compile errors buliding OpenSSH for older Red Hat
...Both of these could probably be easily fixed in the
configuration script.
(1) My version of /usr/include/netinet/in.h did not define in_port_t,
causing compiler to fail on channels.c line 2472. Worked around
by changing in_port_t to uint16_t on that line.
(2) sftp-server.c line 507
buffer_put_int64(&msg, FSID_TO_ULONG(st->f_fsid));
got "incompatible type" error. FSID_HAS_VAL was not defined:
checking if f_fsid has val members... no
causing FSID_TO_ULONG to be defined in defines.h:
# define FSID_TO_ULONG(f) ((f))
but I don't see how this...