Re: [PATCH] udp.7: Add missing #include directive.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 07/26/13 16:58, Benjamin Poirier wrote:
> Using the UDP_CORK socket option documented in udp.7 requires including
> <netinet/udp.h>.

Thanks, Benjamin. Applied.

Cheers,

Michael


> Signed-off-by: Benjamin Poirier <bpoirier@xxxxxxx>
> ---
> 
> Here's a small test program:
> 
> <<<<<<<< minicork.c
> #include <netinet/in.h>
> #include <netinet/ip.h>
> //#include <netinet/udp.h>
> 
> 
> int main()
> {
> 	int fd, option;
> 
> 	fd = socket(AF_INET, SOCK_DGRAM, 0);
> 
> 	option = 1;
> 	setsockopt(fd, IPPROTO_UDP, UDP_CORK, &option, sizeof(option));
> 
> 	return 0;
> }
>>>>>>>>>
> 
> ---
>  man7/udp.7 |    2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/man7/udp.7 b/man7/udp.7
> index 313c78d..e2e723a 100644
> --- a/man7/udp.7
> +++ b/man7/udp.7
> @@ -16,6 +16,8 @@ udp \- User Datagram Protocol for IPv4
>  .B #include <sys/socket.h>
>  .br
>  .B #include <netinet/in.h>
> +.br
> +.B #include <netinet/udp.h>
>  .sp
>  .B udp_socket = socket(AF_INET, SOCK_DGRAM, 0);
>  .SH DESCRIPTION
> 

--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux