search for: local_port

Displaying 20 results from an estimated 135 matches for "local_port".

2003 Apr 29
0
[PATCH] Fix busy-looping behaviour in ipconfig
...++++++++++++++++--- packet.h | 2 - 4 files changed, 113 insertions(+), 26 deletions(-) diff -Nru a/ipconfig/ipconfig.h b/ipconfig/ipconfig.h --- /dev/null Wed Dec 31 16:00:00 1969 +++ b/ipconfig/ipconfig.h Tue Apr 29 11:01:50 2003 @@ -0,0 +1,15 @@ +/* + * ipconfig/ipconfig.h + */ + +#define LOCAL_PORT 68 +#define REMOTE_PORT (LOCAL_PORT - 1) + +extern __u16 local_port; +extern __u16 remote_port; + +#if 0 +#define DEBUG(x) printf x +#else +#define DEBUG(x) do { } while(0) +#endif diff -Nru a/ipconfig/main.c b/ipconfig/main.c --- a/ipconfig/main.c Tue Apr 29 11:01:50 2003 +++ b/ipconfig/main.c Tue...
2003 Apr 29
0
[PATCH] ipconfig: fix memory leak, and exit if no interfaces to configure
...+} + +static void check_for_devs(void) +{ + struct state *s; + + for (s = slist; s; s = s->next) { + if (s->dev->caps) + return; + } + + fprintf(stderr, "%s: no devices to configure\n", progname); + exit(1); } int main(int argc, char *argv[]) @@ -430,8 +446,6 @@ } local_port = port; remote_port = local_port - 1; - printf("IP-Config: binding source port to %d, " - "dest to %d\n", local_port, remote_port); break; case 't': loop_timeout = atoi(optarg); @@ -448,7 +462,6 @@ case 'd': add_device(optarg);...
2007 Nov 14
1
libwrap-ing IMAP and POP logins
...def LIBWRAP +#include <tcpd.h> +int allow_severity =0, deny_severity = 0; +#endif + bool disable_plaintext_auth, process_per_connection, greeting_capability; bool verbose_proctitle, verbose_ssl, verbose_auth; const char *greeting, *log_format; @@ -69,6 +76,10 @@ unsigned int remote_port, local_port; struct client *client; int fd; +#ifdef LIBWRAP + struct request_info req; + char daemon[13] = "dovecot-"; +#endif fd = net_accept(LOGIN_LISTEN_FD, &remote_ip, &remote_port); if (fd < 0) { @@ -77,6 +88,17 @@ return; } +#ifdef LIBWRAP + strlcat(daemon, login_pro...
2007 Feb 09
0
[PATCH] xenconsoled: ignore spurious watch event
...lure: domain 0, error -22, line 177 Signed-off-by: Max Zhen <max.zhen@sun.com> diff --git a/tools/console/daemon/io.c b/tools/console/daemon/io.c --- a/tools/console/daemon/io.c +++ b/tools/console/daemon/io.c @@ -63,6 +63,7 @@ struct domain char *conspath; int ring_ref; evtchn_port_t local_port; + evtchn_port_t remote_port; int xce_handle; struct xencons_interface *interface; }; @@ -234,6 +235,9 @@ static int domain_create_ring(struct dom if (err) goto out; + if ((ring_ref == dom->ring_ref) && (remote_port == dom->remote_port)) + goto out; + if (ring_ref != do...
2007 Feb 20
0
[PATCH] Xenconsoled should ignore spurious watch event. Otherwise, it can rebind to the same evtchn of a dying domU during suspending and cause below error message:
...message: (XEN) event_channel.c:177:d0 EVTCHNOP failure: domain 0, error -22, line 177 diff --git a/tools/console/daemon/io.c b/tools/console/daemon/io.c --- a/tools/console/daemon/io.c +++ b/tools/console/daemon/io.c @@ -66,6 +66,7 @@ struct domain char *conspath; int ring_ref; evtchn_port_t local_port; + evtchn_port_t remote_port; int xce_handle; struct xencons_interface *interface; }; @@ -290,6 +291,9 @@ static int domain_create_ring(struct dom if (err) goto out; + if ((ring_ref == dom->ring_ref) && (remote_port == dom->remote_port)) + goto out; + if (ring_ref != do...
2012 May 30
1
need assist with upstart config problem
...vailable in 0.6.3 of course #debug # use strace -p <pid> -o /tmp/upstart_debug.log -Ff -s 1024 -v # Setup script configuration variables: # localhost means we do not expose proxy to internet env LOCAL_HOST=localhost # port 143 is default IMAP service port for plain text connections env LOCAL_PORT=143 # ports less than 1024 require root privileges to establish # this must be a passwordless login using PKI certificates # requires one time setup of local root user ssh key and cert # and adding this host's root user cert to authorized_keys of # login host's root user. env LOGIN_US...
2014 Aug 11
2
[PATCH] p2v: check results of strndup and sscanf
--- p2v/ssh.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/p2v/ssh.c b/p2v/ssh.c index 1e9b05c..ff906df 100644 --- a/p2v/ssh.c +++ b/p2v/ssh.c @@ -505,7 +505,16 @@ open_data_connection (struct config *config, int *local_port, int *remote_port) }, ovector, ovecsize)) { case 100: /* Ephemeral port. */ port_str = strndup (&h->buffer[ovector[2]], ovector[3]-ovector[2]); - sscanf (port_str, "%d", remote_port); + if (port_str == NULL) { + set_ssh...
2016 Jul 04
2
[PATCH] core/lwip: Avoid immediate reuse of UDP port numbers
..., ip_addr_t *dst_ip, } /** + * A nastly hack featuring 'goto' statements that allocates a + * new UDP local port. Based on equivalent code in tcp_new_port() + * + * @return a new (free) local UDP port number + */ +static u16_t +udp_new_port(void) +{ + struct udp_pcb *pcb; +#ifndef UDP_LOCAL_PORT_RANGE_START +/* From http://www.iana.org/assignments/port-numbers: + "The Dynamic and/or Private Ports are those from 49152 through 65535" */ +#define UDP_LOCAL_PORT_RANGE_START 0xc000 +#define UDP_LOCAL_PORT_RANGE_END 0xffff +#endif + static u16_t port = UDP_LOCAL_PORT_RANGE_START...
2016 Sep 14
2
How to obtain a "non-stripped" executable for producing a usable core-dump
...__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_fields = 0x0, flags_override_add = MAIL_STORAGE_SERVICE_FLAG_DISALLOW_ROOT, flags_override_remove = (unknown: 0), no_userdb_lookup = 0} storage = 0x1 user_source = 0x56242ac6d3af "" destaddr_source = 0x56242a...
2019 Apr 15
0
LDAP iterate (dovecoc 2.2.27)
...ugin { ? mail_replica = tcp:REMOTE_IP } replication_dsync_parameters = -d -N -1 -l 30 -U service aggregator { ? fifo_listener replication-notify-fifo { ??? user = vmail ? } ? unix_listener replication-notify { ??? user = vmail ? } } service auth { ? inet_listener { ??? address = LOCAL_IP ??? port = LOCAL_PORT ? } ? unix_listener auth-userdb { ??? group = vmail ??? mode = 0600 ??? user = vmail ? } } service dict { ? unix_listener dict { ??? group = vmail ??? mode = 0600 ??? user = vmail ? } } service lmtp { ? inet_listener lmtp { ??? address = LOCAL_IP ??? port = LOCAL_PORT ? } } service replicator { ?...
2019 Apr 15
0
LDAP iterate (dovecoc 2.2.27)
...ugin { ? mail_replica = tcp:REMOTE_IP } replication_dsync_parameters = -d -N -1 -l 30 -U service aggregator { ? fifo_listener replication-notify-fifo { ??? user = vmail ? } ? unix_listener replication-notify { ??? user = vmail ? } } service auth { ? inet_listener { ??? address = LOCAL_IP ??? port = LOCAL_PORT ? } ? unix_listener auth-userdb { ??? group = vmail ??? mode = 0600 ??? user = vmail ? } } service dict { ? unix_listener dict { ??? group = vmail ??? mode = 0600 ??? user = vmail ? } } service lmtp { ? inet_listener lmtp { ??? address = LOCAL_IP ??? port = LOCAL_PORT ? } } service replicator { ?...
1996 Sep 26
0
JDK 1.0.2 for FreeBSD released [Java Development Kit]
From: Jeffrey Hsu <hsu@FreeBSD.org> Subject: JDK 1.0.2 for FreeBSD Announcement ------------ A native FreeBSD binary distribution of the JDK 1.0.2 is now available from freefall.FreeBSD.org:/pub/FreeBSD/LOCAL_PORTS/jdk102.tar.gz This port contains the java interpreter, compiler, and appletviewer. This is a completely unsupported distribution. Installation ------------ 1. Grab freefall.FreeBSD.org:/pub/FreeBSD/LOCAL_PORTS/jdk102.tar.gz. 2. Create a directory and untar the FreeBSD distribution in there. 3. In...
2016 Sep 03
2
doveadm quota recalc returns a Segmentation fault
..., 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 = 0, flags_override_remove = 0, no_userdb_lookup = 0, debug = 0} error = <value optimized out> ip = <value optimized out> ret = <value optimized out> __FUNCTION__ = "...
2017 Feb 03
5
[PATCH 0/5] Support socket activation in virt-p2v.
As the subject says, support socket activation in virt-p2v. I have added upstream support for socket activation to nbdkit already: https://github.com/libguestfs/nbdkit/commit/7ff39d028c6359f5c0925ed2cf4a2c4c751af2e4 I posted a patch for qemu-nbd, still waiting on more reviews for that one: https://www.mail-archive.com/qemu-devel@nongnu.org/msg427246.html I tested this against old and new qemu
2010 Apr 26
1
valgrind ipconfig work
...0, - .msg_flags = 0 - }; int i, len = 0; + struct msghdr msg; + + memset(&sll, 0, sizeof(sll)); + + msg.msg_name = &sll; + msg.msg_namelen = sizeof(sll); + msg.msg_iov = iov; + msg.msg_iovlen = iov_len; + msg.msg_control = NULL; + msg.msg_controllen = 0; + msg.msg_flags = 0; if (cfg_local_port != LOCAL_PORT) { ipudp_hdrs.udp.source = htons(cfg_local_port);
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:
2018 Dec 13
0
doveadm batch crash
...16 = {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 = (unknown: 0), flags_override_remove = (unknown: 0), no_userdb_lookup = 0, debug = 0} error = 0xf9d0 <Address 0xf9d0 out of bounds> ip = <optimized out> ret = <optimized out>...
2012 Apr 26
2
LDA crashes on delivery (using sieve)
...gt;, __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_remove = 0, no_userdb_lookup = 0} storage = (struct mail_storage *) 0x0 user_source = (const __unknown__ *) 0x4034c0 "" destaddr_source = (const __unknown__ *) 0x403576 "-a par...
2017 Jun 16
0
doveadm-server core dump
...dr32 = {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, userdb_fields = 0x0, flags_override_add = (unknown: 0), flags_override_remove = (unknown: 0), no_userdb_lookup = 0, debug = 0} error = 0x20 <error: Cannot access memory at address 0x20> ip = <optimized out> ret = <optimized out...
2009 May 12
4
Controlling outbound bandwidth utilization by port
Among other things, I run an http server on my home DSL line (6M/768kbit). The content includes several large image galleries, and when certain crawlers hit our server w/ multiple large image uploads, we end up with large ping time delays - sufficient to disrupt the kids'' on-line gaming. Attempts to control this with robots.txt has not be very successful; Solaris IPQoS appears quite