Displaying 20 results from an estimated 106 matches for "pf_inet".
Did you mean:
af_inet
2010 Feb 23
0
[PATCH 2/3] nfsmount: s/PF_INET/AF_INET/
...s(+), 5 deletions(-)
diff --git a/usr/kinit/nfsmount/dummypmap.c b/usr/kinit/nfsmount/dummypmap.c
index 43abe37..481e23b 100644
--- a/usr/kinit/nfsmount/dummypmap.c
+++ b/usr/kinit/nfsmount/dummypmap.c
@@ -39,7 +39,7 @@ struct portmap_reply {
static int bind_portmap(void)
{
- int sock = socket(PF_INET, SOCK_DGRAM, 0);
+ int sock = socket(AF_INET, SOCK_DGRAM, 0);
struct sockaddr_in sin;
if (sock < 0)
diff --git a/usr/kinit/nfsmount/mount.c b/usr/kinit/nfsmount/mount.c
index a55af91..f18cffa 100644
--- a/usr/kinit/nfsmount/mount.c
+++ b/usr/kinit/nfsmount/mount.c
@@ -290,9 +290,9 @@ int n...
2004 Jan 06
1
[PATCH] possible bug in bindresvport
...192", "192.168.1.2:/nfsroot/mango", "/mnt"], [/* 46 vars */]) = 0
gettimeofday({1073419650, 154920}, NULL) = 0
mmap2(NULL, 65536, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 0, 0) = 0x30000000
stat("/mnt", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 3
connect(3, {sa_family=AF_INET, sin_port=htons(111), sin_addr=inet_addr("192.168.1.2")}, 16) = 0
write(3, "\200\0\0<\33\247~r\0\0\0\0\0\0\0\2\0\1\206\240\0\0\0\2"..., 60) = 60
read(3, "\200\0\0\34\33\247~r\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0&q...
2004 Mar 26
1
nmbd dying
...(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40018000
read(9, "# Generated automatically from h"..., 4096) = 154
read(9, "", 4096) = 0
close(9) = 0
munmap(0x40018000, 4096) = 0
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 9
connect(9, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 28) = 0
send(9, "\t\2\1\0\0\1\0\0\0\0\0\0\7ACCTMAX\tborderent\3c"..., 39, 0) = 39
gettimeofday({1080304120, 623860}, NULL) = 0
poll([{fd=9, events=POLLIN, revents=PO...
2009 Jun 01
2
[PATCH viewer] few minor bugfixes
...p;& defined(HAVE_GETHOSTBYNAME)
+#if defined(HAVE_SOCKET) && defined(HAVE_CONNECT) && defined(HAVE_HTONS)
static int
viewer_open_vnc_socket(const char* vnchost, int vncport)
{
int socketfd;
- struct hostent *serv;
struct sockaddr_in serv_addr;
socketfd = socket(PF_INET, 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...
2009 Jun 08
2
[PATCH] few minor bugfixes
...defined(HAVE_CONNECT) && defined(HAVE_HTONS)
static int
viewer_open_vnc_socket(const char* vnchost, int vncport)
{
- int socketfd;
- struct hostent *serv;
- struct sockaddr_in serv_addr;
+ int result, socketfd;
+ char port[10];
+ struct addrinfo* vnc_addr;
- socketfd = socket(PF_INET, SOCK_STREAM, 0);
- if(socketfd < 0){
- return -1;
- }
+ sprintf(port, "%d", vncport);
- serv = gethostbyname(vnchost);
- if(serv == NULL){
+ result = getaddrinfo(vnchost, port, NULL, &vnc_addr);
+ if(result != 0 || vnc_addr == NULL)
return -1;
- }
- serv_a...
2008 Sep 30
1
Broken pipe, x86_64 CentOS 5.2
...quits without giving any error logs.
[root at frodo9 torque-2.3.3]# strace -f pbs_mom
.
.
.
bind(6, {sa_family=AF_INET, sin_port=htons(15002),
sin_addr=inet_addr("0.0.0.0")}, 16) = 0
time(NULL) = 1222785330
listen(6, 512) = 0
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 7
setsockopt(7, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
bind(7, {sa_family=AF_INET, sin_port=htons(15003),
sin_addr=inet_addr("0.0.0.0")}, 16) = 0
time(NULL) = 1222785330
listen(7, 512) = 0
fcntl(5, F_SETLK,...
2006 Feb 05
2
R socket communication
...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: $!";
The PERL server
#! /usr/bin/perl -w
use strict;
use Socket;
my $port = shift || 7890;
my $proto = getprotoby...
2005 Apr 07
1
EPROTONOSUP Problem
...abase is running on Red Hat 9.I am running the
test kit for 100 warehouses with tpw(terminal per
warehouse) value of 80.
I did truss on driver and found that after executing
some transactions an error comes related to
EPROTONOSUP. The particular point where error comes
looks like this-
so_socket(PF_INET, SOCK_STREAM, -4, "", SOV_DEFAULT)
Err#120 EPROTONOSUP .
Above this error the normal behaviour was:
so_socket(PF_INET, SOCK_STREAM, IPPROTO_TCP, "",
SOV_DEFAULT) = 255
I found that this error comes when the protocol is not
supported by the addres family.
Could you please h...
2002 Feb 12
1
socket.c: HAVE_SOCKADDR_LEN misspelt as HAVE_SOCK_SIN_LEN
...Index: socket.c
===================================================================
RCS file: /cvsroot/rsync/socket.c,v
retrieving revision 1.73
diff -u -r1.73 socket.c
--- socket.c 25 Jan 2002 02:13:05 -0000 1.73
+++ socket.c 11 Feb 2002 20:04:33 -0000
@@ -590,7 +590,7 @@
if ((listener = socket(PF_INET, SOCK_STREAM, 0)) == -1) goto failed;
memset(&sock2, 0, sizeof(sock2));
-#ifdef HAVE_SOCK_SIN_LEN
+#ifdef HAVE_SOCKADDR_LEN
sock2.sin_len = sizeof(sock2);
#endif
sock2.sin_family = PF_INET;
--
Jos Backus _/ _/_/_/ Santa Clara, CA...
2008 Jul 07
1
SIGPIPE in assorted apps after "yum update"
...no additional repos, only CentOS and dhcpd works fine on that system.
Since then I have found the problem, or similar problems with a few
more applications. Here is what the tail of an strace of pbs_mom as it
attempts to fork into the background:
listen(5, 512) = 0
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 6
setsockopt(6, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
bind(6, {sa_family=AF_INET, sin_port=htons(15003),
sin_addr=inet_addr("0.0.0.0")}, 16) = 0
listen(6, 512) = 0
fcntl(4, F_SETLK, {type=F_UNLCK, whence=SEEK_SET, start=0, len=0}) = 0
c...
2005 May 11
3
problem with the pro/1000 driver for intel gigabit ethernet card
I encountered a problem with dom0 when rebooting and running an intel
gigabit card using the pro/1000 driver. When the system tries to shut
down I get the following output of an strace command :
.........
17:10:49.063616 socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 3 <0.000029>
17:10:49.063689 ioctl(3, 0x8913, 0xbffffc80) = 0 <0.000018>
17:10:49.063751 ioctl(3, 0x8914, 0xbffffc80) = 0 <535.114722>
17:19:44.178567 close(3) = 0 <0.000026>
17:19:44.178679 exit_group(0) = ?
observe the m...
2004 Dec 28
1
OpenSSH 3.9p1 X11 forwarding
...ocmask(SIG_BLOCK, 0xFFBFF1E0, 0xFFBFF1F0) = 0
19279: 15.5929 sigprocmask(SIG_SETMASK, 0xFFBFF1F0, 0x00000000) = 0
19279: 15.5930 read(6, " {9011 C82F0FE ZBFC8 .DC".., 16384) = 112
19279: 15.5934 stat64("/usr/openwin/bin/xauth", 0xFFBFEFA0) = 0
19279: 15.5938 so_socket(PF_INET6, SOCK_STREAM, IPPROTO_IP, "", 1) = 8
19279: 15.5940 bind(8, 0x00072238, 32, 3) Err#126
EADDRNOTAVAIL
19279: 15.5942 close(8) = 0
19279: 15.5944 so_socket(PF_INET, SOCK_STREAM, IPPROTO_IP, "", 1) = 8
19279: 15.5946...
2009 Dec 17
4
NIS failover
We just updated our configuratiosn to have multiple NIS servers, when we
initiated a test of client failover, we were disapointed.
It seemed that the only way to get a filaover was to /etc/init.d/ypbind restart.
It behaves as indicated in
http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=5084845 using
ypbind-1.17.2-13 on Centos 4.5 / Linux xxxxxxxxxxxx 2.6.9-55.0.12.ELsmp #1 SMP
Fri Nov
2016 Jan 27
2
ctdb, raw sockets and CVE-2015-8543
...e ip address is hosted on. can not release it
and
| common/system_linux.c:344 failed to open raw socket (Invalid argument)
The corresponding parts in ctdb's code look like this:
| s = socket(AF_INET, SOCK_RAW, htons(IPPROTO_RAW));
converting IPPROTO_RAW to 0xff00 (from strace):
| socket(PF_INET, SOCK_RAW, 0xff00 /* IPPROTO_??? */) = -1 EINVAL (Invalid argument)
Removing htons() from both calls seems to fix the issue for us. Is it
possible that the call to htons is just wrong and should be removed?
-- Adi
[1] https://security-tracker.debian.org/tracker/CVE-2015-8543
2009 Jun 10
1
[PATCH] add cmd line option for server vnc port
...hich to connect to on ovirt server
-const int OVIRT_SERVER_PORT = 5900;
-
/* Private thread functions */
static gpointer tunnel_thread(gpointer data);
static gpointer client_server_thread(gpointer data);
@@ -164,7 +161,7 @@ tunnel_thread (gpointer _data)
}
ovirt_server_address.sin_family = PF_INET;
ovirt_server_address.sin_addr.s_addr = ((struct in_addr*)(dns_serv->h_addr))->s_addr; //inet_addr(hostname);
- ovirt_server_address.sin_port = htons(OVIRT_SERVER_PORT);
+ ovirt_server_address.sin_port = htons(ovirt_server_vnc_port);
ovirt_server_len = sizeof(ovirt_server_address);...
2013 Dec 03
0
[PATCH] nfsmount: memset uses sizeof pointer as length
...dex 0628cef..0a7fcf5 100644
--- a/usr/kinit/nfsmount/sunrpc.c
+++ b/usr/kinit/nfsmount/sunrpc.c
@@ -149,7 +149,7 @@ struct client *tcp_client(uint32_t server, uint16_t port, uint32_t flags)
goto bail;
}
- memset(clnt, 0, sizeof(clnt));
+ memset(clnt, 0, sizeof(*clnt));
if ((sock = socket(PF_INET, SOCK_STREAM, IPPROTO_TCP)) == -1) {
perror("socket");
@@ -194,7 +194,7 @@ struct client *udp_client(uint32_t server, uint16_t port, uint32_t flags)
goto bail;
}
- memset(clnt, 0, sizeof(clnt));
+ memset(clnt, 0, sizeof(*clnt));
if ((sock = socket(PF_INET, SOCK_DGRAM, IPPROT...
2013 Dec 03
0
[klibc:master] nfsmount: memset uses sizeof pointer as length
...dex 0628cef..0a7fcf5 100644
--- a/usr/kinit/nfsmount/sunrpc.c
+++ b/usr/kinit/nfsmount/sunrpc.c
@@ -149,7 +149,7 @@ struct client *tcp_client(uint32_t server, uint16_t port, uint32_t flags)
goto bail;
}
- memset(clnt, 0, sizeof(clnt));
+ memset(clnt, 0, sizeof(*clnt));
if ((sock = socket(PF_INET, SOCK_STREAM, IPPROTO_TCP)) == -1) {
perror("socket");
@@ -194,7 +194,7 @@ struct client *udp_client(uint32_t server, uint16_t port, uint32_t flags)
goto bail;
}
- memset(clnt, 0, sizeof(clnt));
+ memset(clnt, 0, sizeof(*clnt));
if ((sock = socket(PF_INET, SOCK_DGRAM, IPPROT...
2004 Aug 09
1
rp_filter and fib_validate_source sequence in KPTD
...unctions are traversed in this
order (from most deeply nested first):
fib_validate_source()
ip_route_input_slow()
ip_route_input()
ip_rcv_finish()
ip_rcv()
It seems that ip_rcv() (in ip_input.c) calls the following, and I simply
do not understand what this means:
return NF_HOOK(PF_INET, NF_IP_PRE_ROUTING, skb, dev, NULL,
ip_rcv_finish);
I''m guessing that NF_IP_PRE_ROUTING (the PREROUTING hooks) are called
before ip_rcv_finish is called, which means that the rp_filter action
doesn''t occur until after the PREROUTING hooks.
Is this accurate?...
2015 Jul 29
2
Bug#793921: tftpd-hpa: IPv6 address cannonization breaks IPv4
...t_pton(AF_INET6, "::ffff:10.0.0.192", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, msg_iov(1)=[{"\0\1pxelinux.0\0netascii\0", 65468}], msg_controllen=40, {cmsg_len=36, cmsg_level=SOL_IPV6, cmsg_type=, ...}, msg_flags=0}, 0) = 22
> > [..]
> > [pid 3757] socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 0
> > [..]
> > [pid 3757] bind(0, {sa_family=AF_INET, sin_port=htons(0), sin_addr=inet_addr("10.0.0.2")}, 16) = 0
> > [pid 3757] connect(0, {sa_family=AF_INET6, sin6_port=htons(34500), inet_pton(AF_INET6, "::ffff:10.0.0.192", &s...
2004 Nov 29
1
Polycom Reboot Script PRI errors!!
...lt;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...