Skip to content

Commit

Permalink
[onwire] add comment
Browse files Browse the repository at this point in the history
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
  • Loading branch information
fabbione committed Mar 10, 2015
1 parent bab0da9 commit 8db2a58
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libknet/onwire.h
Expand Up @@ -160,6 +160,10 @@ struct knet_header {
#define kf_psize kh_payload.khp_pmtud.khp_pmtud_size
#define kf_pdata kh_payload.khp_pmtud.khp_pmtud_data

/*
* extra defines to avoid mingling with sizeof() too much
*/

#define KNET_HEADER_ALL_SIZE sizeof(struct knet_header)
#define KNET_HEADER_SIZE (sizeof(struct knet_header) - sizeof(union knet_header_payload))
#define KNET_HEADER_PING_SIZE KNET_HEADER_SIZE + sizeof(struct knet_header_payload_ping)
Expand Down

0 comments on commit 8db2a58

Please sign in to comment.