refactor: rename struct raw_layer to struct layer_private
This commit is contained in:
@@ -49,7 +49,7 @@ struct session_manager_options opts = {
|
||||
|
||||
static inline void packet_overwrite_src_addr(struct packet *pkt, struct in_addr addr)
|
||||
{
|
||||
const struct raw_layer *ipv4_layer = packet_get_innermost_raw_layer(pkt, LAYER_PROTO_IPV4);
|
||||
const struct layer_private *ipv4_layer = packet_get_innermost_layer(pkt, LAYER_PROTO_IPV4);
|
||||
struct ip *hdr = (struct ip *)ipv4_layer->hdr_ptr;
|
||||
hdr->ip_src = addr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user