/* $NetBSD: printhostmask.c,v 1.3 2014/12/20 13:15:48 prlw1 Exp $ */ /* * Copyright (C) 2012 by Darren Reed. * * See the IPFILTER.LICENCE file for details on licencing. * * Id: printhostmask.c,v 1.1.1.2 2012/07/22 13:44:40 darrenr Exp $ */ #include "ipf.h" void printhostmask(family, addr, mask) int family; u_32_t *addr, *mask; { #ifdef USE_INET6 char ipbuf[64]; #else struct in_addr ipa; #endif if ((family == -1) || ((!addr || !*addr) && (!mask || !*mask))) PRINTF("any"); else { #ifdef USE_INET6 void *ptr = addr; PRINTF("%s", inet_ntop(family, ptr, ipbuf, sizeof(ipbuf))); #else ipa.s_addr = *addr; PRINTF("%s", inet_ntoa(ipa)); #endif if (mask != NULL) printmask(family, mask); } } 'lockcount-9.3'>lockcount-9.3 NetBSD fork for lockdoc analysismerlin@scholz.ruhr
summaryrefslogtreecommitdiff
path: root/sys/arch/mips/include/cache_octeon.h
AgeCommit message (Expand)Author
2020-07-26#define<tab>simonb
2020-06-14Define Octeon Cavium cache layouts for various cnMIPS cores.simonb
2019-04-11Fix tyop.simonb
2016-07-11Change MIPS to use the common pmap code.matt
2015-04-29Initial import of Cavium Octeon and Octeon Plus SoC andhikaru