search for: myaddr

Displaying 20 results from an estimated 31 matches for "myaddr".

Did you mean: maddr
2015 Jul 29
2
Bug#793921: tftpd-hpa: IPv6 address cannonization breaks IPv4
...> > Signed-off-by: H. Peter Anvin <hpa at zytor.com> > > > > Totally breaks IPv4 support when tftpd is used with an IPv6 listening socket > > (eg when invoked from systemd) > > > > The issue is that the tftpd caller assumes that 'from' and 'myaddr' have the > > same AF, however the above patch only cannonizes 'myaddr'. Ultimately this > > results in the daemon attempting to use a socket with two address families and > > fails: > > > > recvmsg(0, {msg_name(28)={sa_family=AF_INET6, sin6_port=htons(345...
2015 Aug 07
0
Bug#793921: tftpd-hpa: IPv6 address cannonization breaks IPv4
...Signed-off-by: H. Peter Anvin <hpa at zytor.com> >>> >>> Totally breaks IPv4 support when tftpd is used with an IPv6 listening socket >>> (eg when invoked from systemd) >>> >>> The issue is that the tftpd caller assumes that 'from' and 'myaddr' have the >>> same AF, however the above patch only cannonizes 'myaddr'. Ultimately this >>> results in the daemon attempting to use a socket with two address families and >>> fails: >>> >>> recvmsg(0, {msg_name(28)={sa_family=AF_INET6, sin6_...
2002 Jul 22
1
Printer Migration hackery
...H = "/the/print$/path"; #Where in LDAP you keep your printers $LDAPPRINTERBASE = "ou=hosts,dc=example,dc=com"; #Where in LDAP you keep your printer drivers $LDAPDRIVERBASE = "applicationentity=printerdrivers,o=microsoft.com,ou=software,dc=example,dc=com"; $dummy = 0; $myaddr = qx/nmblookup -A 127.0.0.1 | grep '<20>'/; $myaddr =~ s/[\t ]+/ /g; $myaddr =~ s/^ //; ( $myname, $dummy ) = split(/ /,$myaddr); open RPCCLIENT, "rpcclient $myname -U $USER%$PASSWD -c 'enumprinters' |"; while (<RPCCLIENT>) { $line = $_; chop $line;...
2016 Mar 08
1
[PATCH v3] configure: handle older version of ncurses
...6-config tool. --- m4/guestfs_libraries.m4 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/m4/guestfs_libraries.m4 b/m4/guestfs_libraries.m4 index c5a4a01..e751db1 100644 --- a/m4/guestfs_libraries.m4 +++ b/m4/guestfs_libraries.m4 @@ -113,7 +113,14 @@ struct sockaddr_un myaddr; dnl tgetent, tputs and UP [sic] are all required. They come from the lower dnl tinfo library, but might be part of ncurses directly. PKG_CHECK_MODULES([LIBTINFO], [tinfo], [], [ - PKG_CHECK_MODULES([LIBTINFO], [ncurses]) + PKG_CHECK_MODULES([LIBTINFO], [ncurses], [], [ + AC_CHECK_...
2010 Mar 04
1
Making tftpd (hpa) firewall frienldy
...(LOG_ERR, "socket: %m"); exit(EX_IOERR); } + { int x = 1; setsockopt (peer, SOL_SOCKET, SO_REUSEADDR, &x, sizeof (x)); } +#ifdef SO_REUSEPORT + { int x = 1; setsockopt (peer, SOL_SOCKET, SO_REUSEPORT , &x, sizeof (x)); } +#endif + if (pick_port_bind(peer, &myaddr, portrange_from, portrange_to) < 0) { + syslog(LOG_ERR, "bind: %m"); + exit(EX_IOERR); + } /* Set up the supplementary group access list if possible */ /* /etc/group still need to be accessible at this point */ @@ -947,10 +960,6 @@ } /* Process th...
2003 Jun 07
1
Impossible to IPfilter this?
...my FreeBSD 4.8 firewall/DSL router/VPN router. My problem is with firewalling the VPN part. I'm using a tunnel to a RedHat 7.1 box running FreeS/WAN. This tunnel allows traffic from my internal net (172.17.0.0/24) to that box only: spdadd 172.17.0.0/24 $REDHAT/32 any -P out ipsec esp/tunnel/$MYADDR-$REDHAT/unique; spdadd $REDHAT/32 172.17.0.0/24 any -P in ipsec esp/tunnel/$REDHAT-$MYADDR/unique; What I want to do is prohibit traffic from $REDHAT to 172.17.0.7, the internal address of this FreeBSD box. I'm using IPFilter, so I inserted a rule like this: block in log quick from any...
2009 Dec 29
0
aMSN segfaults at login after configuring my home network
...00TP\351\267G\a\000\000\004\000\000\000\231\362?\364/\351\267\070\330\377\277"} result = <value optimized out> #8 0xb7e5b09e in CreateSocket (interp=<value optimized out>, port=<value optimized out>, host=0x8a0cad0 "messenger.hotmail.com", server=0, myaddr=0x0, myport=0, async=1) at /build/buildd/tcl8.5-8.5.7/unix/../unix/tclUnixChan.c:2290 status = <value optimized out> sock = <value optimized out> asyncConnect = <value optimized out> curState = <value optimized out> sockaddr = {sin...
2017 Jan 29
2
[PATCH tftpd-hpa] tftpd: don't use AI_CANONNAME and AI_ADDRCONFIG to resolve addresses for bind
...++++++--- tftpd/tftpd.c | 6 ++++-- 4 files changed, 13 insertions(+), 8 deletions(-) diff --git a/common/tftpsubs.c b/common/tftpsubs.c index 8c999f66eed8..344c74b3d78c 100644 --- a/common/tftpsubs.c +++ b/common/tftpsubs.c @@ -300,7 +300,7 @@ int pick_port_bind(int sockfd, union sock_addr *myaddr, } int -set_sock_addr(char *host,union sock_addr *s, char **name) +set_sock_addr(char *host, union sock_addr *s, char **name, int ai_flags) { struct addrinfo *addrResult; struct addrinfo hints; @@ -308,7 +308,7 @@ set_sock_addr(char *host,union sock_addr *s, char **name) mem...
2016 Mar 01
0
[PATCH 1/3] configure: handle older version of ncurses
...ses6-config tool. --- m4/guestfs_libraries.m4 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/m4/guestfs_libraries.m4 b/m4/guestfs_libraries.m4 index c5a4a01..0aadae0 100644 --- a/m4/guestfs_libraries.m4 +++ b/m4/guestfs_libraries.m4 @@ -113,7 +113,11 @@ struct sockaddr_un myaddr; dnl tgetent, tputs and UP [sic] are all required. They come from the lower dnl tinfo library, but might be part of ncurses directly. PKG_CHECK_MODULES([LIBTINFO], [tinfo], [], [ - PKG_CHECK_MODULES([LIBTINFO], [ncurses]) + PKG_CHECK_MODULES([LIBTINFO], [ncurses], [], [ + AC_CHECK_...
2016 Mar 08
0
[PATCH v2 1/3] configure: handle older version of ncurses
...fig tool. --- m4/guestfs_libraries.m4 | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/m4/guestfs_libraries.m4 b/m4/guestfs_libraries.m4 index c5a4a01..defd394 100644 --- a/m4/guestfs_libraries.m4 +++ b/m4/guestfs_libraries.m4 @@ -113,7 +113,17 @@ struct sockaddr_un myaddr; dnl tgetent, tputs and UP [sic] are all required. They come from the lower dnl tinfo library, but might be part of ncurses directly. PKG_CHECK_MODULES([LIBTINFO], [tinfo], [], [ - PKG_CHECK_MODULES([LIBTINFO], [ncurses]) + PKG_CHECK_MODULES([LIBTINFO], [ncurses], [], [ + AC_CHECK_...
2004 Aug 19
1
tftp-hpa: getopt problems
Hi! I hope this is the right list for sending tftpd-patches - if not, please point me in the right direction... I experienced quite strange problems when trying to use tftp-hpa in newer Cygwin versions. It simply isn't able to parse its command line correctly because it seems to use another optind variable than getopt(). When you try to start it with something like tftpd.exe -s /mypath
2014 Jul 31
0
[PATCH 1/3] __progname is provided by libc
...This has to be done before the chroot, while /etc is still accessible. */ request_init(&wrap_request, - RQ_DAEMON, __progname, + RQ_DAEMON, tftpd_progname, RQ_FILE, fd, RQ_CLIENT_SIN, &from, RQ_SERVER_SIN, &myaddr, 0); sock_methods(&wrap_request); -- 2.0.0
2019 Nov 27
5
[v2v PATCH v2 0/5] Various build cleanups
Brought to you by the "I haven't rebuilt the libguestfs universe in a while" saga -- now with working test suite. Pino Toscano (5): build: remove extra gnulib submodule build: remove extra checks and submodules build: stop using gnulib in test-harness build: remove unused gnulib modules Remove extra entries from podfiles .gitmodules | 3 -- Makefile.am
2006 Feb 15
2
[tftp-hpa] [BUG] Bad src address on replies from aliased interfaces
Hi, we're running tftp-hpa on a machine which will have to accept packets on an aliased IP (for service redundancy and fallback). The server is reachable using the alias, but replies using the primary IP of the interface, which provokes a timeout on the client. The workaround is to run tftp stand-alone and to explicitly specify the alias IP on the command-line -- however this is not very
2016 Mar 01
6
[PATCH 0/3] btrfs subvolumes display fix
Hey there! Here are a few patches to fix unrelated things: one fixes the configure for older ncurses releases having no pkg-config files. The other two are fixing what Richard mentioned about guestfs subvolumes display Cédric Bosdonnat (3): configure: handle older version of ncurses api: add mountable_device and mountable_subvolume fish: fix btrfs subvolumes display in error case
2016 Mar 08
7
[PATCH v2 0/3] btrfs subvolumes display fix
Hi all, Here is version 2 of the patch series, including the changes for Pino's remarks. Cédric Bosdonnat (3): configure: handle older version of ncurses api: add mountable_device and mountable_subvolume fish: fix btrfs subvolumes display in error case fish/options.c | 28 ++++++++++++++++++++++++++- generator/actions.ml | 26 +++++++++++++++++++++++++
2019 Nov 27
6
[v2v PATCH 0/5] Various build cleanups
Brought to you by the "I haven't rebuilt the libguestfs universe in a while" saga. Pino Toscano (5): build: remove extra gnulib submodule build: remove extra checks and submodules build: stop using gnulib in test-harness build: remove unused gnulib modules Remove extra entries from podfiles .gitmodules | 3 -- Makefile.am | 2 - bootstrap
2017 Feb 02
0
Bug#771441: [PATCH tftpd-hpa] tftpd: don't use AI_CANONNAME and AI_ADDRCONFIG to resolve addresses for bind
...+++-- > 4 files changed, 13 insertions(+), 8 deletions(-) > > diff --git a/common/tftpsubs.c b/common/tftpsubs.c > index 8c999f66eed8..344c74b3d78c 100644 > --- a/common/tftpsubs.c > +++ b/common/tftpsubs.c > @@ -300,7 +300,7 @@ int pick_port_bind(int sockfd, union sock_addr *myaddr, > } > > int > -set_sock_addr(char *host,union sock_addr *s, char **name) > +set_sock_addr(char *host, union sock_addr *s, char **name, int ai_flags) > { > struct addrinfo *addrResult; > struct addrinfo hints; > @@ -308,7 +308,7 @@ set_sock_addr(char *host...
2014 Nov 11
1
[PATCH] use pkg-config to look up ncurses
...\ -L../gnulib/lib/.libs -lgnu \ -pthread -lpthread \ - -ltinfo -lcrypt + $(LIBCURSES_LIBS) -lcrypt if HAVE_OCAMLOPT virt-builder: $(OBJECTS) diff --git a/configure.ac b/configure.ac index a571de5..1c38084 100644 --- a/configure.ac +++ b/configure.ac @@ -352,19 +352,13 @@ struct sockaddr_un myaddr; AC_DEFINE_UNQUOTED([UNIX_PATH_MAX], $unix_path_max, [Custom value for UNIX_PATH_MAX]) ]) -dnl tgetent, tputs and UP [sic] are all required. They come from libtinfo -dnl which is pulled in as a dependency of libncurses. -old_LIBS="$LIBS" -AC_CHECK_LIB([tinfo], [tgetent], [], [...
2004 Jan 13
1
tftpd-hpa suggestions
Hello, Peter and others! there are some issues regarding the tftp-hpa server: 1. Running as Windows service seems to require that the application does not detach (otherwise "net start" says smth. like "could not start, the service didn't report any errors"). The attached patch adds the option "-n", which can be used to have tftpd run in foreground.