Commit Graph

18 Commits

Author SHA1 Message Date
christos fb5ec6aa33 Use cloning /dev/bpf 2004-12-01 23:13:09 +00:00
dsl e2f49bd9e2 Add (unsigned char) cast to ctype functions 2004-10-30 15:15:37 +00:00
darrenr 221fa57241 With recent changes to BPF, pushing the default buffer size to 1MB, running
a bunch of small daemons that seem small packet flows can easily chew up
significant kernel memory (each BPF device opened takes 2*buffersize of
wired memory.)  In each of these applications, add code to set the buffer
size to 32k before setting the interface.
2004-04-10 17:53:05 +00:00
itojun 7f5c6fbfb1 use strlcpy 2003-08-19 22:22:27 +00:00
agc 326b2259b7 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22366, verified by myself.
2003-08-07 11:25:11 +00:00
itojun 7bb0ef551c use bounded string op 2003-07-13 12:18:55 +00:00
itojun d25769c013 assume presense of getifaddrs(3). 2003-05-15 14:50:02 +00:00
lukem 9b7718e15b set *errmsg to errbuf, preventing coredump if no interfaces are up 2001-02-05 02:37:34 +00:00
itojun e9c5139f22 use getifaddrs, not SIOCGIFCONF. (should use pcap_lookupdev instead...) 2000-04-13 08:52:44 +00:00
lukem dd30ff553b use strchr/strrchr/memset/memmove instead of index/rindex/bzero/bcopy 1997-10-18 11:23:03 +00:00
thorpej 4902da1c96 Fix compiler warnings, build with WARNS. 1997-07-28 05:39:16 +00:00
thorpej 509e392ad5 Remove the SIOCADDMULTI ioctl; it's not meant for user level code. Just
always set promiscuous mode on the interface.
1997-01-27 22:51:50 +00:00
thorpej 507ba8247c Kill some gratuitous byte-swapping calls, which broke rbootd on the i386
in some cases.  No functional change on big-endian systems.  From
Scott Reynolds <scottr@plexus.com>.
1995-11-14 08:41:42 +00:00
thorpej 31903d0eaa Be safer with types. From Scott Reynolds <scottr@plexus.com> 1995-10-06 05:12:12 +00:00
thorpej d871ec0593 Changes from Scott Reynolds <scottr@plexus.com> to make this go on
little-endian machines (like the i386).
1995-09-12 07:13:06 +00:00
thorpej 6799ca3972 Use new-style RCS ids. 1995-08-21 17:05:08 +00:00
brezak c26eaebf4f rbootd for booting HP workstations from 4.4BSD/Utah. 1994-01-11 16:41:19 +00:00
brezak e05cab76da Original version from 4.4BSD/Utah. 1994-01-11 15:43:38 +00:00