Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion udatapath/packet_handle_std.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* Copyright (c) 2011, TrafficLab, Ericsson Research, Hungary
* Copyright (c) 2012, Budapest University of Technology and Economics
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -27,6 +28,7 @@
*
*
* Author: Zoltán Lajos Kis <[email protected]>
* Author: Felicián Németh <[email protected]>
*/

#include <stdlib.h>
Expand Down Expand Up @@ -296,7 +298,7 @@ packet_handle_std_create(struct packet *pkt) {
return handle;
}
struct packet_handle_std *
packet_handle_std_clone(struct packet *pkt, struct packet_handle_std *handle UNUSED) {
packet_handle_std_clone(struct packet *pkt, struct packet_handle_std *handle) {
struct packet_handle_std *clone = xmalloc(sizeof(struct packet_handle_std));

clone->pkt = pkt;
Expand All @@ -307,6 +309,7 @@ packet_handle_std_clone(struct packet *pkt, struct packet_handle_std *handle UNU
// TODO Zoltan: if handle->valid, then match could be memcpy'd, and protocol
// could be offset
packet_handle_std_validate(clone);
clone->match->metadata = handle->match->metadata;

return clone;
}
Expand Down