search for: u_int32_t

Displaying 20 results from an estimated 151 matches for "u_int32_t".

2000 Jan 07
2
problems with compiling on SPARC solaris 2.7
...icio.c -o atomicio.o In file included from config.h:294, from bsd-misc.h:39, from includes.h:91, from atomicio.c:26: defines.h:74: redefinition of `u_int16_t' defines.h:74: `u_int16_t' previously declared here defines.h:75: redefinition of `u_int32_t' defines.h:75: `u_int32_t' previously declared here defines.h:76: redefinition of `u_int64_t' defines.h:76: `u_int64_t' previously declared here In file included from config.h:294, from bsd-strlcpy.h:4, from includes.h:92, from atom...
2007 Jan 08
2
Re: [nut-commits] svn commit r714 - in trunk: . server
...ger used), and wrote a new test for IN6_IS_ADDR_V4MAPPED. The latter is probably portable, but since we're already in the business of testing, it does not hurt to do so. Arjen, I wonder about server/access.c, line 60-61: return (IN6_IS_ADDR_V4MAPPED(ip6) && ((((const u_int32_t *)ip6)[3] & (u_int32_t)prefix) == net->s_addr)); Comparing this with line 38: return((((struct sockaddr_in*)ip_addr)->sin_addr.s_addr & htonl(prefix)) == ((struct sockaddr_in*)net_addr)->sin_addr.s_addr); I wonder if it shouldn't be htonl(prefix) in line 61, or perhaps...
1999 Dec 30
1
more problems with solaris 7?
...tion of `quad_t' In file included from config.h:289, from bsd-misc.h:39, from includes.h:91, from atomicio.c:26: defines.h:73: redefinition of `u_int16_t' defines.h:73: `u_int16_t' previously declared here defines.h:74: redefinition of `u_int32_t' defines.h:74: `u_int32_t' previously declared here defines.h:75: redefinition of `u_int64_t' defines.h:75: `u_int64_t' previously declared here defines.h:102: redefinition of `quad_t' defines.h:102: `quad_t' previously declared here In file included from config.h:289,...
2017 Jun 21
2
Dovecot >=2.2.29 + Filesystem quota = incorrect storage information
...0x800009 /* get disk limits and usage >= ID */ #endif /* * The following structure defines the format of the disk quota file * (as it appears on disk) - the file is an array of these structures * indexed by user or group number. */ #if _LINUX_QUOTA_VERSION < 2 struct dqblk { u_int32_t dqb_bhardlimit; /* absolute limit on disk blks alloc */ u_int32_t dqb_bsoftlimit; /* preferred limit on disk blks */ u_int32_t dqb_curblocks; /* current block count */ u_int32_t dqb_ihardlimit; /* maximum # allocated inodes */ u_int32_t dqb_isoftlimit; /* preferred inode...
2009 Feb 12
2
[patch 1/3] add protocol extension to ATTR message
...ssh/sftp-common.h =================================================================== --- ssh.orig/sftp-common.h 2009-02-12 14:11:15.000000000 +0100 +++ ssh/sftp-common.h 2009-02-12 14:11:31.000000000 +0100 @@ -33,12 +33,23 @@ typedef struct Attrib Attrib; /* File attributes */ struct Attrib { u_int32_t flags; + u_int32_t ext_flags; + u_int64_t dev; + u_int64_t ino; + u_int64_t rdev; u_int64_t size; + u_int64_t blocks; + u_int32_t blksize; u_int32_t uid; u_int32_t gid; u_int32_t perm; - u_int32_t atime; - u_int32_t mtime; + u_int32_t nlink; + u_int64_t atime; + u_int64_t mtime; + u_int64_t...
2016 Jun 02
2
[PATCH] Link count attribute extension
...a->has_nlink = 1; + a->nlink = PEEK_U64(data); + } free(type); free(data); } @@ -170,6 +189,24 @@ if ((r = sshbuf_put_u32(b, a->atime)) != 0 || (r = sshbuf_put_u32(b, a->mtime)) != 0) return r; + } + if (a->flags & SSH2_FILEXFER_ATTR_EXTENDED) { + u_int32_t count = 0; + if (a->has_nlink) { + count += 1; + } + + if (count) { + if ((r = sshbuf_put_u32(b, count)) != 0) + return r; + + if (a->has_nlink) { + if ((r = sshbuf_put_cstring(b, SFTP_EXT_ATTR_LINK_COUNT)) != 0 || + (r = sshbuf_put_u32(b, 8)) != 0 || + (r = sshbu...
2017 Oct 17
0
Dovecot >=2.2.29 + Filesystem quota = incorrect storage information
...*/ > #endif > > /* > ?* The following structure defines the format of the disk quota file > ?* (as it appears on disk) - the file is an array of these structures > ?* indexed by user or group number. > ?*/ > #if _LINUX_QUOTA_VERSION < 2 > struct dqblk > ? { > ??? u_int32_t dqb_bhardlimit;?? /* absolute limit on disk blks alloc */ > ??? u_int32_t dqb_bsoftlimit;?? /* preferred limit on disk blks */ > ??? u_int32_t dqb_curblocks;??? /* current block count */ > ??? u_int32_t dqb_ihardlimit;?? /* maximum # allocated inodes */ > ??? u_int32_t dqb_isoftlimit;??...
2017 Jun 20
2
Dovecot >=2.2.29 + Filesystem quota = incorrect storage information
Hi, I have problem with quota storage information in dovecot-2.2.29 (and newer versions, too - 2.2.30.2). I use FS quota backend. ............................ # 2.2.29.1 (e0b76e3): /etc/dovecot/dovecot.conf # OS: Linux 4.4.68-1 x86_64 mail_plugins = quota plugin { quota = fs:User quota:mount=/poczta:user quota2 = fs:Group quota:mount=/poczta:group } protocol imap {
2007 Dec 07
2
[PATCH] add statfs extension to sftp-server
...7.000000000 +0200 +++ ssh/sftp-server.c 2006-08-19 16:49:03.000000000 +0200 @@ -19,6 +19,7 @@ #include <sys/stat.h> #include <sys/time.h> #include <sys/param.h> +#include <sys/mount.h> #include <dirent.h> #include <errno.h> @@ -462,6 +463,24 @@ send_attrib(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_int6...
2003 Jan 29
0
[PATCH] features for restricted shell environments
...on't allow any more to be added. */ +static int fix_permitted_opens = 0; + /* * If this is true, all opens are permitted. This is the case on the server * on which we have to trust the client anyway, and the user could do @@ -1972,7 +1978,7 @@ } void -channel_input_port_open(int type, u_int32_t seq, void *ctxt) +channel_input_port_open(int type, u_int32_t seq, void *ctxt, int loud) { Channel *c = NULL; u_short host_port; @@ -1989,6 +1995,8 @@ originator_string = xstrdup("unknown (remote did not supply name)"); } packet_check_eom(); + if (loud) + log("TCP forwar...
2019 Oct 03
2
[PATCH] Avoiding Dereferencing of NULL pointer
Signed-off-by: krishnaiah bommu <krishnaiah.bommu at intel.com> --- moduli.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/moduli.c b/moduli.c index 578fc48..c1fa484 100644 --- a/moduli.c +++ b/moduli.c @@ -153,12 +153,14 @@ static int qfileout(FILE * ofile, u_int32_t otype, u_int32_t otests, u_int32_t otries, u_int32_t osize, u_int32_t ogenerator, BIGNUM * omodulus) { - struct tm *gtm; + struct tm *gtm = NULL; time_t time_now; int res; time(&time_now); gtm = gmtime(&time_now); + if (!gtm) + return (-1); res = fprintf(ofile, "%0...
2018 Dec 03
3
[PATCH] removing an old API.
...get_char(void) { diff --git a/opacket.h b/opacket.h index c6e5124..d711468 100755 --- a/opacket.h +++ b/opacket.h @@ -38,7 +38,6 @@ do { \ void packet_close(void); u_int packet_get_char(void); u_int packet_get_int(void); -void packet_set_connection(int, int); int packet_read_seqnr(u_int32_t *); int packet_read_poll_seqnr(u_int32_t *); void packet_process_incoming(const char *buf, u_int len); diff --git a/sshd.c b/sshd.c index 2795a2e..65b96d4 100755 --- a/sshd.c +++ b/sshd.c @@ -1906,9 +1906,12 @@ main(int ac, char **av) * Register our connection. This turns encryption off...
2006 Aug 19
0
[PATCH] add statfs extension to sftp-server
...7.000000000 +0200 +++ ssh/sftp-server.c 2006-08-19 16:49:03.000000000 +0200 @@ -19,6 +19,7 @@ #include <sys/stat.h> #include <sys/time.h> #include <sys/param.h> +#include <sys/mount.h> #include <dirent.h> #include <errno.h> @@ -462,6 +463,24 @@ send_attrib(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_int6...
2004 Jan 19
3
Security suggestion concering SSH and port forwarding.
Hi, sorry if it is the wrong approuch to suggest improvments to OpenSSH, but here comes my suggestion: I recently stumbled upon the scponly shell which in it's chroot:ed form is an ideal solution when you want to share some files with people you trust more or less. The problem is, if you use the scponlyc as shell, port forwarding is still allowed. This can of course be dissallowed in
2009 Jul 16
1
Compilation error
Hi all I'm trying to install asteris 1.4.22.1 on Solaris 10...the server is V120 SUN spark...During compilation (gmake) I got the following error /vis.c -o np/vis.o_a np/vis.c: In function `svis': np/vis.c:205: error: `u_int32_t' undeclared (first use in this function) np/vis.c:205: error: (Each undeclared identifier is reported only once np/vis.c:205: error: for each function it appears in.) np/vis.c:205: error: syntax error before "u_char" np/vis.c:205: error: syntax error before ')' token np/vis.c:...
2004 Aug 02
6
Calculating volume size from superblock
Another simple question. How do I calculate the size of the volume from the superblock? Do I just use the two fields: u_int32_t s_blocksize_bits; /* Blocksize for this fs */ u_int32_t s_clustersize_bits; /* Clustersize for this fs */ What is the formula to use? Thanks, John
1999 Nov 19
1
[solaris 7 patch] resubmit and extended ...
...the first large one I sent today, with a few extra mods. _PATH_MAILDIR is only used in sshd.c, that I can see, so moved the #ifdef from config.h.in to there. several files had __progname defined in the middle of the code, as well as at the top of the code, so cleaned those out. all the fixes for u_int32_t -> uint32_t and u_int16_t -> uint16_t, plus added appropriate tests to configure.in to determine which one to use. If another OS uses a third method, this is *easily* extended. fix to bsd-login.c due to ut_host not being part of the utmp struct in solaris 7 This gets me to the point that...
2001 Feb 08
0
BindView advisory: sshd remote root (bug in deattack.c)
...------------------------- --- deattack.c.orig Wed Feb 7 14:11:23 2001 +++ deattack.c Wed Feb 7 14:11:46 2001 @@ -91,7 +91,7 @@ detect_attack(const unsigned char *buf, word32 len) { static u_int16_t *h = (u_int16_t *) NULL; - static u_int16_t n = HASH_MINSIZE / HASH_ENTRYSIZE; + static u_int32_t n = HASH_MINSIZE / HASH_ENTRYSIZE; register word32 i, j; word32 l; const unsigned char *c, *d; 8<---------------------patch for ossh-1.5.7--------------------------- OpenSSH: Upgrade to 2.3.0 or above. If you have 2.2.0: 8<-------------------patch for openssh-2.2.0-----------------...
2010 Dec 01
2
Plan for libogg release
Hi all, I am curious, when do you plan to release new libogg? The current release is unusable on Mac because the u_int32_t problem. So I have to build against the trunk. If you are not ready with other features, why not release a small point release just to fix such an contained and small issue. Miki. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/ogg-d...
2006 Aug 17
0
[RFC] proposed extensions for SFTP
...========================== RCS file: /cvs/src/usr.bin/ssh/sftp-server.c,v retrieving revision 1.70 diff -u -r1.70 sftp-server.c --- sftp-server.c 3 Aug 2006 03:34:42 -0000 1.70 +++ sftp-server.c 17 Aug 2006 22:43:04 -0000 @@ -462,6 +463,35 @@ buffer_free(&msg); } +static void +send_statvfs(u_int32_t id, struct statvfs *st) +{ + Buffer msg; + int flag = 0; + + if (st->f_flag & ST_RDONLY) + 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...