aboutsummaryrefslogtreecommitdiff
path: root/lib/libnetgraph/sock.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove $FreeBSD$: one-line .c patternWarner Losh2023-08-231-2/+0
| | | | | | | Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/ Similar commit in main: (cherry picked from commit 1d386b48a555)
* make sure that rbuf is aligned by making a union w/ the structure weJohn-Mark Gurney2014-01-071-4/+7
| | | | | | | | | | | need to access... access the struct through the union too... PR: 185165 Submitted by: Guy Yur MFC after: 1 week Notes: svn path=/head/; revision=260418
* Fix socket calls on error post-r243965.Kevin Lo2012-12-211-2/+2
| | | | | | | Submitted by: Garrett Cooper Notes: svn path=/head/; revision=244538
* Include sys/socket.h to know about sa_family_t.Gleb Smirnoff2006-10-171-0/+1
| | | | Notes: svn path=/head/; revision=163469
* Make this compile with GCC4 by fixing a few signedness related warnings.Maxime Henrion2005-04-261-1/+1
| | | | | | | Reviewed by: md5(1) Notes: svn path=/head/; revision=145546
* Prefer C99's __func__ over GCC's __FUNCTION__.Stefan Farfeleder2004-09-221-1/+1
| | | | Notes: svn path=/head/; revision=135576
* - Added three new interfaces, NgAllocRecvMsg(), NgAllocRecvAsciiMsg(),Ruslan Ermilov2004-01-271-0/+18
| | | | | | | | | | | | | | and NgAllocRecvData(), that dynamically allocate buffer for a binary message, an ascii message, and a data packet, respectively. The size of the allocated buffer is equal to the socket's receive buffer size to guarantee that a message or a data packet is not truncated. - Get rid of the static size buffer in NgSendAsciiMsg(). OK'ed by: archie, julian Notes: svn path=/head/; revision=125113
* Use the new defines that include the trailing '\0' in the code.Hartmut Brandt2003-11-141-13/+13
| | | | | | | | | | Replace occurences of the magic constant 2 with an offsetof macro call that computes the size of the leading members of the sockaddr. Use strlcpy instead of sprintf where appropriate. Document the new changes in the man page. Notes: svn path=/head/; revision=122649
* Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,Jens Schweikhardt2003-01-011-1/+1
| | | | | | | especially in troff files. Notes: svn path=/head/; revision=108533
* Add __FBSDID()s to libnetgraphMatthew Dillon2001-09-301-2/+3
| | | | Notes: svn path=/head/; revision=84215
* Have NgMkSockNode() load the socket node type KLD if it's notArchie Cobbs2000-01-281-1/+18
| | | | | | | already loaded (indicated by EPROTONOSUPPORT from socket(2)). Notes: svn path=/head/; revision=56708
* Whistle's Netgraph link-layer (sometimes more) networking infrastructure.Julian Elischer1999-10-211-0/+264
Been in production for 3 years now. Gives Instant Frame relay to if_sr and if_ar drivers, and PPPOE support soon. See: ftp://ftp.whistle.com/pub/archie/netgraph/index.html for on-line manual pages. Reviewed by: Doug Rabson (dfr@freebsd.org) Obtained from: Whistle CVS tree Notes: svn path=/head/; revision=52419