mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-03 09:00:21 +00:00
40e7fc1a20
o Fixed `nfrontp' calculations in output_data(). If `remaining' is initially zero, it was possible for `nfrontp' to be decremented. Noticed by: dillon o Replaced leaking writenet() with output_datalen(): : * writenet : * : * Just a handy little function to write a bit of raw data to the net. : * It will force a transmit of the buffer if necessary : * : * arguments : * ptr - A pointer to a character string to write : * len - How many bytes to write : */ : void : writenet(ptr, len) : register unsigned char *ptr; : register int len; : { : /* flush buffer if no room for new data) */ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ : if ((&netobuf[BUFSIZ] - nfrontp) < len) { : /* if this fails, don't worry, buffer is a little big */ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ : netflush(); : } : : memmove(nfrontp, ptr, len); : nfrontp += len; : : } /* end of writenet */ What an irony! :-) o Optimized output_datalen() a bit. |
||
---|---|---|
.. | ||
amd | ||
awk | ||
bc | ||
bind | ||
binutils | ||
bzip2 | ||
com_err | ||
cpio | ||
cvs | ||
diff | ||
file | ||
gcc | ||
gdb | ||
gperf | ||
groff | ||
ipfilter | ||
isc-dhcp | ||
less | ||
libf2c | ||
libgmp | ||
libio | ||
libobjc | ||
libpam | ||
libpcap | ||
libreadline | ||
libstdc++ | ||
lukemftp | ||
lukemftpd | ||
ncurses | ||
ntp | ||
nvi | ||
opie | ||
patch | ||
perl5 | ||
pnpinfo | ||
sendmail | ||
tcp_wrappers | ||
tcpdump | ||
tcsh | ||
telnet | ||
texinfo | ||
top | ||
traceroute |