-
- Downloads
Fix alignment of headers in the packet buffer
This patch makes sure that all heaaders start at a four byte
boundary. This is done by not having the ethernet header, which
is 14 bytes long, in the packet buffer.
This fixes the remote mode for platforms having strict alignment
restrictions, like ARM. Without this patch you can't use the remote
mode on a Rasperry Pi running FreeBSD.
This patch has been tested on Linux (Intel) in local and remote mode
and one FreeBSD (Intel and ARM) in local and remote mode.
Signed-off-by:
Michael Tuexen <tuexen@fh-muenster.de>
Showing
- gtests/net/packetdrill/checksum.c 2 additions, 5 deletionsgtests/net/packetdrill/checksum.c
- gtests/net/packetdrill/checksum_test.c 4 additions, 4 deletionsgtests/net/packetdrill/checksum_test.c
- gtests/net/packetdrill/netdev.c 7 additions, 6 deletionsgtests/net/packetdrill/netdev.c
- gtests/net/packetdrill/netdev.h 0 additions, 1 deletiongtests/net/packetdrill/netdev.h
- gtests/net/packetdrill/packet.c 1 addition, 3 deletionsgtests/net/packetdrill/packet.c
- gtests/net/packetdrill/packet.h 0 additions, 1 deletiongtests/net/packetdrill/packet.h
- gtests/net/packetdrill/packet_parser.c 3 additions, 32 deletionsgtests/net/packetdrill/packet_parser.c
- gtests/net/packetdrill/packet_parser.h 1 addition, 7 deletionsgtests/net/packetdrill/packet_parser.h
- gtests/net/packetdrill/packet_parser_test.c 9 additions, 8 deletionsgtests/net/packetdrill/packet_parser_test.c
- gtests/net/packetdrill/packet_socket.h 1 addition, 1 deletiongtests/net/packetdrill/packet_socket.h
- gtests/net/packetdrill/packet_socket_linux.c 45 additions, 7 deletionsgtests/net/packetdrill/packet_socket_linux.c
- gtests/net/packetdrill/packet_socket_pcap.c 40 additions, 13 deletionsgtests/net/packetdrill/packet_socket_pcap.c
- gtests/net/packetdrill/packet_to_string_test.c 4 additions, 6 deletionsgtests/net/packetdrill/packet_to_string_test.c
- gtests/net/packetdrill/types.h 3 additions, 0 deletionsgtests/net/packetdrill/types.h
- gtests/net/packetdrill/wire_server_netdev.c 2 additions, 3 deletionsgtests/net/packetdrill/wire_server_netdev.c
Loading
Please register or sign in to comment