summaryrefslogtreecommitdiff
path: root/xmalloc.c
diff options
context:
space:
mode:
authorVadim Kochan <vadim4j@gmail.com>2017-07-29 12:46:07 +0300
committerTobias Klauser <tklauser@distanz.ch>2017-08-10 09:03:29 +0200
commitd55874b960a8663cc86284fad4d0472ff37b7a7e (patch)
tree986e609f494dc1047d6b50b6ffc10da17b03f370 /xmalloc.c
parenta5a6c39b90b1d12d67b5c166cf873a99faf0a05a (diff)
trafgen: Get packet from proto_hdr if possible
Replace using current_packet() by new proto_hdr_packet(hdr) function to obtain packet directly from header. This is more generic and flexible way, because it guarantees that packet really belongs to the header, which in case in current_packet() is not right because it means getting of last allocated packet. Signed-off-by: Vadim Kochan <vadim4j@gmail.com> Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'xmalloc.c')
0 files changed, 0 insertions, 0 deletions