Commit Graph

1304 Commits

Author SHA1 Message Date
christos
f987814949 include <types.h> 2007-01-30 18:12:48 +00:00
christos
03f10a71aa provide non-atomic versions so that things compile for now. 2007-01-30 00:46:52 +00:00
christos
fd07b4b277 handle resolv_mt.h 2007-01-27 23:02:37 +00:00
christos
d7aeceb511 deal with base64.c 2007-01-27 22:28:22 +00:00
christos
4455b59ff4 Use __inline consistently so that we avoid unused warnings. 2007-01-27 21:30:22 +00:00
christos
4674124bb1 resolve conflicts 2007-01-27 21:24:09 +00:00
christos
c1a4ad93e3 Import bind-9.4.0-rc2 from ftp.isc.org 2007-01-27 21:02:43 +00:00
kardel
24e8b498bd track NTP bug 768: opening of bcast if, misleading error message 2007-01-27 09:02:38 +00:00
kardel
8acf6049c0 Use the portable version to declare the type of the length argument
for the recv*() functions. Fix queued with the NTP project.
2007-01-21 07:59:31 +00:00
kardel
54a07e0f01 PR/25482
reinstate NTP html pages (sans gif's/img tags).
The important man pages are now generated by autogen and
thus match again the code again.
2007-01-20 16:50:29 +00:00
kardel
9e57eb45fe track ntp bug #760 - support DYNAMIC flags in async resolver 2007-01-13 11:41:05 +00:00
agc
b734ab10f3 Use the proper tracing functionality 2007-01-11 22:59:53 +00:00
agc
766d3d66b8 Get rid of some magic constants. 2007-01-11 19:57:23 +00:00
agc
977a3071b2 Explain what's happening when a target is not exporting any iSCSI
targets to the initiator rather than a cryptic message about a portal
group tag not being present.
2007-01-11 19:14:32 +00:00
agc
9f740696e2 Pass the target hostname to the iscsi_sock_connect() call, so that it's
available for getaddrinfo.

Use the correct IQN name for the NetBSD iSCSI initiator.
2007-01-11 18:56:57 +00:00
agc
0b68869633 Use getaddrinfo(3) to get the required information about the host. Use this
explicitly in iscsi_socket_connect(), and ignore the port argument to this
function for just now.
2007-01-11 18:54:58 +00:00
agc
524517b593 Make the code a bit smarter, and dynamically allocate the buffers that are
used to cache the data for the read and write operations. This will reduce the
resident set size down from 80+ MB to something much more manageable.
2007-01-10 22:40:31 +00:00
agc
f980d4284c Move away from magic constants for the SCSI return codes.
Give the appropriate size bound when filling in data for the extended
INQUIRY command.
2007-01-10 18:04:31 +00:00
agc
b0ab3a15b9 Return the correct length of the T10 identifier and uuid in the VPD page 83
response.

Found by the embryonic NetBSD initiator.
2007-01-09 19:08:08 +00:00
agc
e1d88c5d14 read the values of max_lba and blocklen, and byte swap them if necessary,
before printing out their values.
2007-01-08 22:05:47 +00:00
agc
c0040e78f5 various enhancements to make this compile with WARNS=4 2007-01-08 21:46:00 +00:00
agc
eaf1b66230 Export the function to split a config file entry up into parts,
conffile_split(), and make it work in the presence of a NULL conffile
descriptor (i.e. from stdin).
2007-01-08 21:44:47 +00:00
kardel
dbbbd5d806 import NTP 4.2.4 2007-01-06 19:45:21 +00:00
kardel
d1d4526d02 Import ntp 4.2.4 2007-01-06 16:04:26 +00:00
alc
980fc49cd5 CID-3325: don't leak `fd'
Also, check for the return value of malloc(3)

ok christos@
2006-12-27 18:13:53 +00:00
alc
b68a85a32f CID-4282: dies if we can't allocate memory for `peer->hba'
CID-2488: `t' is uninitialized
2006-12-26 00:08:44 +00:00
alc
0fd99769e3 CID-3224: check the return value of strtok() before use
ok christos@
2006-12-25 23:55:47 +00:00
reed
93b5694767 Remove () from end of the BIND 9 ARM as it is not a man page.
(I am not committing the fix to dist/bind/bin/named/named.conf.docbook
as we don't use that docbook file.)
2006-12-14 02:17:14 +00:00
christos
7b1864c5ec fix byte-swapping code. 2006-12-11 22:05:38 +00:00
agc
a43651f235 Modify netmask calculation so that /0 is fast-tracked, and so that network
addresses with bit 31 set are processed properly.

Fix from Hiroshi Nakamoto in PR 34578.

	[22:09:17] agc@inspiron1300 ...dist/iscsi/src 26 > ./n 10.4/16 10.4.0.29 10.4/16 10.5.0.29 10.4/0 10.4.0.19 10.4 10.4.0.19 10.4.3/8 10.4.3.7 10.4.3/24 10.4.3.7
	addr 10.4.0.29 00000a04, mask 10.4.0.0 00000a04, slash 16
	mask 10.4/16 matches addr 10.4.0.29

	addr 10.5.0.29 00000a05, mask 10.4.0.0 00000a04, slash 16
	No match for mask 10.4/16 from addr 10.5.0.29

	mask 10.4/0 matches addr 10.4.0.19

	addr 10.4.0.19 0a040013, mask 10.4.0.0 0a040000, slash 32
	No match for mask 10.4 from addr 10.4.0.19

	addr 10.4.3.7 0000000a, mask 10.4.3.0 0000000a, slash 8
	mask 10.4.3/8 matches addr 10.4.3.7

	addr 10.4.3.7 000a0403, mask 10.4.3.0 000a0403, slash 24
	mask 10.4.3/24 matches addr 10.4.3.7

	[22:09:20] agc@inspiron1300 ...dist/iscsi/src 27 > ./n any 192.168.0.1
	mask any matches addr 192.168.0.1
2006-11-27 22:24:27 +00:00
christos
c0179c282a spell precede; from Zafer 2006-11-25 16:48:31 +00:00
martin
be008341cd Hopping through a void* is not enough to get rid of alignment requirements.
Do a memcpy to a properly aligned local variable instead.
2006-11-23 13:07:17 +00:00
christos
83293ad752 back to casting to long since we think that the openssl version dropping the
'L' suffix was an accident.
2006-11-14 21:54:24 +00:00
christos
65811b35f5 openssl changed its version number from long to int; compensate. 2006-11-14 19:23:47 +00:00
martin
9013d7c51c Remove a strange #if that broke libmagic for most 64 bit archs.
OK'd by christos.
2006-11-14 14:12:24 +00:00
dogcow
499ac5cbee Looks like OpenSSL now uses an int instead of a long for its version
number (!?), so explicitly cast to long in case they change it back.
2006-11-14 02:41:40 +00:00
christos
5b239d0be1 PR/35039: jklowden: Fix example to include -i or -p for ipf or pf. 2006-11-12 06:24:08 +00:00
apb
a45cd5c0e1 In the description of the -y option, add a pointer to the -L option. 2006-11-11 10:36:56 +00:00
christos
c9f5e8dae9 don't use a variable array on the stack for a stupid reason. 2006-11-09 20:12:29 +00:00
kardel
9a3db19511 track NTP bug 734: setsockopt(..., IP_MULTICAST_IF, ...) fails on 64 bit platforms 2006-11-06 12:19:30 +00:00
martin
956703a5a2 Patch from Christos Zoulas:
rework syslog handling to fix PR 33926.
2006-11-05 09:16:20 +00:00
pooka
1231a9a93e renamed to bflt in upstream
keen-eyed source-changes reader was Jed Davis
2006-11-03 10:10:39 +00:00
dogcow
3429d8a242 Sprinkle llx -> PRIx64 around; fixes compilation on 64 bit platforms. 2006-11-01 00:33:40 +00:00
pooka
91e9593f57 file 4.18 last-minute conflix 2006-10-31 21:50:54 +00:00
pooka
26e338dcb4 readd winzip 2006-10-31 21:47:24 +00:00
pooka
2a4995fe7b this is file 4.18 already, bump patchlevel 2006-10-31 21:39:08 +00:00
pooka
74d6dfb485 errno is in 2 2006-10-31 21:17:15 +00:00
pooka
910040d09f welcome to file 4.18. have a nice day. 2006-10-31 21:16:23 +00:00
pooka
0968f96e37 file 4.18
changes since 4.16: bugfixes, magic improvements, other minor improvements
2006-10-31 20:34:42 +00:00
christos
336eaa9131 comment out impossible code. 2006-10-24 20:45:33 +00:00