search for: ipproto_tcp

Displaying 20 results from an estimated 92 matches for "ipproto_tcp".

Did you mean: ipproto_ip
2010 Feb 23
0
[PATCH 2/3] nfsmount: s/PF_INET/AF_INET/
...sr/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 nfs_mount(const char *pathname, const char *hostname, mounted = 1; if (data->flags & NFS_MOUNT_TCP) { - sock = socket(PF_INET, SOCK_STREAM, IPPROTO_TCP); + sock = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); } else { - sock = socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP); + sock = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); } if (sock == -1) { diff --git a/usr/kinit/nfsmount/sunrpc.c b/usr/kinit/nfsmount/sunrpc.c index 6607cf7..6fb81a1 100644 --...
2004 Jan 06
1
[PATCH] possible bug in bindresvport
...68.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"..., 32) = 32 close(3)...
2005 Sep 13
1
Solaris build failed
dovecot-v1.0-alpha build failed for Solaris 11 (OpenSolaris Nevada). The problematic line is in socket.c line 228. The fix should be to change SOL_TCP to IPPROTO_TCP found in netinet/in.h. This change should work universally on all platforms. Gary
1999 Sep 30
1
A little utility for checking socket settings
...uot;TCP_NODELAY, send even tiny packets"}, { 0, NULL} }; if ((getuid()) != 0) { (void) fprintf(stderr,"getsocketopts: you must be root first.\n"); (void) exit(1); } if ((s = socket(AF_INET,SOCK_STREAM,IPPROTO_TCP)) == -1) { perror("failed in socket call,"); (void) exit(1); } query(s, SOL_SOCKET, so_option); query(s, IPPROTO_TCP, tcp_option); (void) close(s); (void) exit(0); } query(int s, int type, OPTION *p) { int v...
2014 Oct 11
0
[PATCH net-next RFC 3/3] virtio-net: conditionally enable tx interrupt
...h well, yet another packet flow dissector :) If most packets were caught by your implementation, you could use it for fast patj and fallback to skb_flow_dissect() for encapsulated traffic. struct flow_keys keys; if (!skb_flow_dissect(skb, &keys)) return false; if (keys.ip_proto != IPPROTO_TCP) return false; then check __skb_get_poff() how to get th, and check if there is some payload... > + if ((skb->protocol == htons(ETH_P_IP)) && > + hdr.ipv4->protocol == IPPROTO_TCP) { > + payload_len = ntohs(hdr.ipv4->tot_len) - hdr.ipv4->ihl * 4 - > +...
2004 Mar 03
2
ie6 and outlook
...Everything else works like a charm. 2. With Outlook 2000 I can not connect to an Exchange server. I get immediately the message that the servers name can't be resolved. For sure it is resolvable, both by nameserver and /etc/hosts. On the console it says: fixme:winsock:convert_sockopt Unknown IPPROTO_TCP optname 0x8 err:winsock:WS_setsockopt Invalid level (6) or optname (8) This only happens if this server is available. If I give a resolvable but non reachable server name in the connection dialog of outlook, I also get the console output but Outlook seems to try for a long time to get a connection...
2019 Dec 03
2
CentOS 7 as a guest VM
Seems like its the single byte thing... I tried adding: int flag = 1; if(setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &flag, sizeof(flag)) < 0) but did not have any effect. I also did the echo 1 > /proc/sys/net/ipv4/tcp_low_latency seems to have no effect also. Jerry
2003 Oct 26
1
getsockopt TCP_NODELAY: Socket operation on non-socket
...==================================================== RCS file: /cvs/openssh/misc.c,v retrieving revision 1.37 diff -u -p -r1.37 misc.c --- misc.c 22 Sep 2003 11:04:23 -0000 1.37 +++ misc.c 26 Oct 2003 10:48:35 -0000 @@ -97,7 +97,7 @@ set_nodelay(int fd) optlen = sizeof opt; if (getsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &opt, &optlen) == -1) { - error("getsockopt TCP_NODELAY: %.100s", strerror(errno)); + debug("getsockopt TCP_NODELAY: %.100s", strerror(errno)); return; } if (opt == 1) { -- dwmw2
2005 Apr 07
1
EPROTONOSUP Problem
...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 help me out on this about how to solve this one as how after executing for some time the protocol is not supported at all. Thanks & Regards uma ________...
2019 Jun 06
0
[nbdkit PATCH 1/2] server: Add support for corking
...lose (struct connection *); int @@ -288,6 +291,15 @@ new_connection (int sockin, int sockout, int nworkers) conn->send = raw_send; conn->close = raw_close; + /* Install a cork handler, but only if corking works */ +#ifdef TCP_CORK + { + int opt = 0; + if (setsockopt (sockout, IPPROTO_TCP, TCP_CORK, &opt, sizeof opt) == 0) + conn->cork = raw_cork; + } +#endif + return conn; } @@ -344,6 +356,19 @@ raw_send (struct connection *conn, const void *vbuf, size_t len) return 0; } +/* Change the cork status to batch a group of send calls, and either succeed + * complet...
2004 May 04
2
rsync 2.6.2 --daemon Problem
Hi, I've a problem with rsync 2.6.2 and the daemon. I've installed it precisly as I did with 2.6.0 (I've tried before with 2.6.1 and was having the same problems as now with 2.6.2). When I try to a rsync --daemon command the rsync offcourse finishes, but in the log file it says 2004/05/04 21:15:10 [22369] rsyncd version 2.6.2 starting, listening on port 873 2004/05/04 21:15:10
2013 Nov 28
4
[PATCH net] xen-netback: fix fragment detection in checksum setup
...EN; maybe_pull_tail(skb, header_size); + if (ntohs(iph->frag_off) & 0x3fff) + fragment = true; + off = iph->ihl * 4; + if (fragment) { + if (net_ratelimit()) + netdev_err(vif->dev, "Packet is a fragment!\n"); + goto out; + } + switch (iph->protocol) { case IPPROTO_TCP: if (!skb_partial_csum_set(skb, off, @@ -1237,6 +1249,7 @@ static int checksum_setup_ipv6(struct xenvif *vif, struct sk_buff *skb, bool fragment; bool done; + fragment = false; done = false; off = sizeof(struct ipv6hdr); @@ -1275,9 +1288,21 @@ static int checksum_setup_ipv6(struct xe...
2019 Jun 06
4
[nbdkit PATCH 0/2] Reduce network overhead with corking
Slightly RFC, as I need more time to investigate why Unix sockets appeared to degrade with this patch. But as TCP sockets (over loopback to localhost) and TLS sessions (regardless of underlying Unix or TCP) both showed improvements, this looks like a worthwhile series. Eric Blake (2): server: Add support for corking server: Cork around grouped transmission send()s server/internal.h | 3
2004 Feb 26
1
ESFQ Modification
...phdr *iph = skb->nh.iph; h = iph->daddr; hs = iph->saddr; + nfm = skb -> nfmark; h2 = hs^iph->protocol; if (!(iph->frag_off&htons(IP_MF|IP_OFFSET)) && (iph->protocol == IPPROTO_TCP || @@ -137,6 +139,7 @@ struct ipv6hdr *iph = skb->nh.ipv6h; h = iph->daddr.s6_addr32[3]; hs = iph->saddr.s6_addr32[3]; + nfm = skb->nfmark; h2 = hs^iph->nexthdr; if (iph->nexthdr == IPPRO...
2018 Jun 15
1
[PATCH] v2v: rhv-upload: Disable Nagle algorithm
...sing TCP_NO_DELAY avoids delays when sending small payload, such as + ovirt PATCH requests. + + This issue was fixed in python 3.5, see: + https://bugs.python.org/issue23302 + """ + _HTTPSConnection.connect(self) + self.sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) + def config(key, value): global params -- 2.17.1
2008 Mar 03
1
Unable open raw socket in CentOS 5 - SE Linux and kernel capability interaction?
...? Thanks S Source file #include <stdio.h> #include <unistd.h> #include <errno.h> #include <string.h> #include <sys/socket.h> #include <sys/types.h> #include <sys/prctl.h> #include <netinet/in.h> int main(void) { int fd = socket(PF_INET, SOCK_RAW, IPPROTO_TCP); if (-1 == fd) { printf("Failed to open raw socket: %d=%s\n", errno, strerror(errno)); } else { printf("Socket opened successfully\n"); close(fd); } return 0; } SElinux .te file policy_module(rawsox,1.0.0) ######################################## # Declarations...
2014 Feb 10
0
[PATCH] Basic SCTP support for OpenSSH client and server
...#include <errno.h> @@ -134,25 +137,42 @@ ssh_gai_strerror(int gaierr) } /* disable nagle on socket */ -void -set_nodelay(int fd) +static int +set_nodelay_proto(int fd, int proto, int optno, const char *pname) { int opt; socklen_t optlen; optlen = sizeof opt; - if (getsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &opt, &optlen) == -1) { - debug("getsockopt TCP_NODELAY: %.100s", strerror(errno)); - return; + if (getsockopt(fd, proto, optno, &opt, &optlen) == -1) { + debug("getsockopt %s_NODELAY: %.100s", pname, strerror(errno)); + return -1; } if (opt...
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
2011 Nov 12
5
[Bug 1950] New: sshd tries to bind over and over to ::1 for several seconds
...49 getsockname(6, {sa_family=AF_INET6, sin6_port=htons(37600), inet_pton(AF_INET6, "::ffff:127.0.100.1", &sin6_addr), sin6_flowinfo=0, sin6_scope _id=0}, [28]) = 0 <0.000015> 28636 10:33:49 close(6) = 0 <0.000013> 28636 10:33:49 socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 6 <0.000020> 28636 10:33:49 setsockopt(6, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0 <0.000015> 28636 10:33:49 bind(6, {sa_family=AF_INET, sin_port=htons(6493), sin_addr=inet_addr("127.0.0.1")}, 16) = 0 <0.000012> 28636 10:33:49 socket(PF_INET6, SOCK_STREAM, IPPROTO_TCP) =...
2012 Jul 24
2
Broadcom NetXtreme bcm5720 in the 9.1 beta
Team I have a Dell PowerEdge R720xd, with the Broadcom NetXtreme bcm5720. I found the following thread: http://forums.freebsd.org/showthread.php?t=31769 I find I am unable to use the NIC's (there are 4 on the server). When we put a cable into it we get a "watchdog timeout -- resetting" error, and the machine will pause for 5 or so seconds. IP may or may not come up randomly.