diff options
author | Guy Harris <guy@alum.mit.edu> | 2008-09-06 22:33:22 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2008-09-06 22:33:22 +0000 |
commit | 73e36ab9dabcd1156e7c9c84f725e0d0bba9dd15 (patch) | |
tree | 8d12b3913167bd9f6574941f570e5722505bc97e /epan/dissectors/packet-smtp.c | |
parent | ed5f300fd56a49f34d64286e676af729231e0be2 (diff) |
Add some comments.
svn path=/trunk/; revision=26153
Diffstat (limited to 'epan/dissectors/packet-smtp.c')
-rw-r--r-- | epan/dissectors/packet-smtp.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/epan/dissectors/packet-smtp.c b/epan/dissectors/packet-smtp.c index 6fad51fc94..82cc6f9d7f 100644 --- a/epan/dissectors/packet-smtp.c +++ b/epan/dissectors/packet-smtp.c @@ -209,6 +209,10 @@ dissect_smtp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) if (!frame_data) { + /* + * No frame data, so this is probably the first pass; find + * the conversation for this. + */ conversation = find_conversation(pinfo->fd->num, &pinfo->src, &pinfo->dst, pinfo->ptype, pinfo->srcport, pinfo->destport, 0); if (conversation == NULL) { /* No conversation, create one */ @@ -240,6 +244,10 @@ dissect_smtp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) } if(request) { + + /* + * Create a frame data structure and attach it to the packet. + */ frame_data = se_alloc(sizeof(struct smtp_proto_data)); frame_data->conversation_id = conversation->index; |