/freebsd-11.0-release/usr.sbin/ppp/ |
H A D | sync.c | 53 struct mbuf *bp, int pri __unused, u_short *proto __unused) 55 log_DumpBp(LogSYNC, "Write", bp); 56 m_settype(bp, MB_SYNCOUT); 57 bp->priv = 0; 58 return bp; 62 sync_LayerPull(struct bundle *b __unused, struct link *l, struct mbuf *bp, argument 71 log_DumpBp(LogSYNC, "Read", bp); 74 len = m_length(bp); 78 m_settype(bp, MB_SYNCIN); 81 return bp; 52 sync_LayerPush(struct bundle *bundle __unused, struct link *l __unused, struct mbuf *bp, int pri __unused, u_short *proto __unused) argument [all...] |
H A D | acf.c | 59 acf_LayerPush(struct bundle *b __unused, struct link *l, struct mbuf *bp, argument 65 bp = m_prepend(bp, cp, 2, 0); 66 m_settype(bp, MB_ACFOUT); 69 return bp; 73 acf_LayerPull(struct bundle *b __unused, struct link *l, struct mbuf *bp, argument 81 return bp; 84 if (mbuf_View(bp, cp, 2) == 2) { 87 bp = mbuf_Read(bp, c [all...] |
/freebsd-11.0-release/contrib/tcpdump/ |
H A D | print-pim.c | 139 static void pimv2_print(netdissect_options *, register const u_char *bp, register u_int len, u_int cksum); 143 register const u_char *bp, register u_int len) 149 if (ND_TTEST2(bp[0], 30) && bp[11] == 1 && 150 ((njoin = EXTRACT_16BITS(&bp[20])) + EXTRACT_16BITS(&bp[22])) == 1) { 153 ND_PRINT((ndo, " RPF %s ", ipaddr_string(ndo, bp))); 154 hold = EXTRACT_16BITS(&bp[6]); 160 ipaddr_string(ndo, &bp[26]), bp[2 142 pimv1_join_prune_print(netdissect_options *ndo, register const u_char *bp, register u_int len) argument 229 pimv1_print(netdissect_options *ndo, register const u_char *bp, register u_int len) argument 324 cisco_autorp_print(netdissect_options *ndo, register const u_char *bp, register u_int len) argument 419 pim_print(netdissect_options *ndo, register const u_char *bp, register u_int len, u_int cksum) argument 524 pimv2_addr_print(netdissect_options *ndo, const u_char *bp, enum pimv2_addrtype at, int silent) argument 626 pimv2_print(netdissect_options *ndo, register const u_char *bp, register u_int len, u_int cksum) argument [all...] |
H A D | print-calm-fast.c | 35 * This is the top level routine of the printer. 'bp' points 39 calm_fast_print(netdissect_options *ndo, const u_char *eth, const u_char *bp, u_int length) argument 41 int srcNwref = bp[0]; 42 int dstNwref = bp[1]; 44 bp += 2; 51 ND_DEFAULTPRINT(bp, length);
|
H A D | print-vrrp.c | 106 register const u_char *bp, register u_int len, 112 ND_TCHECK(bp[0]); 113 version = (bp[0] & 0xf0) >> 4; 114 type = bp[0] & 0x0f; 121 ND_TCHECK(bp[2]); 122 ND_PRINT((ndo, ", vrid %u, prio %u", bp[1], bp[2])); 123 ND_TCHECK(bp[5]); 126 auth_type = bp[4]; 128 ND_PRINT((ndo, ", intvl %us, length %u", bp[ 105 vrrp_print(netdissect_options *ndo, register const u_char *bp, register u_int len, register const u_char *bp2, int ttl) argument [all...] |
H A D | print-gre.c | 86 gre_print(netdissect_options *ndo, const u_char *bp, u_int length) argument 94 vers = EXTRACT_16BITS(bp) & GRE_VERS_MASK; 99 gre_print_0(ndo, bp, len); 102 gre_print_1(ndo, bp, len); 111 gre_print_0(netdissect_options *ndo, const u_char *bp, u_int length) argument 116 flags = EXTRACT_16BITS(bp); 122 bp += 2; 126 prot = EXTRACT_16BITS(bp); 128 bp += 2; 134 ND_PRINT((ndo, ", sum 0x%x", EXTRACT_16BITS(bp))); 231 gre_print_1(netdissect_options *ndo, const u_char *bp, u_int length) argument 311 gre_sre_print(netdissect_options *ndo, uint16_t af, uint8_t sreoff, uint8_t srelen, const u_char *bp, u_int len) argument 331 gre_sre_ip_print(netdissect_options *ndo, uint8_t sreoff, uint8_t srelen, const u_char *bp, u_int len) argument 366 gre_sre_asn_print(netdissect_options *ndo, uint8_t sreoff, uint8_t srelen, const u_char *bp, u_int len) argument [all...] |
H A D | print-vxlan.c | 41 vxlan_print(netdissect_options *ndo, const u_char *bp, u_int len) argument 51 flags = *bp; 52 bp += 4; 54 vni = EXTRACT_24BITS(bp); 55 bp += 4; 61 ether_print(ndo, bp, len - 8, len - 8, NULL, NULL);
|
H A D | print-beep.c | 40 beep_print(netdissect_options *ndo, const u_char *bp, u_int length) argument 43 if (l_strnstart("MSG", 4, (const char *)bp, length)) /* A REQuest */ 45 else if (l_strnstart("RPY ", 4, (const char *)bp, length)) 47 else if (l_strnstart("ERR ", 4, (const char *)bp, length)) 49 else if (l_strnstart("ANS ", 4, (const char *)bp, length)) 51 else if (l_strnstart("NUL ", 4, (const char *)bp, length)) 53 else if (l_strnstart("SEQ ", 4, (const char *)bp, length)) 55 else if (l_strnstart("END", 4, (const char *)bp, length))
|
H A D | print-igmp.c | 106 register const u_char *bp, register u_int len) 108 register const struct tr_query *tr = (const struct tr_query *)(bp + 8); 128 register const u_char *bp, register u_int len) 130 register const struct tr_query *tr = (const struct tr_query *)(bp + 8); 150 register const u_char *bp, register u_int len) 160 ND_TCHECK2(bp[6], 2); 161 ngroups = EXTRACT_16BITS(&bp[6]); 171 ND_TCHECK2(bp[group+4], 4); 172 ND_PRINT((ndo, " [gaddr %s", ipaddr_string(ndo, &bp[group+4]))); 174 bp[grou 105 print_mtrace(netdissect_options *ndo, register const u_char *bp, register u_int len) argument 127 print_mresp(netdissect_options *ndo, register const u_char *bp, register u_int len) argument 149 print_igmpv3_report(netdissect_options *ndo, register const u_char *bp, register u_int len) argument 203 print_igmpv3_query(netdissect_options *ndo, register const u_char *bp, register u_int len) argument 259 igmp_print(netdissect_options *ndo, register const u_char *bp, register u_int len) argument [all...] |
H A D | print-ntp.c | 209 register const struct ntpdata *bp; local 212 bp = (struct ntpdata *)cp; 214 ND_TCHECK(bp->status); 216 version = (int)(bp->status & VERSIONMASK) >> 3; 219 mode = bp->status & MODEMASK; 231 leapind = bp->status & LEAPMASK; 236 ND_TCHECK(bp->stratum); 238 bp->stratum, 239 tok2str(ntp_stratum_values, (bp->stratum >=2 && bp [all...] |
H A D | print-ip6opts.c | 45 ip6_sopt_print(netdissect_options *ndo, const u_char *bp, int len) argument 51 if (bp[i] == IP6OPT_PAD1) 55 optlen = bp[i + 1] + 2; 62 switch (bp[i]) { 75 ND_PRINT((ndo, ", sopt_type %d: trunc)", bp[i])); 78 ND_PRINT((ndo, ", sopt_type 0x%02x: len=%d", bp[i], bp[i + 1])); 89 ip6_opt_print(netdissect_options *ndo, const u_char *bp, int len) argument 97 if (bp[i] == IP6OPT_PAD1) 101 optlen = bp[ 174 hbhopt_print(netdissect_options *ndo, register const u_char *bp) argument 194 dstopt_print(netdissect_options *ndo, register const u_char *bp) argument [all...] |
/freebsd-11.0-release/crypto/openssl/crypto/asn1/ |
H A D | t_pkey.c | 65 int ASN1_bn_print(BIO *bp, const char *number, const BIGNUM *num, argument 74 if (!BIO_indent(bp, off, 128)) 77 if (BIO_printf(bp, "%s 0\n", number) <= 0) 83 if (BIO_printf(bp, "%s %s%lu (%s0x%lx)\n", number, neg, 90 if (BIO_printf(bp, "%s%s", number, 102 if (BIO_puts(bp, "\n") <= 0 || !BIO_indent(bp, off + 4, 128)) 105 if (BIO_printf(bp, "%02x%s", buf[i], ((i + 1) == n) ? "" : ":") 109 if (BIO_write(bp, "\n", 1) <= 0)
|
/freebsd-11.0-release/libexec/mknetid/ |
H A D | parse_group.c | 107 char *bp; local 111 bp = line; 120 if ((_gr_group.gr_name = strsep(&bp, ":\n")) == NULL) 124 if ((_gr_group.gr_passwd = strsep(&bp, ":\n")) == NULL) 126 if (!(cp = strsep(&bp, ":\n"))) 132 if (bp == NULL) /* !! Must check for this! */ 134 for (m = _gr_group.gr_mem = members;; bp++) { 137 if (*bp == ',') { 139 *bp = '\0'; 143 } else if (*bp [all...] |
/freebsd-11.0-release/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/ |
H A D | blkptr.c | 47 encode_embedded_bp_compressed(blkptr_t *bp, void *data, argument 50 uint64_t *bp64 = (uint64_t *)bp; 60 bzero(bp, sizeof (*bp)); 61 BP_SET_EMBEDDED(bp, B_TRUE); 62 BP_SET_COMPRESS(bp, comp); 63 BP_SET_BYTEORDER(bp, ZFS_HOST_BYTEORDER); 64 BPE_SET_LSIZE(bp, uncompressed_size); 65 BPE_SET_PSIZE(bp, compressed_size); 75 ASSERT3P(bp64, <, bp 93 decode_embedded_bp_compressed(const blkptr_t *bp, void *buf) argument [all...] |
/freebsd-11.0-release/sys/vm/ |
H A D | vm_pager.c | 198 struct buf *bp; local 202 bp = swbuf; 206 for (i = 0; i < nswbuf; i++, bp++) { 207 TAILQ_INSERT_HEAD(&bswlist, bp, b_freelist); 208 BUF_LOCKINIT(bp); 209 LIST_INIT(&bp->b_dep); 210 bp->b_rcred = bp->b_wcred = NOCRED; 211 bp->b_xflags = 0; 363 initpbuf(struct buf *bp) argument 399 struct buf *bp; local 436 struct buf *bp; local 461 relpbuf(struct buf *bp, int *pfreecnt) argument 500 pbgetvp(struct vnode *vp, struct buf *bp) argument 519 pbgetbo(struct bufobj *bo, struct buf *bp) argument 533 pbrelvp(struct buf *bp) argument 550 pbrelbo(struct buf *bp) argument [all...] |
/freebsd-11.0-release/sys/cddl/boot/zfs/ |
H A D | blkptr.c | 43 * buf must be at least BPE_GET_PSIZE(bp) bytes long (which will never be 47 decode_embedded_bp_compressed(const blkptr_t *bp, void *buf) argument 52 const uint64_t *bp64 = (const uint64_t *)bp; 54 ASSERT(BP_IS_EMBEDDED(bp)); 56 psize = BPE_GET_PSIZE(bp); 65 ASSERT3P(bp64, <, bp + 1); 68 if (!BPE_IS_PAYLOADWORD(bp, bp64))
|
/freebsd-11.0-release/crypto/openssl/ssl/ |
H A D | ssl_txt.c | 106 int SSL_SESSION_print(BIO *bp, const SSL_SESSION *x) argument 113 if (BIO_puts(bp, "SSL-Session:\n") <= 0) 133 if (BIO_printf(bp, " Protocol : %s\n", s) <= 0) 139 (bp, " Cipher : %06lX\n", x->cipher_id & 0xffffff) <= 0) 143 (bp, " Cipher : %04lX\n", x->cipher_id & 0xffff) <= 0) 148 (bp, " Cipher : %s\n", 152 if (BIO_puts(bp, " Session-ID: ") <= 0) 155 if (BIO_printf(bp, "%02X", x->session_id[i]) <= 0) 158 if (BIO_puts(bp, "\n Session-ID-ctx: ") <= 0) 161 if (BIO_printf(bp, " [all...] |
/freebsd-11.0-release/usr.sbin/bsnmpd/modules/snmp_bridge/ |
H A D | bridge_port.c | 61 struct bridge_port *bp; local 63 while ((bp = TAILQ_FIRST(headp)) != NULL) { 64 TAILQ_REMOVE(headp, bp, b_p); 65 free(bp); 77 struct bridge_port *bp; local 80 bp = TAILQ_NEXT(bif->f_bp, b_p); 83 bif->f_bp = bp; 94 struct bridge_port *bp, struct bridge_port **f_bp) 101 t1 != NULL && bp->sysindex == t1->sysindex; 103 if (bp 93 bridge_port_insert_at(struct bridge_ports *headp, struct bridge_port *bp, struct bridge_port **f_bp) argument 158 bridge_port_memif_insert(struct bridge_ports *headp, struct bridge_port *bp, struct bridge_port **f_bp) argument 211 bridge_port_next(struct bridge_port *bp) argument 229 bridge_port_bif_next(struct bridge_port *bp) argument 244 bridge_port_remove(struct bridge_port *bp, struct bridge_if *bif) argument 261 struct bridge_port *bp; local 297 bridge_port_getinfo_mibif(struct mibif *m_if, struct bridge_port *bp) argument 312 struct bridge_port *bp; local 330 struct bridge_port *bp; local 347 struct bridge_port *bp; local 419 struct bridge_port *bp; local 577 struct bridge_port *bp; local 718 struct bridge_port *bp; local 793 bridge_port_index_append(struct asn_oid *oid, uint sub, const struct bridge_port *bp) argument 823 struct bridge_port *bp; local 855 struct bridge_port *bp; local 917 struct bridge_port *bp; local 984 struct bridge_port *bp; local 1007 struct bridge_port *bp; local 1039 struct bridge_port *bp; local 1078 struct bridge_port *bp; local 1195 struct bridge_port *bp; local 1338 struct bridge_port *bp; local 1463 struct bridge_port *bp; local [all...] |
/freebsd-11.0-release/crypto/openssl/crypto/ocsp/ |
H A D | ocsp_prn.c | 72 static int ocsp_certid_print(BIO *bp, OCSP_CERTID *a, int indent) argument 74 BIO_printf(bp, "%*sCertificate ID:\n", indent, ""); 76 BIO_printf(bp, "%*sHash Algorithm: ", indent, ""); 77 i2a_ASN1_OBJECT(bp, a->hashAlgorithm->algorithm); 78 BIO_printf(bp, "\n%*sIssuer Name Hash: ", indent, ""); 79 i2a_ASN1_STRING(bp, a->issuerNameHash, V_ASN1_OCTET_STRING); 80 BIO_printf(bp, "\n%*sIssuer Key Hash: ", indent, ""); 81 i2a_ASN1_STRING(bp, a->issuerKeyHash, V_ASN1_OCTET_STRING); 82 BIO_printf(bp, "\n%*sSerial Number: ", indent, ""); 83 i2a_ASN1_INTEGER(bp, 140 OCSP_REQUEST_print(BIO *bp, OCSP_REQUEST *o, unsigned long flags) argument 185 OCSP_RESPONSE_print(BIO *bp, OCSP_RESPONSE *o, unsigned long flags) argument [all...] |
/freebsd-11.0-release/lib/libc/db/mpool/ |
H A D | mpool.c | 116 BKT *bp; local 130 if ((bp = mpool_bkt(mp)) == NULL) 134 bp->pgno = *pgnoaddr; 136 bp->pgno = *pgnoaddr = mp->npages++; 138 bp->flags = MPOOL_PINNED | MPOOL_INUSE; 140 head = &mp->hqh[HASHKEY(bp->pgno)]; 141 TAILQ_INSERT_HEAD(head, bp, hq); 142 TAILQ_INSERT_TAIL(&mp->lqh, bp, q); 143 return (bp->page); 150 BKT *bp; local 182 BKT *bp; local 275 BKT *bp; local 301 BKT *bp; local 322 BKT *bp; local 342 BKT *bp; local 394 mpool_write(MPOOL *mp, BKT *bp) argument 431 BKT *bp; local 456 BKT *bp; local [all...] |
/freebsd-11.0-release/usr.sbin/rtadvd/ |
H A D | advcap.c | 97 * Get an entry for terminal name in buffer bp, 102 tgetent(char *bp, char *name) argument 104 return (getent(bp, name, conffile)); 108 getent(char *bp, char *name, const char *cfile) argument 116 tbuf = bp; 134 cp = bp; 146 if (cp > bp && cp[-1] == '\\') { 152 if (cp >= bp + BUFSIZ - 1) { 254 tskip(char *bp) argument 259 while (*bp) { 302 char *bp = tbuf; local 335 char *bp = tbuf; local 362 char *bp = tbuf; local [all...] |
/freebsd-11.0-release/usr.sbin/lpr/common_source/ |
H A D | printcap.c | 101 char *bp; local 108 if ((status = cgetent(&bp, printcapdb, XXX)) < 0) 110 status = getprintcap_int(bp, pp); 111 free(bp); 152 char *bp; local 155 status = cgetfirst(&bp, printcapdb); 163 status = getprintcap_int(bp, pp); 164 free(bp); 174 char *bp; local 177 status = cgetnext(&bp, printcapd 217 getprintcap_int(char *bp, struct printer *pp) argument 376 capdb_getaltstr(char *bp, const char *shrt, const char *lng, const char *dflt, char **result) argument 400 capdb_getaltnum(char *bp, const char *shrt, const char *lng, long dflt, long *result) argument 420 capdb_getaltlog(char *bp, const char *shrt, const char *lng) argument 436 capdb_canonical_name(const char *bp) argument [all...] |
/freebsd-11.0-release/sys/dev/cfi/ |
H A D | cfi_disk.c | 171 cfi_disk_read(struct cfi_softc *sc, struct bio *bp) argument 179 bp->bio_error = cfi_block_finish(sc); 180 if (bp->bio_error) { 181 bp->bio_flags |= BIO_ERROR; 185 if (bp->bio_offset > sc->sc_size) { 186 bp->bio_flags |= BIO_ERROR; 187 bp->bio_error = EIO; 190 resid = bp->bio_bcount; 192 uint8_t *dp = (uint8_t *)bp->bio_data; 193 while (resid > 0 && bp 216 cfi_disk_write(struct cfi_softc *sc, struct bio *bp) argument 267 struct bio *bp; local 288 cfi_disk_getattr(struct bio *bp) argument 312 cfi_disk_strategy(struct bio *bp) argument [all...] |
/freebsd-11.0-release/usr.sbin/makefs/ffs/ |
H A D | buf.h | 64 #define bdwrite(bp) bwrite(bp) 65 #define clrbuf(bp) memset((bp)->b_data, 0, (u_int)(bp)->b_bcount)
|
/freebsd-11.0-release/sys/fs/fuse/ |
H A D | fuse_io.c | 177 struct buf *bp; local 222 bp = getblk(vp, lbn, bcount, PCATCH, 0, 0); 224 if (!bp) 232 if ((bp->b_flags & B_CACHE) == 0) { 233 bp->b_iocmd = BIO_READ; 234 vfs_busy_pages(bp, 0); 235 err = fuse_io_strategy(vp, bp); 237 brelse(bp); 242 * on is the offset into the current bp. Figure out how many 243 * bytes we can copy out of the bp 375 struct buf *bp; local 602 fuse_io_strategy(struct vnode *vp, struct buf *bp) argument [all...] |