Add more padding for arp packets 98/204698/3 accepted/tizen/unified/20190429.103809 submit/tizen/20190426.010452 submit/tizen/20190429.011734 submit/tizen/20190429.011734submit/tizen/20190429.011734
authorCheoleun Moon <chleun.moon@samsung.com>
Fri, 26 Apr 2019 00:22:26 +0000 (09:22 +0900)
committerCheoleun Moon <chleun.moon@samsung.com>
Fri, 26 Apr 2019 00:40:35 +0000 (09:40 +0900)
commit5696536bcf727a7e5598e1185ed84b408b3611bc
tree08ce8ef5e1b727fc803c1ef0eccce0882993d541
parent6aea4e00f2b9a1c70210ef480b5246829f15deaf
Add more padding for arp packets

The minimum size of ethernet frame is 512 bits (64 octets).
It is required for correct CSMA/CD protocol operation.
(ref: 4.2.3.3 and 4.4.2, IEEE Std 802.3-2018)

dev_validate_header() in linux/net/packet/af_packet.c checks the frame size
and sendto() returns EINVAL if it returns false.

Change-Id: If42738cb796e4827ae396bc1b4f596c2c498bf65
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
src/ip-conflict-detect.c