Changeset View
Changeset View
Standalone View
Standalone View
sbin/pfctl/pfctl_parser.c
| Show First 20 Lines • Show All 535 Lines • ▼ Show 20 Lines | case PF_DEBUG_MISC: | ||||
| printf("%15s\n\n", "Debug: Misc"); | printf("%15s\n\n", "Debug: Misc"); | ||||
| break; | break; | ||||
| case PF_DEBUG_NOISY: | case PF_DEBUG_NOISY: | ||||
| printf("%15s\n\n", "Debug: Loud"); | printf("%15s\n\n", "Debug: Loud"); | ||||
| break; | break; | ||||
| } | } | ||||
| if (opts & PF_OPT_VERBOSE) { | if (opts & PF_OPT_VERBOSE) { | ||||
| printf("Hostid: 0x%08x\n", ntohl(s->hostid)); | printf("Hostid: 0x%08x\n", s->hostid); | ||||
| for (i = 0; i < PF_MD5_DIGEST_LENGTH; i++) { | for (i = 0; i < PF_MD5_DIGEST_LENGTH; i++) { | ||||
| buf[i + i] = hex[s->pf_chksum[i] >> 4]; | buf[i + i] = hex[s->pf_chksum[i] >> 4]; | ||||
| buf[i + i + 1] = hex[s->pf_chksum[i] & 0x0f]; | buf[i + i + 1] = hex[s->pf_chksum[i] & 0x0f]; | ||||
| } | } | ||||
| buf[i + i] = '\0'; | buf[i + i] = '\0'; | ||||
| printf("Checksum: 0x%s\n\n", buf); | printf("Checksum: 0x%s\n\n", buf); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 1,335 Lines • Show Last 20 Lines | |||||