linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Gustavo F. Padovan" <padovan@profusion.mobi>
To: Andre Dieb Martins <andre.dieb@signove.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH 6/7] Add ATT dump for read req/resp
Date: Wed, 9 Feb 2011 12:21:18 -0200	[thread overview]
Message-ID: <20110209142118.GD1995@joana> (raw)
In-Reply-To: <1297260110-10515-6-git-send-email-andre.dieb@signove.com>

Hi Andre,

* Andre Dieb Martins <andre.dieb@signove.com> [2011-02-09 11:01:49 -0300]:

> ---
>  parser/att.c |   14 ++++++++++++++
>  1 files changed, 14 insertions(+), 0 deletions(-)
> 
> diff --git a/parser/att.c b/parser/att.c
> index b172f95..2a9da30 100644
> --- a/parser/att.c
> +++ b/parser/att.c
> @@ -331,6 +331,14 @@ static void att_find_info_resp_dump(int level, struct frame *frm)
>  	}
>  }
>  
> +static void att_read_req_dump(int level, struct frame *frm)
> +{
> +	uint16_t handle = btohs(htons(get_u16(frm)));
> +
> +	p_indent(level, frm);
> +	printf("handle 0x%2.2x\n", handle);
> +}
> +
>  static void att_handle_notify_dump(int level, struct frame *frm)
>  {
>  	uint16_t handle = btohs(htons(get_u16(frm)));
> @@ -371,6 +379,12 @@ void att_dump(int level, struct frame *frm)
>  		case ATT_OP_FIND_INFO_RESP:
>  			att_find_info_resp_dump(level + 1, frm);
>  			break;
> +		case ATT_OP_READ_REQ:
> +			att_read_req_dump(level + 1, frm);
> +			break;
> +		case ATT_OP_READ_RESP:
> +			raw_dump(level + 1, frm);

raw_dump?

-- 
Gustavo F. Padovan
http://profusion.mobi

  reply	other threads:[~2011-02-09 14:21 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-09 14:01 [PATCH 1/7] Partial dump of ATT PDUs Andre Dieb Martins
2011-02-09 14:01 ` [PATCH 2/7] Add dump for ATT MTU req/resp and notify value Andre Dieb Martins
2011-02-09 14:01 ` [PATCH 3/7] Add ATT error pdu dump Andre Dieb Martins
2011-02-09 14:01 ` [PATCH 4/7] Add ATT find info req/resp dump Andre Dieb Martins
2011-02-09 14:13   ` Gustavo F. Padovan
2011-02-09 14:15   ` Gustavo F. Padovan
2011-02-09 14:01 ` [PATCH 5/7] Better ATT dump format Andre Dieb Martins
2011-02-09 14:18   ` Gustavo F. Padovan
2011-02-09 14:01 ` [PATCH 6/7] Add ATT dump for read req/resp Andre Dieb Martins
2011-02-09 14:21   ` Gustavo F. Padovan [this message]
2011-02-09 14:28     ` André Dieb
2011-02-09 14:01 ` [PATCH 7/7] Add ATT read by type req/resp dump Andre Dieb Martins

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110209142118.GD1995@joana \
    --to=padovan@profusion.mobi \
    --cc=andre.dieb@signove.com \
    --cc=linux-bluetooth@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).