Displaying 20 results from an estimated 183 matches for "s_addr".
Did you mean:
__addr
2007 Jan 08
2
Re: [nut-commits] svn commit r714 - in trunk: . server
OK, I have removed the autoconf test for s6_addr32 (which is no longer
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) ==...
2009 Jun 01
2
[PATCH viewer] few minor bugfixes
...T, SOCK_STREAM, 0);
@@ -917,14 +918,9 @@ viewer_open_vnc_socket(const char* vnchost, int vncport)
return -1;
}
- serv = gethostbyname(vnchost);
- if(serv == NULL){
- return -1;
- }
-
serv_addr.sin_family = PF_INET;
serv_addr.sin_port = htons(vncport);
- serv_addr.sin_addr.s_addr = ((struct in_addr *)(serv->h_addr))->s_addr;
+ serv_addr.sin_addr.s_addr = inet_addr(vnchost);
if (connect(socketfd,(struct sockaddr *)&serv_addr,sizeof(serv_addr)) < 0){
return -1;
@@ -933,7 +929,7 @@ viewer_open_vnc_socket(const char* vnchost, int vncport)
return so...
2004 Apr 20
1
[patch] Raw sockets in jails
Although RAW sockets can be used when specifying the source
address of packets (defeating one of the aspects of the jail)
some people may find it usefull to use utilities like ping(8)
or traceroute(8) from inside jails.
Enclosed is a patch I have written which gives you the option
of allowing prison-root to create raw sockets inside the prison,
so
2009 Jun 08
2
[PATCH] few minor bugfixes
...;%d", vncport);
- serv = gethostbyname(vnchost);
- if(serv == NULL){
+ result = getaddrinfo(vnchost, port, NULL, &vnc_addr);
+ if(result != 0 || vnc_addr == NULL)
return -1;
- }
- serv_addr.sin_family = PF_INET;
- serv_addr.sin_port = htons(vncport);
- serv_addr.sin_addr.s_addr = ((struct in_addr *)(serv->h_addr))->s_addr;
+ // just use first found, ignoring rest
+ socketfd = socket(vnc_addr->ai_family,
+ vnc_addr->ai_socktype,
+ vnc_addr->ai_protocol);
- if (connect(socketfd,(struct sockaddr *)&serv_addr,size...
2016 Sep 14
2
How to obtain a "non-stripped" executable for producing a usable core-dump
...annot access memory at address
0x14844a489d8>,
session_id_prefix = 0x0, local_ip = {family = 0, u = {ip6 =
{__in6_u = {
__u6_addr8 = '\000' <repeats 15 times>, __u6_addr16 =
{0, 0, 0, 0, 0, 0, 0, 0},
__u6_addr32 = {0, 0, 0, 0}}}, ip4 = {s_addr = 0}}},
remote_ip = {family = 0, u = {
ip6 = {__in6_u = {__u6_addr8 = '\000' <repeats 15 times>,
__u6_addr16 = {0, 0, 0, 0,
0, 0, 0, 0}, __u6_addr32 = {0, 0, 0, 0}}}, ip4 =
{s_addr = 0}}},
local_port = 65320, remote_port = 59489, userdb_fiel...
2010 Jul 29
3
[PATCH 1/1] O2net: Disallow o2net accept connection request from itself.
...{
mlog(ML_NOTICE, "unexpected connect attempted from a lower "
- "numbered node '%s' at " "%pI4:%d with num %u\n",
+ "or same numbered node '%s' at " "%pI4:%d with num %u\n",
node->nd_name, &sin.sin_addr.s_addr,
ntohs(sin.sin_port), node->nd_num);
ret = -EINVAL;
--
1.5.5
2017 Jun 16
0
doveadm-server core dump
...uot;T0146937", session_id = 0x0, session_id_prefix = 0x0, session_create_time = 0, local_ip = {family = 2, u = {ip6 = {__in6_u = {__u6_addr8 = "\n!?", '\000' <repeats 11 times>, __u6_addr16 = {8458, 34767, 0, 0, 0, 0, 0, 0}, __u6_addr32 = {2278498570, 0, 0, 0}}}, ip4 = {s_addr = 2278498570}}}, remote_ip = {family = 2, u = {ip6 = {__in6_u = {__u6_addr8 = "\n!?", '\000' <repeats 11 times>, __u6_addr16 = {8458, 35023, 0, 0, 0, 0, 0, 0}, __u6_addr32 = {2295275786, 0, 0, 0}}}, ip4 = {s_addr = 2295275786}}}, local_port = 12345, remote_port = 55819, user...
2016 Sep 03
2
doveadm quota recalc returns a Segmentation fault
...me =
0x681288 "alessio at skye.it", session_id = 0x0,
session_id_prefix = 0x0, local_ip = {family = 0, u = {ip6 =
{__in6_u = {__u6_addr8 = '\000' <repeats 15 times>,
__u6_addr16 = {0, 0, 0, 0, 0, 0, 0, 0}, __u6_addr32 =
{0, 0, 0, 0}}}, ip4 = {s_addr = 0}}}, remote_ip = {
family = 0, u = {ip6 = {__in6_u = {__u6_addr8 = '\000'
<repeats 15 times>, __u6_addr16 = {0, 0, 0, 0, 0, 0, 0, 0},
__u6_addr32 = {0, 0, 0, 0}}}, ip4 = {s_addr = 0}}},
local_port = 0, remote_port = 0, userdb_fields = 0x0,...
2010 Nov 28
2
[PATCH] Use canonical hostname for DNS SSHFP lookup
...+ sizeof(struct sockaddr_in));
+ memset(ai, '\0', len);
ai->ai_addr = (struct sockaddr *)(ai + 1);
/* XXX -- ssh doesn't use sa_len */
@@ -138,6 +146,11 @@
((struct sockaddr_in *)(ai)->ai_addr)->sin_port = port;
((struct sockaddr_in *)(ai)->ai_addr)->sin_addr.s_addr = addr;
+
+ if (canonname != NULL) {
+ ai->ai_canonname = ((char *)ai->ai_addr) + sizeof(struct sockaddr_in);
+ strlcpy(ai->ai_canonname, canonname, canonlen + 1);
+ }
/* XXX: the following is not generally correct, but does what we want */
if (hints->ai_socktype)
@@ -182,21 +1...
2018 Dec 08
2
doveadm batch crash
Hi
I'm having an issue with doveadm batch - the following command always
crashes:
doveadm batch : mailbox status all inbox
Whereas the following work as expected:
doveadm mailbox status all inbox
doveadm batch : mailbox list
Any assistance gratefully received.
Debug output from the crash:
Debug: Loading modules from directory: /usr/lib64/dovecot
Debug: Module loaded:
2008 Feb 28
1
C Code to connect to Asterisk Manager Interface
..."192.168.0.150"
#define SERVER_PORT 5038
#define CLIENT_PORT 5100
int main()
{
int sd;
struct sockaddr_in serveraddr, clientaddr;
char msg[MAX_MSG_SIZE];
bzero((char *) &serveraddr, sizeof(serveraddr));
serveraddr.sin_family = AF_INET;
serveraddr.sin_addr.s_addr = inet_addr(SERVER_ADDRESS);
serveraddr.sin_port = htons(SERVER_PORT);
bzero((char *) &clientaddr, sizeof(clientaddr));
clientaddr.sin_family = AF_INET;
clientaddr.sin_addr.s_addr = INADDR_ANY;
clientaddr.sin_port = htons(CLIENT_PORT);
sd = socket(AF_INET, SOCK_STREAM,...
2018 Dec 13
0
doveadm batch crash
...0x5555557ef7c3 "jc", session_id = 0x0, session_id_prefix =
0x0, session_create_time = 0, local_ip = {family = 0, u = {ip6 =
{__in6_u = {
__u6_addr8 = '\000' <repeats 15 times>, __u6_addr16 =
{0, 0, 0, 0, 0, 0, 0, 0}, __u6_addr32 = {0, 0, 0, 0}}}, ip4 = {s_addr =
0}}}, remote_ip = {family = 0, u = {ip6 = {__in6_u = {__u6_addr8 =
'\000' <repeats 15 times>,
__u6_addr16 = {0, 0, 0, 0, 0, 0, 0, 0}, __u6_addr32 =
{0, 0, 0, 0}}}, ip4 = {s_addr = 0}}}, local_port = 0, remote_port = 0,
userdb_fields = 0x0, flags_override_add =...
2005 Jan 05
1
[PATCH] kinit/nfsmount.c path from bootp
..., ',')) != NULL) {
- *opts++ = '\0';
- argv[a++] = (char *) "-o";
- argv[a++] = opts;
- }
-
for (dev = ifaces; dev; dev = dev->next) {
print_device_config(dev);
if (dev->ip_server != INADDR_NONE &&
dev->ip_server != INADDR_ANY) {
addr.s_addr = dev->ip_server;
client = dev->ip_addr;
+ dev_bootpath = dev->bootpath;
break;
}
if (dev->ip_addr != INADDR_NONE &&
@@ -102,6 +89,25 @@
}
}
+ /*
+ * if the "nfsroot" option is set then it overrides
+ * bootpath supplied by the boot server.
+...
2020 Feb 21
0
Patches for Samba 4.12.0rc3 for OmniOS
...fined in <sys/sysmacros.h> on OmniOS, put an #ifndef around it in lib/replace/replace.h (can be ignored but causes a gazillion compiler warnings :-):
https://www.grebo.net/~peter/omnios/samba/4.12/array_size.patch <https://www.grebo.net/~peter/omnios/samba/4.12/array_size.patch>
2. s_addr is a define and causes compilation problems (errors), change the argument to ?xs_addr? instead in lib/tsocket/tsocket.h and tsocket_bsd.c:
https://www.grebo.net/~peter/omnios/samba/4.12/s_addr.patch <https://www.grebo.net/~peter/omnios/samba/4.12/s_addr.patch>
3. The ?wscript? build tool...
1997 Nov 14
0
Linux IP fragment overlap bug (fwd)
...break; /* NOTREACHED */
}
}
srandom((unsigned)(time((time_t)0)));
if (!src_prt) src_prt = (random() % 0xffff);
if (!dst_prt) dst_prt = (random() % 0xffff);
if (!count) count = COUNT;
fprintf(stderr, "Death on flaxen wings:\n");
addr.s_addr = src_ip;
fprintf(stderr, "From: %15s.%5d\n", inet_ntoa(addr), src_prt);
addr.s_addr = dst_ip;
fprintf(stderr, " To: %15s.%5d\n", inet_ntoa(addr), dst_prt);
fprintf(stderr, " Amt: %5d\n", count);
fprintf(stderr, "[ ");
for (i = 0; i...
2012 Apr 26
2
LDA crashes on delivery (using sieve)
...service = 0x403567
"lda", username = 0x7fffffffebcc "test at example.com", session_id = 0x0,
local_ip = {family = 0, u = {ip6 = {__u6_addr = {__u6_addr8 = '\0'
<repeats 15 times>, __u6_addr16 = {0, 0, 0, 0, 0, 0, 0, 0}, __u6_addr32
= {0, 0, 0, 0}}}, ip4 = {
s_addr = 0}}}, remote_ip = {family = 0, u = {ip6 = {__u6_addr =
{__u6_addr8 = '\0' <repeats 15 times>, __u6_addr16 = {0, 0, 0, 0, 0, 0,
0, 0}, __u6_addr32 = {0, 0, 0, 0}}}, ip4 = {s_addr = 0}}}, local_port =
0, remote_port = 0, userdb_fields = 0x0, flags_override_add = 0,
flags_override_remo...
1998 Oct 19
1
domain_master_node_status_fail: ... Cannot sync browser lists.
...ope \nmbd\main, pc 0x806dea9
frame 5, pc _start+105
________________________________________________________________
THE RECORD WE ATTEMPTED TO SEND AND GOT A TIMEOUT ON:
(i.e., absolutely no response, as opposed to "got something, but not
what we wanted", based on dumping p->ip.S_un.S_addr in
run_packet_queue())
in retransmit_or_expire_response_records():
(debug) eval *(rrec->packet)
{
next = 0x00000000
prev = 0x00000000
locked = 1
ip = {
S_un = {
S_un_b = {
s_b1 = '\200'
s_b2 = '...
2003 Feb 20
0
Netbios name service forwarding.
...SIOCGIFBRDADDR, &ifr))
{
syslog (LOG_ERR, "Can't get broadcast address for interface %s: %m",
name);
exit (1);
}
bcopy (&ifr.ifr_addr, &i->bcast, sizeof (struct sockaddr_in));
i->bcast.sin_port = htons (nb_port);
me.sin_addr.s_addr = INADDR_ANY;
me.sin_port = htons (nb_port);
if (bind (i->fd, (struct sockaddr *) &me, sizeof (struct sockaddr_in)) < 00)
{
syslog (LOG_ERR, "Can't bind to port %d on interface %s: %m",
nb_port, name);
exit (1);
}
if (setsockopt (i-&...
2017 Nov 20
2
doveadm mailbox list -s Segmentation fault
...quot;, username =
0x801c18030 "kristjan.eentsalu", session_id = 0x0, session_id_prefix = 0x0,
session_create_time = 0, local_ip = {family = 0, u = {ip6 = {__u6_addr = {
__u6_addr8 = 0x7fffffffe75c "", __u6_addr16 = 0x7fffffffe75c,
__u6_addr32 = 0x7fffffffe75c}}, ip4 = {s_addr = 0}}}, remote_ip = {family =
0, u = {ip6 = {__u6_addr = {__u6_addr8 = 0x7fffffffe770 "",
__u6_addr16 = 0x7fffffffe770, __u6_addr32 = 0x7fffffffe770}}, ip4
= {s_addr = 0}}}, local_port = 0, remote_port = 0, userdb_fields = 0x0,
flags_override_add = 0, flags_override_remove = 0,...
2016 May 29
4
fts lucene crashes in 2.2.24
..._id = 0x0, session_id_prefix = 0x0,
local_ip = {family = 0, u = {ip6 = {__in6_u = {
---Type <return> to continue, or q <return> to quit---
__u6_addr8 = '\000' <repeats 15 times>, __u6_addr16 = {0,
0, 0, 0, 0, 0, 0, 0}, __u6_addr32 = {0, 0, 0, 0}}}, ip4 = {s_addr = 0}}},
remote_ip = {family = 0, u = {ip6 = {
__in6_u = {__u6_addr8 = '\000' <repeats 15 times>,
__u6_addr16 = {0, 0, 0, 0, 0, 0, 0, 0}, __u6_addr32 = {0, 0, 0, 0}}}, ip4 =
{s_addr = 0}}}, local_port = 0, remote_port = 0,
userdb_fields = 0x0, flags_override_a...