Lines Matching full:p
39 uint8_t *p = &buffer[sizeof(struct net_eth_hdr)]; in dsa_lldp_send() local
40 uint8_t *pb = p; in dsa_lldp_send()
62 dsa_buf_write_be16((LLDP_TLV_CHASSIS_ID << 9) | (ETH_ALEN + 1), &p); in dsa_lldp_send()
63 *p++ = 4; /* subtype */ in dsa_lldp_send()
64 memcpy(p, net_if_get_link_addr(iface)->addr, ETH_ALEN); in dsa_lldp_send()
65 p += ETH_ALEN; in dsa_lldp_send()
68 dsa_buf_write_be16((LLDP_TLV_PORT_ID << 9) | (ETH_ALEN + 1), &p); in dsa_lldp_send()
69 *p++ = 3; /* subtype */ in dsa_lldp_send()
70 memcpy(p, net_if_get_link_addr(iface)->addr, ETH_ALEN); in dsa_lldp_send()
71 p += ETH_ALEN; in dsa_lldp_send()
74 dsa_buf_write_be16((LLDP_TLV_TTL << 9) | 2, &p); in dsa_lldp_send()
75 *p++ = 0; /* TTL field is 2 bytes long */ in dsa_lldp_send()
76 *p++ = 120; in dsa_lldp_send()
81 dsa_buf_write_be16((LLDP_TLV_SYSTEM_NAME << 9) | strlen(sys_name), &p); in dsa_lldp_send()
82 memcpy(p, sys_name, strlen(sys_name)); in dsa_lldp_send()
83 p += strlen(sys_name); in dsa_lldp_send()
85 len = sizeof(struct net_eth_hdr) + (p - pb); in dsa_lldp_send()
99 uint8_t *p, t1, t2; in dsa_lldp_print_info() local
122 p = lldp_p; in dsa_lldp_print_info()
129 p[0], p[1], p[2], p[3], p[4], p[5]); in dsa_lldp_print_info()
133 p[0], p[1], p[2], p[3], p[4], p[5]); in dsa_lldp_print_info()
137 LOG_INF("\tTTL:\t\t%ds", (uint16_t) p[0] << 8 | p[1]); in dsa_lldp_print_info()
141 memcpy(t, p, length); in dsa_lldp_print_info()