You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
session.c:39:38: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
session.c: In function 'IpAddressToString':
session.c:45:13: error: dereferencing pointer to incomplete type
b = ipaddr->addr.a4b;
^
session.c:50:13: error: dereferencing pointer to incomplete type
b = ipaddr->addr.a6.s6_addr;
^
session.c: At top level:
session.c:66:36: warning: 'struct ip_addr' declared inside parameter list [enabled by default]
void AddressToString( const struct ip_addr ipaddr, uint16_t port, char buff )
^
session.c:66:6: error: conflicting types for 'AddressToString'
void AddressToString( const struct ip_addr ipaddr, uint16_t port, char buff )
^
In file included from session_table.h:24:0,
from capenv.h:24,
from session.c:23:
session.h:65:6: note: previous declaration of 'AddressToString' was here
void AddressToString( uint32_t ip, uint16_t port, char* buff );
^
session.c: In function 'AddressToString':
session.c:75:2: warning: passing argument 1 of 'IpAddressToString' from incompatible pointer type [enabled by default]
IpAddressToString(ipaddr, buff_p);
^
session.c:39:6: note: expected 'const struct ip_addr *' but argument is of type 'const struct ip_addr *'
void IpAddressToString( const struct ip_addr ipaddr, char buff )
^
session.c: In function 'SessionToString':
session.c:87:13: error: 'DSSL_MAX_IP_ADDR_STR_SIZE' undeclared (first use in this function)
char addr1[DSSL_MAX_IP_ADDR_STR_SIZE], addr2[DSSL_MAX_IP_ADDR_STR_SIZE];
^
session.c:87:13: note: each undeclared identifier is reported only once for each function it appears in
session.c:92:2: warning: passing argument 1 of 'AddressToString' from incompatible pointer type [enabled by default]
AddressToString( &sess->serverStream.ip_addr, sess->serverStream.port, addr1 );
^
session.c:66:6: note: expected 'const struct ip_addr *' but argument is of type 'uint32_t *'
void AddressToString( const struct ip_addr ipaddr, uint16_t port, char buff )
^
session.c:93:2: warning: passing argument 1 of 'AddressToString' from incompatible pointer type [enabled by default]
AddressToString( &sess->clientStream.ip_addr, sess->clientStream.port, addr2 );
^
session.c:66:6: note: expected 'const struct ip_addr *' but argument is of type 'uint32_t *'
void AddressToString( const struct ip_addr ipaddr, uint16_t port, char buff )
^
session.c: In function 'StreamToString':
session.c:102:13: error: 'DSSL_MAX_IP_ADDR_STR_SIZE' undeclared (first use in this function)
char addr1[DSSL_MAX_IP_ADDR_STR_SIZE], addr2[DSSL_MAX_IP_ADDR_STR_SIZE];
^
session.c:107:2: warning: passing argument 1 of 'AddressToString' from incompatible pointer type [enabled by default]
AddressToString( &str->ip_addr, str->port, addr1 );
^
session.c:66:6: note: expected 'const struct ip_addr *' but argument is of type 'const uint32_t *'
void AddressToString( const struct ip_addr ipaddr, uint16_t port, char buff )
^
session.c:108:2: warning: passing argument 1 of 'AddressToString' from incompatible pointer type [enabled by default]
AddressToString( &StreamGetPeer(str)->ip_addr, StreamGetPeer(str)->port, addr2 );
^
session.c:66:6: note: expected 'const struct ip_addr *' but argument is of type 'uint32_t *'
void AddressToString( const struct ip_addr ipaddr, uint16_t port, char buff )
^
session.c: In function 'SessionGetPacketDirection':
session.c:117:17: error: storage size of 'ip_src' isn't known
struct ip_addr ip_src, ip_dst;
^
session.c:117:25: error: storage size of 'ip_dst' isn't known
struct ip_addr ip_src, ip_dst;
^
session.c: In function 'SessionInit':
session.c:154:17: error: storage size of 'ip_dst' isn't known
struct ip_addr ip_dst, ip_src;
^
session.c:154:25: error: storage size of 'ip_src' isn't known
struct ip_addr ip_dst, ip_src;
^
session.c:225:34: error: 'DSSL_TCPSTREAM_NO_SYN' undeclared (first use in this function)
sess->serverStream.flags |= DSSL_TCPSTREAM_NO_SYN;
^
session.c: In function 'SessionInitDecoders':
session.c:243:17: error: storage size of 'ip_dst' isn't known
struct ip_addr ip_dst, ip_src;
^
session.c:243:25: error: storage size of 'ip_src' isn't known
struct ip_addr ip_dst, ip_src;
The text was updated successfully, but these errors were encountered:
session.c:39:38: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
session.c: In function 'IpAddressToString':
session.c:45:13: error: dereferencing pointer to incomplete type
b = ipaddr->addr.a4b;
^
session.c:50:13: error: dereferencing pointer to incomplete type
b = ipaddr->addr.a6.s6_addr;
^
session.c: At top level:
session.c:66:36: warning: 'struct ip_addr' declared inside parameter list [enabled by default]
void AddressToString( const struct ip_addr ipaddr, uint16_t port, char buff )
^
session.c:66:6: error: conflicting types for 'AddressToString'
void AddressToString( const struct ip_addr ipaddr, uint16_t port, char buff )
^
In file included from session_table.h:24:0,
from capenv.h:24,
from session.c:23:
session.h:65:6: note: previous declaration of 'AddressToString' was here
void AddressToString( uint32_t ip, uint16_t port, char* buff );
^
session.c: In function 'AddressToString':
session.c:75:2: warning: passing argument 1 of 'IpAddressToString' from incompatible pointer type [enabled by default]
IpAddressToString(ipaddr, buff_p);
^
session.c:39:6: note: expected 'const struct ip_addr *' but argument is of type 'const struct ip_addr *'
void IpAddressToString( const struct ip_addr ipaddr, char buff )
^
session.c: In function 'SessionToString':
session.c:87:13: error: 'DSSL_MAX_IP_ADDR_STR_SIZE' undeclared (first use in this function)
char addr1[DSSL_MAX_IP_ADDR_STR_SIZE], addr2[DSSL_MAX_IP_ADDR_STR_SIZE];
^
session.c:87:13: note: each undeclared identifier is reported only once for each function it appears in
session.c:92:2: warning: passing argument 1 of 'AddressToString' from incompatible pointer type [enabled by default]
AddressToString( &sess->serverStream.ip_addr, sess->serverStream.port, addr1 );
^
session.c:66:6: note: expected 'const struct ip_addr *' but argument is of type 'uint32_t *'
void AddressToString( const struct ip_addr ipaddr, uint16_t port, char buff )
^
session.c:93:2: warning: passing argument 1 of 'AddressToString' from incompatible pointer type [enabled by default]
AddressToString( &sess->clientStream.ip_addr, sess->clientStream.port, addr2 );
^
session.c:66:6: note: expected 'const struct ip_addr *' but argument is of type 'uint32_t *'
void AddressToString( const struct ip_addr ipaddr, uint16_t port, char buff )
^
session.c: In function 'StreamToString':
session.c:102:13: error: 'DSSL_MAX_IP_ADDR_STR_SIZE' undeclared (first use in this function)
char addr1[DSSL_MAX_IP_ADDR_STR_SIZE], addr2[DSSL_MAX_IP_ADDR_STR_SIZE];
^
session.c:107:2: warning: passing argument 1 of 'AddressToString' from incompatible pointer type [enabled by default]
AddressToString( &str->ip_addr, str->port, addr1 );
^
session.c:66:6: note: expected 'const struct ip_addr *' but argument is of type 'const uint32_t *'
void AddressToString( const struct ip_addr ipaddr, uint16_t port, char buff )
^
session.c:108:2: warning: passing argument 1 of 'AddressToString' from incompatible pointer type [enabled by default]
AddressToString( &StreamGetPeer(str)->ip_addr, StreamGetPeer(str)->port, addr2 );
^
session.c:66:6: note: expected 'const struct ip_addr *' but argument is of type 'uint32_t *'
void AddressToString( const struct ip_addr ipaddr, uint16_t port, char buff )
^
session.c: In function 'SessionGetPacketDirection':
session.c:117:17: error: storage size of 'ip_src' isn't known
struct ip_addr ip_src, ip_dst;
^
session.c:117:25: error: storage size of 'ip_dst' isn't known
struct ip_addr ip_src, ip_dst;
^
session.c: In function 'SessionInit':
session.c:154:17: error: storage size of 'ip_dst' isn't known
struct ip_addr ip_dst, ip_src;
^
session.c:154:25: error: storage size of 'ip_src' isn't known
struct ip_addr ip_dst, ip_src;
^
session.c:225:34: error: 'DSSL_TCPSTREAM_NO_SYN' undeclared (first use in this function)
sess->serverStream.flags |= DSSL_TCPSTREAM_NO_SYN;
^
session.c: In function 'SessionInitDecoders':
session.c:243:17: error: storage size of 'ip_dst' isn't known
struct ip_addr ip_dst, ip_src;
^
session.c:243:25: error: storage size of 'ip_src' isn't known
struct ip_addr ip_dst, ip_src;
The text was updated successfully, but these errors were encountered: