search for: u_int8_t

Displaying 20 results from an estimated 43 matches for "u_int8_t".

2004 Nov 23
0
Jumping to PXE boot from DOS
...the PXE signatures. Does anybody has any suggestion to make it work? After finding the structure, I need to call function to see if it returns to PXE boot again: pxe_data_struct->entry16point (PXENV_START_BASE , (void *)0) where pxe_data_struct looks as follows: typedef struct pxe_s { u_int8_t signature[4]; /* Structure signature is not NULL */ /* terminated. FIXME: this was 4 */ u_int8_t structlength; /* Length of this structure in */ /* bytes. */ u_int8_t structcksum; /* Use to make byte checksum of this */ /* structure == zero. */ u_int8_t structrev; /* Struct...
2007 Apr 10
1
[PATCH] Add support for DHCP-Options
hi, I've written a start of an c32-module to do basic substition: add subst.c32 this is a start of a generic substition module --- commit 9a1f41a7e6599fe6a162197cd9ddc6610185e780 tree cfb799a0be9844926afe44e21b2eb96630666c44 parent 89478bdbfa7167bc1b627a478d042c99e46f06b7 author Maurice Massar <massar at unix-ag.uni-kl.de> Tue, 10 Apr 2007 20:13:39 +0200 committer Maurice Massar
2000 Jan 17
1
pre27 compilation fails on Sol7 box
...al/ssh//etc\" \ -DSSH_PROGRAM=\"/usr/local/ssh//bin/ssh\" \ -DSSH_ASKPASS_DEFAULT=\"/usr/local/ssh//libexec/ssh/ssh-askpass\" \ -DHAVE_CONFIG_H -c atomicio.c In file included from includes.h:106, from atomicio.c:26: fake-socket.h:30: parse error before u_int8_t' fake-socket.h:30: warning: no semicolon at end of struct or union fake-socket.h:39: field sin6_addr' has incomplete type *** Error code 1 make: Fatal error: Command failed for target atomicio.o' This is indeed bizarre because the bit of code in question is: ------->8-----fake-...
2003 Jun 25
1
socks5 support for -D
...1000 +#define SSH_SOCKS5_NOAUTH 0x00 +#define SSH_SOCKS5_IPV4 0x01 +#define SSH_SOCKS5_DOMAIN 0x03 +#define SSH_SOCKS5_IPV6 0x04 +#define SSH_SOCKS5_CONNECT 0x01 +#define SSH_SOCKS5_SUCCESS 0x00 + +static int +channel_decode_socks5(Channel *c, fd_set * readset, fd_set * writeset) +{ + struct { + u_int8_t version; + u_int8_t command; + u_int8_t reserved; + u_int8_t atyp; + } s5_req, s5_rsp; + u_int16_t dest_port; + u_char *p, dest_addr[255+1]; + int i, have, found, nmethods, addrlen, af; + + debug2("channel %d: decode socks5", c->self); + p = buffer_ptr(&c->input); + if (p[0]...
2006 Apr 14
3
Cyberpower 900AVR/BC900D newhidups problem
...s/usb/input/hid-core.c: v2.6:USB HID core driver uhci_hcd 0000:00:1d.2: port 2 portsc 009b,00 Oh, and I had to comment out these lines in libhid.h to get it to compile: /* ensure these exists (required for Solaris 10) */ //#ifndef u_int16_t // typedef uint16_t u_int16_t; //#endif // //#ifndef u_int8_t // typedef uint8_t u_int8_t; //#endif ... but I assume these were only relevant to solaris? Or is this a problem? Cheers, Lincoln
2004 Sep 10
0
VPATH and fixed-size integer data types
...autoconf, they can just be defined in config.h (AC_DEFINE instead of AC_SUBST). However, an even better fix would be to use the ISO C header inttypes.h. Here is what I do in another project: AC_CHECK_HEADER(inttypes.h, [AC_DEFINE([HAVE_INTTYPES_H])], [AC_CHECK_TYPE(u_int8_t, [AC_DEFINE([HAVE_U_INT])], [AC_MSG_ERROR([Unable to find fixed-size data types])] )] ) and then in the header: #ifdef HAVE_CONFIG_H #include <config.h> #endif #ifdef HAVE_INTTYPES_H #include <inttypes.h> #elif defined(HAV...
2004 Nov 06
2
dovecot 1.0-test52 compile notes
...ib/byteorder.c no "libgen" here (no basename()). Added it inline, no big deal, but you might want to have configure test for this and provide one if it's missing. Also, on this system there are no types like "uint8_t" and "uint64_t" -- instead there are the u_int8_t and u_int64_t et al types. I added some global typedefs, but I gather this is a somewhat common issue, so you might want to test for these. -mm-
2000 Jan 20
1
Patch to make openssh-1.2.1pre27 compile on a sparc solaris7 syst em
...defines.h.orig defines.h *** defines.h.orig Thu Jan 20 18:07:40 2000 --- defines.h Thu Jan 20 18:08:05 2000 *************** *** 78,83 **** --- 78,84 ---- /* If sys/types.h does not supply u_intXX_t, supply them ourselves */ #ifndef HAVE_U_INTXX_T # ifdef HAVE_UINTXX_T + typedef uint8_t u_int8_t; typedef uint16_t u_int16_t; typedef uint32_t u_int32_t; typedef uint64_t u_int64_t; Hack: uname -a SunOS sol 5.7 Generic_106541-08 sun4u sparc SUNW,Ultra-250 -- JF
2000 Sep 05
2
sftp-server and latest snapshot
...erver to compile on HP-UX 11. Not sure what the right "portable" fix might be. Also, should sftp-server really be installed in prefix/libexec/ssh/ or just prefix/libexec/? --- defines.h~ Tue Sep 5 07:13:07 2000 +++ defines.h Tue Sep 5 14:36:24 2000 @@ -143,9 +143,7 @@ typedef uint8_t u_int8_t; typedef uint16_t u_int16_t; typedef uint32_t u_int32_t; -/* typedef uint64_t u_int64_t; -*/ # define HAVE_U_INTXX_T 1 # else # if (SIZEOF_CHAR == 1)
2001 Feb 05
0
Problem compiling openssh on Solaris 2.6 with AFS-krb4
...\" -DSSH_ASKPASS_DEFAULT=\"/usr/local/libexec/ssh-askpass\" -DHAVE_CONFIG_H -c sshconnect1.c -o sshconnect1.o In file included from /usr/athena/include/krb.h:17, from ssh.h:523, from sshconnect1.c:25: /usr/athena/include/ktypes.h:14: redefinition of `u_int8_t' defines.h:142: `u_int8_t' previously declared here /usr/athena/include/ktypes.h:15: redefinition of `u_int16_t' defines.h:143: `u_int16_t' previously declared here /usr/athena/include/ktypes.h:16: redefinition of `u_int32_t' defines.h:144: `u_int32_t' previously declared he...
2006 Apr 14
1
"make usb" fails
...e -O -Wall -Wsign-compare -c newhidups.c In file included from newhidups.c:25: libhid.h:46: error: syntax error before "u_int16_t" libhid.h:46: warning: useless keyword or type name in empty declaration libhid.h:46: warning: empty declaration libhid.h:50: error: syntax error before "u_int8_t" libhid.h:50: warning: useless keyword or type name in empty declaration libhid.h:50: warning: empty declaration make[1]: *** [newhidups.o] Error 1 make[1]: Leaving directory `/home/carlos/dev/nut/svn/trunk/drivers' I can't seem to make this go away. -- Carlos Rodrigues
2000 Jan 18
4
AIX- 'Host not found' in getaddrinfo("0.0.0.0", "22" , ...)
Hello, while openssh-1.2.1pre25 ran out-of-the box, in openssh-1.2.1pre27 the sshd fails to start with: "Host not found" returned... (gcc 2.9.5.2 under AIX 4.3.2 ML 2) Incompatibility of AIX-getaddrinfo ???? Since I'm not familiar with getaddrinfo, I've got no idea what goes wrong ??? Does the code below work on other architectures? Demo-Code built with values taken from a
2001 Mar 06
0
Problem compiling openssh on Solaris 2.6 with AFS-krb4 (fwd)
...; -DSSH_ASKPASS_DEFAULT=\"/usr/local/libexec/ssh-askpass\" -DHAVE_CONFIG_H MM> -c sshconnect1.c -o sshconnect1.o MM> In file included from /usr/athena/include/krb.h:17, MM> from ssh.h:523, MM> from sshconnect1.c:25: MM> /usr/athena/include/ktypes.h:14: redefinition of `u_int8_t' MM> defines.h:142: `u_int8_t' previously declared here MM> /usr/athena/include/ktypes.h:15: redefinition of `u_int16_t' MM> defines.h:143: `u_int16_t' previously declared here MM> /usr/athena/include/ktypes.h:16: redefinition of `u_int32_t' MM> defines.h:144...
2006 Mar 06
3
newhidups / Solaris 10 / APC RM1500
Hi there, been using NUT for ages and recently upgraded to a new server; while I'm waiting for a USB->Serial adapter for Solaris to arrive, I thought I'd play with the newhidups, as the APC UPS I have has a USB port and the new server doesn't have a serial port.... I've got Solaris 10 & newhidups working with the ugen driver up to a point, and that is a read
2012 Oct 08
3
[LLVMdev] Multiply i8 operands promotes to i32
...m promote to 32-bit multiplier? If that is not possible, how can I detect when lowering that it is actually a MUL_I8 or MUL_I16 in order to do the correct lowering? Thanks in advance, Pedro P.S: I add C code and corresponding LLVM code. C code: void (const u_int16_t in_data, u_int16_t* out) { u_int8_t kk = in_data&0xFF; u_int16_t kk16 = kk * kk; *out = kk16; } LLVM: %1 = load i8* %kk, align 1 %conv2 = zext i8 %1 to i32 %2 = load i8* %kk, align 1 %conv3 = zext i8 %2 to i32 %mul = mul nsw i32 %conv2, %conv3 %conv4 = trunc i32 %mul to i16 store i16 %conv4, i16* %kk16, align...
2007 Mar 03
5
[PATCH] Compile issue with tools/libfsimage/iso9660
.../iso9660/iso9660.h --- a/tools/libfsimage/iso9660/iso9660.h Fri Mar 02 18:42:00 2007 -0500 +++ b/tools/libfsimage/iso9660/iso9660.h Sat Mar 03 01:14:37 2007 -0500 @@ -105,7 +105,7 @@ struct iso_directory_record { iso_8bit_t interleave; iso_16bit_t volume_seq_number; iso_8bit_t name_len; - u_int8_t name[1]; + char name[1]; } __attribute__ ((packed)); struct iso_primary_descriptor { @@ -188,7 +188,7 @@ struct rock_ridge { } sl; struct NM { iso_8bit_t flags; - u_int8_t name[0]; + char name[0]; } nm; struct CL { iso_32bit_t location; -- Mathieu...
2015 Mar 03
2
openssh-SNAP-20150304 issues
...1, a2, "STRING", pred); [67;1H[K:[67;1H[67;1H[K fprintf(stderr, "%12s = %s (len %zu)\n", a1, aa1, strlen(aa1)); fprintf(stderr, "%12s = %s (len %zu)\n", a2, aa2, strlen(aa2)); test_die(); } static char * tohex(const void *_s, size_t l) { u_int8_t *s = (u_int8_t *)_s; size_t i, j; const char *hex = "0123456789abcdef"; char *r = malloc((l * 2) + 1); assert(r != NULL); for (i = j = 0; i < l; i++) { r[j++] = hex[(s[i] >> 4) & 0xf]; r[j++] = hex[s[i]...
2000 Jan 22
0
Solaris 2.5.1 patch
...e; diff -ur old/openssh-1.2.1pre27/defines.h openssh-1.2.1pre27/defines.h --- old/openssh-1.2.1pre27/defines.h Sun Jan 16 16:59:41 2000 +++ openssh-1.2.1pre27/defines.h Sat Jan 22 10:17:02 2000 @@ -83,6 +83,7 @@ typedef uint64_t u_int64_t; # define HAVE_U_INTXX_T 1 # else +typedef unsigned char u_int8_t; # if (SIZEOF_SHORT_INT == 2) typedef unsigned short int u_int16_t; # else diff -ur old/openssh-1.2.1pre27/packet.c openssh-1.2.1pre27/packet.c --- old/openssh-1.2.1pre27/packet.c Thu Jan 13 22:45:50 2000 +++ openssh-1.2.1pre27/packet.c Sat Jan 22 10:32:14 2000 @@ -138,6 +138,8 @@ struct soc...
2000 Oct 14
1
Compile error rijndael on Solaris 2.6 (and fix)
When compiling openssh-SNAP-20001014 on Solaris 2.6 with gcc 2.95.2 I get: In file included from rijndael.c:42: rijndael.h:6: parse error before `u1byte' and a lot more warnings and errors... Solved by adding #include "config.h" in rijndael.c Lasse Holmqvist
2001 Jun 06
0
Compile error 2.9p1 / Solaris 8 / Kerberos IV
...uot;/opt/local/ssh/2.9p1/libexec/ssh-askpass\" -D_PATH_SFTP_SERVER=\"/opt/local/ssh/2.9p1/libexec/sftp-server\" -D_PATH_SSH_PIDDIR=\"/var/run\" -DHAVE_CONFIG_H -c ../openssh-2.9p1/auth-passwd.c "/opt/KTHkrb4/include/ktypes.h", line 14: warning: typedef redeclared: u_int8_t "/opt/KTHkrb4/include/ktypes.h", line 15: warning: typedef redeclared: u_int16_t "/opt/KTHkrb4/include/ktypes.h", line 16: warning: typedef redeclared: u_int32_t "/usr/include/crypt.h", line 23: identifier redeclared: des_encrypt current : function(pointer to c...