Introduce socklen_t; detect non-local (e.g. broadcast) receive addresses

This commit is contained in:
H. Peter Anvin 2006-10-04 21:54:04 -07:00
parent f3beb3a119
commit 14993bc916
7 changed files with 68 additions and 20 deletions

View file

@ -1,7 +1,6 @@
/* $Id$ */
/* ----------------------------------------------------------------------- *
*
* Copyright 2001 H. Peter Anvin - All Rights Reserved
* Copyright 2001-2006 H. Peter Anvin - All Rights Reserved
*
* This program is free software available under the same license
* as the "OpenBSD" operating system, distributed at
@ -20,5 +19,5 @@
int
myrecvfrom(int s, void *buf, int len, unsigned int flags,
struct sockaddr *from, int *fromlen,
struct sockaddr *from, socklen_t *fromlen,
struct sockaddr_in *myaddr);