/openbsd-current/bin/md5/ |
H A D | Makefile | 5 MAN= cksum.1 md5.1 9 ${BINDIR}/md5 ${BINDIR}/cksum
|
/openbsd-current/gnu/usr.bin/gcc/gcc/testsuite/gcc.dg/ |
H A D | duff-2.c | 22 cksum (const unsigned char *src, unsigned long size) function 55 ck = cksum ((const unsigned char *) testpat, sizeof (testpat));
|
/openbsd-current/sys/arch/alpha/stand/ |
H A D | bbinfo.h | 40 int32_t cksum; member in struct:bbinfo 53 u_int64_t cksum; member in struct:netbbinfo
|
H A D | bootxx.c | 80 int32_t cksum, *int32p; local 102 for (i = 0, cksum = 0; i < n; i++) 103 cksum += *int32p++; 104 if (cksum != 0) {
|
H A D | installboot.c | 329 int32_t cksum; local 358 cksum = 0; 361 cksum += ((int32_t *)bbinfop)[i]; 362 bbinfop->cksum = -cksum; 473 cksum = 0; 476 cksum += ((int32_t *)bbinfop)[i]; 477 bbinfop->cksum = -cksum;
|
/openbsd-current/regress/bin/md5/ |
H A D | Makefile | 3 REGRESS_TARGETS=cksum md5 sha1 sha224 sha256 sha384 sha512 md5_string_vs_files 6 cksum: 7 cksum -x | cmp -s ${.CURDIR}/testsuite.cksum /dev/stdin 16 cksum -a sha224 -x | cmp -s ${.CURDIR}/testsuite.sha224 /dev/stdin 22 cksum -a sha384 -x | cmp -s ${.CURDIR}/testsuite.sha384 /dev/stdin
|
/openbsd-current/regress/sys/netinet6/rip6cksum/ |
H A D | sendrecv.py | 46 cksum = in6_chksum(255, ip, payload) variable 47 print("calculated checksum is", cksum) 48 payload = payload[:ckoff] + pack("!H", cksum) + payload[ckoff+2:] 82 cksum = in6_chksum(255, res, res.payload.load) variable 83 print("received checksum is", cksum) 84 if ckoff is not None and cksum != 0: 85 print("received invalid checksum", cksum)
|
H A D | Makefile | 30 REGRESS_TARGETS += run-no-cksum 31 run-no-cksum: 36 REGRESS_TARGETS += run-bad-cksum 37 run-bad-cksum: 42 REGRESS_TARGETS += run-disable-cksum 43 run-disable-cksum:
|
/openbsd-current/usr.sbin/tcpdump/ |
H A D | print-isoclns.c | 124 u_char cksum[2]; member in struct:esis_hdr 133 u_char cksum[2]; local 179 off[0] = eh->cksum[0]; 180 off[1] = eh->cksum[1]; 181 if (vflag && osi_cksum(p, li, eh->cksum, cksum, off)) { 182 printf(" bad cksum (got %02x%02x want %02x%02x)", 183 eh->cksum[1], eh->cksum[0], cksum[ 295 osi_cksum(const u_char *p, u_int len, const u_char *toff, u_char *cksum, u_char *off) argument [all...] |
H A D | ipx.h | 18 u_short cksum; /* Checksum */ member in struct:ipxHdr
|
H A D | print-udp.c | 328 uint32_t cksum = 0; local 344 cksum = in_cksum_add(&ip6->ip6_src, 345 sizeof(ip6->ip6_src), cksum); 346 cksum = in_cksum_add(&ip6->ip6_dst, 347 sizeof(ip6->ip6_dst), cksum); 354 cksum = in_cksum_add(&ip->ip_src, 355 sizeof(ip->ip_src), cksum); 356 cksum = in_cksum_add(&ip->ip_dst, 357 sizeof(ip->ip_dst), cksum); 398 cksum [all...] |
/openbsd-current/regress/sys/net/pf_fragment/ |
H A D | ping6_cksum.py | 13 echocksum=IPv6(bytes(p.payload)).payload.cksum 19 outercksum=a.payload.payload.cksum 24 innercksum=q.payload.cksum
|
H A D | udp6_cksum.py | 22 outercksum=a.payload.payload.cksum
|
/openbsd-current/gnu/usr.bin/perl/cpan/CPAN/lib/CPAN/ |
H A D | Author.pm | 187 my($cksum); 194 $cksum = $compmt->reval($eval); 206 for $f (sort keys %$cksum) { 207 if (exists $cksum->{$f}{isdir}) { 221 ($cksum->{$f}{"size"}||0), 222 $cksum->{$f}{"mtime"}||"---",
|
/openbsd-current/sbin/atactl/ |
H A D | atasmart.h | 90 u_int8_t cksum; /* Data structure checksum */ member in struct:smart_read 106 u_int8_t cksum; /* Data structure checksum */ member in struct:smart_threshold 170 u_int8_t cksum; member in struct:smart_log_sum 180 u_int8_t cksum; member in struct:smart_log_comp 204 u_int8_t cksum; member in struct:smart_log_self
|
/openbsd-current/sys/arch/i386/stand/libsa/ |
H A D | pxe.c | 314 u_int8_t cksum, *ucp; local 337 for (i = 0, ucp = (u_int8_t *)cp, cksum = 0; 339 cksum += ucp[i]; 340 if (cksum != 0) { 341 printf("\npxe_init: bad cksum (0x%x) " 342 "for PXENV+ at 0x%lx\n", cksum, 354 for (i = 0, ucp = (u_int8_t *)cp, cksum = 0; 356 cksum += ucp[i]; 357 if (cksum != 0) { 358 printf("pxe_init: bad cksum ( [all...] |
/openbsd-current/sys/arch/amd64/stand/libsa/ |
H A D | pxe.c | 314 u_int8_t cksum, *ucp; local 337 for (i = 0, ucp = (u_int8_t *)cp, cksum = 0; 339 cksum += ucp[i]; 340 if (cksum != 0) { 341 printf("\npxe_init: bad cksum (0x%x) " 342 "for PXENV+ at 0x%lx\n", cksum, 354 for (i = 0, ucp = (u_int8_t *)cp, cksum = 0; 356 cksum += ucp[i]; 357 if (cksum != 0) { 358 printf("pxe_init: bad cksum ( [all...] |
/openbsd-current/sys/dev/ic/ |
H A D | lemac.c | 195 int word_off, cksum; local 199 cksum = 0; 208 cksum += *ep++; 210 cksum += *ep++; 229 return (cksum % 256); 350 int cksum, rom_cksum; local 380 cksum = 0; 389 cksum = *(u_short *)&hwaddr[0]; 391 cksum = ((u_short)hwaddr[1] << 8) | (u_short)hwaddr[0]; 396 cksum * [all...] |
/openbsd-current/sys/arch/luna88k/luna88k/ |
H A D | disksubr.c | 66 * cksum 2 2 247 u_short cksum = 0, *sp1, *sp2; local 253 cksum ^= *sp1++; 254 if (cksum != 0) 376 u_short cksum, *sp1, *sp2; local 432 sl->sl_cksum = cksum = 0; 434 cksum ^= *sp1++; 435 sl->sl_cksum = cksum;
|
/openbsd-current/games/adventure/ |
H A D | save.c | 156 long sum, cksum; local 177 cksum = crc(p->address, p->width); 178 if (sum != cksum) /* Tsk tsk */
|
/openbsd-current/sys/arch/luna88k/stand/boot/ |
H A D | ufs_disksubr.c | 122 u_short cksum = 0, *sp1, *sp2; local 146 cksum ^= *sp1++; 147 if (cksum != 0)
|
/openbsd-current/regress/sys/netinet6/frag6/ |
H A D | frag6_refrag.py | 20 request_cksum=ICMPv6Unknown(bytes(packet.payload)).cksum 21 print("request cksum=%#x" % (request_cksum)) 57 reply_cksum=a.payload.payload.payload.cksum 58 print("reply cksum=%#x" % (reply_cksum)) 62 print("CHECKSUM ERROR diff cksum=%#x" % (diff_cksum))
|
/openbsd-current/usr.sbin/dhcrelay6/ |
H A D | packet.c | 169 uint16_t ocksum, cksum; local 216 cksum = wrapsum( 224 if (ocksum != cksum) { 226 ocksum, cksum);
|
/openbsd-current/usr.sbin/mtree/ |
H A D | mtree.h | 52 u_int32_t cksum; /* check sum */ member in struct:_node
|
/openbsd-current/sys/arch/sparc64/sparc64/ |
H A D | disksubr.c | 229 u_short cksum = 0, *sp1, *sp2; local 236 cksum ^= *sp1++; 237 if (cksum != 0) 388 u_short cksum, *sp1, *sp2; local 445 sl->sl_cksum = cksum = 0; 447 cksum ^= *sp1++; 448 sl->sl_cksum = cksum;
|