/external/tcpdump/ |
print-otv.c | 42 otv_print(netdissect_options *ndo, const u_char *bp, u_int len) 50 ND_TCHECK(*bp); 51 flags = *bp; 53 bp += 1; 55 ND_TCHECK2(*bp, 3); 56 ND_PRINT((ndo, "overlay %u, ", EXTRACT_24BITS(bp))); 57 bp += 3; 59 ND_TCHECK2(*bp, 3); 60 ND_PRINT((ndo, "instance %u\n", EXTRACT_24BITS(bp))); 61 bp += 3 [all...] |
print-carp.c | 49 carp_print(netdissect_options *ndo, register const u_char *bp, register u_int len, int ttl) 54 ND_TCHECK(bp[0]); 55 version = (bp[0] & 0xf0) >> 4; 56 type = bp[0] & 0x0f; 66 ND_TCHECK(bp[2]); 67 ND_TCHECK(bp[5]); 69 bp[1], bp[5], bp[2], bp[3])) [all...] |
print-dvmrp.c | 70 register const u_char *bp, register u_int len) 76 if (bp >= ep) 79 ND_TCHECK(bp[1]); 80 type = bp[1]; 83 bp += 8; 91 if (print_probe(ndo, bp, ep, len) < 0) 99 if (print_report(ndo, bp, ep, len) < 0) 110 if (print_neighbors(ndo, bp, ep, len) < 0) 124 bp -= 4; 125 ND_TCHECK2(bp[0], 4) [all...] |
print-vxlan.c | 48 vxlan_print(netdissect_options *ndo, const u_char *bp, u_int len) 56 ND_TCHECK2(*bp, VXLAN_HDR_LEN); 58 flags = *bp; 59 bp += 4; 61 vni = EXTRACT_24BITS(bp); 62 bp += 4; 68 ether_print(ndo, bp, len - VXLAN_HDR_LEN, ndo->ndo_snapend - bp, NULL, NULL);
|
print-nsh.c | 49 nsh_print(netdissect_options *ndo, const u_char *bp, u_int len) 69 ND_TCHECK2(*bp, NSH_BASE_HDR_LEN + NSH_SERVICE_PATH_HDR_LEN); 71 ver = (uint8_t)(*bp >> 6); 72 flags = *bp; 73 bp += 1; 74 length = *bp; 75 bp += 1; 76 md_type = *bp; 77 bp += 1; 78 next_protocol = *bp; [all...] |
print-geonet.c | 60 const u_char *bp) 67 version = bp[0]; 68 msg_type = bp[1]; 76 const u_char *bp) 78 uint16_t dest = EXTRACT_16BITS(bp+0); 79 uint16_t src = EXTRACT_16BITS(bp+2); 85 const u_char *bp) 89 if (!ND_TTEST2(*bp, GEONET_ADDR_LEN)) 91 ND_PRINT((ndo, "GN_ADDR:%s ", linkaddr_string (ndo, bp, 0, GEONET_ADDR_LEN))); 93 if (!ND_TTEST2(*(bp+12), 8) [all...] |
print-pim.c | 140 static void pimv2_print(netdissect_options *, register const u_char *bp, register u_int len, const u_char *); 144 register const u_char *bp, register u_int len) 150 if (ND_TTEST2(bp[0], 30) && bp[11] == 1 && 151 ((njoin = EXTRACT_16BITS(&bp[20])) + EXTRACT_16BITS(&bp[22])) == 1) { 154 ND_PRINT((ndo, " RPF %s ", ipaddr_string(ndo, bp))); 155 hold = EXTRACT_16BITS(&bp[6]); 161 ipaddr_string(ndo, &bp[26]), bp[25] & 0x3f [all...] |
print-vrrp.c | 107 register const u_char *bp, register u_int len, 113 ND_TCHECK(bp[0]); 114 version = (bp[0] & 0xf0) >> 4; 115 type = bp[0] & 0x0f; 122 ND_TCHECK(bp[2]); 123 ND_PRINT((ndo, ", vrid %u, prio %u", bp[1], bp[2])); 124 ND_TCHECK(bp[5]); 127 auth_type = bp[4]; 129 ND_PRINT((ndo, ", intvl %us, length %u", bp[5], len)) [all...] |
print-vxlan-gpe.c | 61 vxlan_gpe_print(netdissect_options *ndo, const u_char *bp, u_int len) 70 ND_TCHECK2(*bp, VXLAN_GPE_HDR_LEN); 72 flags = *bp; 73 bp += 3; 75 next_protocol = *bp; 76 bp += 1; 78 vni = EXTRACT_24BITS(bp); 79 bp += 4; 89 ip_print(ndo, bp, len - 8); 92 ip6_print(ndo, bp, len - 8) [all...] |
print-calm-fast.c | 36 * This is the top level routine of the printer. 'bp' points 40 calm_fast_print(netdissect_options *ndo, const u_char *bp, u_int length, const struct lladdr_info *src) 45 ND_TCHECK2(*bp, 2); 48 srcNwref = bp[0]; 49 dstNwref = bp[1]; 51 bp += 2; 61 ND_DEFAULTPRINT(bp, length);
|
print-gre.c | 88 gre_print(netdissect_options *ndo, const u_char *bp, u_int length) 92 ND_TCHECK2(*bp, 2); 95 vers = EXTRACT_16BITS(bp) & GRE_VERS_MASK; 100 gre_print_0(ndo, bp, len); 103 gre_print_1(ndo, bp, len); 117 gre_print_0(netdissect_options *ndo, const u_char *bp, u_int length) 122 flags = EXTRACT_16BITS(bp); 128 bp += 2; 130 ND_TCHECK2(*bp, 2); 133 prot = EXTRACT_16BITS(bp); [all...] |
print-pgm.c | 147 register const u_char *bp, register u_int length, 160 pgm = (const struct pgm_header *)bp; 227 bp = (const u_char *) (spm + 1); 231 ND_TCHECK2(*bp, sizeof(struct in_addr)); 232 addrtostr(bp, nla_buf, sizeof(nla_buf)); 233 bp += sizeof(struct in_addr); 236 ND_TCHECK2(*bp, sizeof(struct in6_addr)); 237 addrtostr6(bp, nla_buf, sizeof(nla_buf)); 238 bp += sizeof(struct in6_addr); 261 bp = (const u_char *) (poll_msg + 1) [all...] |
print-beep.c | 49 beep_print(netdissect_options *ndo, const u_char *bp, u_int length) 52 if (l_strnstart(ndo, "MSG", 4, (const char *)bp, length)) /* A REQuest */ 54 else if (l_strnstart(ndo, "RPY ", 4, (const char *)bp, length)) 56 else if (l_strnstart(ndo, "ERR ", 4, (const char *)bp, length)) 58 else if (l_strnstart(ndo, "ANS ", 4, (const char *)bp, length)) 60 else if (l_strnstart(ndo, "NUL ", 4, (const char *)bp, length)) 62 else if (l_strnstart(ndo, "SEQ ", 4, (const char *)bp, length)) 64 else if (l_strnstart(ndo, "END", 4, (const char *)bp, length))
|
print-tftp.c | 92 register const u_char *bp, u_int length) 104 ND_TCHECK_16BITS(bp); 105 opcode = EXTRACT_16BITS(bp); 111 bp += 2; 123 ui = fn_printztn(ndo, bp, length, ndo->ndo_snapend); 127 bp += ui; 134 ui = fn_printztn(ndo, bp, length, ndo->ndo_snapend); 137 bp += ui; 142 ND_TCHECK(*bp); 143 if (*bp != '\0' [all...] |
print-igmp.c | 107 register const u_char *bp, register u_int len) 109 register const struct tr_query *tr = (const struct tr_query *)(bp + 8); 129 register const u_char *bp, register u_int len) 131 register const struct tr_query *tr = (const struct tr_query *)(bp + 8); 151 register const u_char *bp, register u_int len) 161 ND_TCHECK2(bp[6], 2); 162 ngroups = EXTRACT_16BITS(&bp[6]); 172 ND_TCHECK2(bp[group+4], 4); 173 ND_PRINT((ndo, " [gaddr %s", ipaddr_string(ndo, &bp[group+4]))); 175 bp[group]))) [all...] |
print-ntp.c | 207 register const struct ntpdata *bp; local 210 bp = (const struct ntpdata *)cp; 212 ND_TCHECK(bp->status); 214 version = (int)(bp->status & VERSIONMASK) >> 3; 217 mode = bp->status & MODEMASK; 229 leapind = bp->status & LEAPMASK; 234 ND_TCHECK(bp->stratum); 236 bp->stratum, 237 tok2str(ntp_stratum_values, (bp->stratum >=2 && bp->stratum<=15) ? "secondary reference" : "reserved", bp->stratum))) [all...] |
print-resp.c | 213 resp_print(netdissect_options *ndo, const u_char *bp, u_int length) 217 if(!bp || length <= 0) 228 * In order to handle this case, we must try and parse 'bp' until 231 ret_len = resp_parse(ndo, bp, length_cur); 233 bp += ret_len; 244 resp_parse(netdissect_options *ndo, register const u_char *bp, int length) 250 ND_TCHECK(*bp); 251 op = *bp; 253 /* bp now points to the op, so these routines must skip it */ 255 case RESP_SIMPLE_STRING: ret_len = resp_print_simple_string(ndo, bp, length); break [all...] |
/external/syslinux/gpxe/src/drivers/net/ |
bnx2.c | 137 bnx2_reg_rd_ind(struct bnx2 *bp, u32 offset) 139 REG_WR(bp, BNX2_PCICFG_REG_WINDOW_ADDRESS, offset); 140 return (REG_RD(bp, BNX2_PCICFG_REG_WINDOW)); 144 bnx2_reg_wr_ind(struct bnx2 *bp, u32 offset, u32 val) 146 REG_WR(bp, BNX2_PCICFG_REG_WINDOW_ADDRESS, offset); 147 REG_WR(bp, BNX2_PCICFG_REG_WINDOW, val); 151 bnx2_ctx_wr(struct bnx2 *bp, u32 cid_addr, u32 offset, u32 val) 154 REG_WR(bp, BNX2_CTX_DATA_ADR, offset); 155 REG_WR(bp, BNX2_CTX_DATA, val); 159 bnx2_read_phy(struct bnx2 *bp, u32 reg, u32 *val 1291 struct bnx2 *bp = &bnx2; local 1836 struct bnx2* bp = &bnx2; local 2121 struct bnx2 *bp = &bnx2; local 2364 struct bnx2 *bp = &bnx2; local 2494 struct bnx2 *bp = &bnx2; local 2617 struct bnx2 *bp = &bnx2; local [all...] |
b44.c | 59 static inline u32 br32(const struct b44_private *bp, u32 reg) 61 return readl(bp->regs + reg); 65 static inline void bw32(const struct b44_private *bp, u32 reg, u32 val) 67 writel(val, bp->regs + reg); 71 static inline void bflush(const struct b44_private *bp, u32 reg, u32 timeout) 73 readl(bp->regs + reg); 102 static u32 pending_tx_index(struct b44_private *bp) 104 u32 pending = br32(bp, B44_DMATX_STAT); 116 static u32 pending_rx_index(struct b44_private *bp) 118 u32 pending = br32(bp, B44_DMARX_STAT) 611 struct b44_private *bp = netdev_priv(netdev); local 643 struct b44_private *bp; local 711 struct b44_private *bp = netdev_priv(netdev); local 728 struct b44_private *bp = netdev_priv(netdev); local 742 struct b44_private *bp = netdev_priv(netdev); local 768 struct b44_private *bp = netdev_priv(netdev); local 784 struct b44_private *bp = netdev_priv(netdev); local 900 struct b44_private *bp = netdev_priv(netdev); local [all...] |
/external/clang/test/Parser/ |
pointer_promotion.c | 8 struct bar *bp; local 13 if (fp < bp) {} // expected-warning {{comparison of distinct pointer types ('struct foo *' and 'struct bar *')}}
|
/external/google-breakpad/src/common/mac/ |
bootstrap_compat.cc | 35 kern_return_t BootstrapRegister(mach_port_t bp, 38 return bootstrap_register(bp, service_name, sp);
|
/bionic/libc/tzcode/ |
strptime.c | 116 const unsigned char *bp; local 120 bp = (unsigned char *)buf; 127 while (isspace(*bp)) 128 bp++; 141 if (c != *bp++) 165 if (!(bp = _strptime(bp, _ctloc(d_t_fmt), tm, cr))) 171 if (!(bp = _strptime(bp, "%m/%d/%y", tm, cr))) 177 if (!(bp = _strptime(bp, "%H:%M", tm, cr)) [all...] |
/device/linaro/bootloader/edk2/StdLib/LibC/Time/ |
strptime.c | 88 const unsigned char *bp;
local 92 bp = (const unsigned char *)buf;
94 while (bp != NULL && (c = *fmt++) != '\0') {
101 while (isspace(*bp))
102 bp++;
113 if (c != *bp++)
171 bp = (const unsigned char *)strptime((const char *)bp,
181 bp = find_string(bp, &tm->tm_wday, _ctloc(day), [all...] |
/external/libunwind/src/mi/ |
_ReadSLEB.c | 8 unsigned char *bp = *dpp; local 12 byte = *bp++; 23 *dpp = bp;
|
_ReadULEB.c | 8 unsigned char *bp = *dpp; local 12 byte = *bp++; 18 *dpp = bp;
|