search for: udp_client

Displaying 4 results from an estimated 4 matches for "udp_client".

Did you mean: ldap_client
2011 Jul 08
4
[PATCH 0/4] usr/kinit checkpatch
Various coding style fixes checkpatch warns about. The goal is not to be 100% checkpatch compliant, but to have more consistent coding style. As this is a trivial patch serie, will land in 24 hours in klibc git, unless of course ml review hits a bugger. Checked with size(3) that the generated kinit, fstype, ipconfig and nfsmount are the same. maximilian attems (4): [klibc] ipconfig: reduce
2010 Feb 23
0
[PATCH 2/3] nfsmount: s/PF_INET/AF_INET/
...int32_t server, uint16_t port, uint32_t flags) memset(clnt, 0, sizeof(clnt)); - if ((sock = socket(PF_INET, SOCK_STREAM, IPPROTO_TCP)) == -1) { + if ((sock = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP)) == -1) { perror("socket"); goto bail; } @@ -197,7 +197,7 @@ struct client *udp_client(uint32_t server, uint16_t port, uint32_t flags) memset(clnt, 0, sizeof(clnt)); - if ((sock = socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP)) == -1) { + if ((sock = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP)) == -1) { perror("socket"); goto bail; } -- 1.6.6.1 --r5Pyd7+fXNt84Ff3 Co...
2013 Dec 03
0
[PATCH] nfsmount: memset uses sizeof pointer as length
...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, IPPROTO_UDP)) == -1) { perror("socket"); -- 1.8.3.2
2013 Dec 03
0
[klibc:master] nfsmount: memset uses sizeof pointer as length
...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, IPPROTO_UDP)) == -1) { perror("socket");