/* Get one byte from the specified position in a pbuf WARNING: returns zero for offset >= p->tot_len */
u8_t pbuf_get_at(const struct pbuf *p, u16_t offset)
/* Get one byte from the specified position in a pbuf WARNING: returns zero for offset >= p->tot_len */
u8_t pbuf_get_at(const struct pbuf *p, u16_t offset)
{
  int ret = pbuf_try_get_at(p, offset);
  if (ret >= 0) {
    return (u8_t)ret;
  }
  return 0;
}