summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@intec.ugent.be>2016-11-18 16:24:30 +0100
committerdimitri staessens <dimitri.staessens@intec.ugent.be>2016-11-18 16:24:30 +0100
commit74a93600f89066cc210838ff2eddafee4448bf4e (patch)
tree7af93244151b9260579794e5c8063a4e2eb3eb03 /src
parent4af11ad11303ae2efbd887e81fddaff8155aa23d (diff)
downloadouroboros-74a93600f89066cc210838ff2eddafee4448bf4e.tar.gz
ouroboros-74a93600f89066cc210838ff2eddafee4448bf4e.zip
ipcpd: Fix SDU size check in LLC shim
Total SDU size (including LLC header) cannot exceed 1500 bytes.
Diffstat (limited to 'src')
-rw-r--r--src/ipcpd/shim-eth-llc/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ipcpd/shim-eth-llc/main.c b/src/ipcpd/shim-eth-llc/main.c
index 3f3c0e1e..fafe8651 100644
--- a/src/ipcpd/shim-eth-llc/main.c
+++ b/src/ipcpd/shim-eth-llc/main.c
@@ -67,13 +67,13 @@ typedef ShimEthLlcMsg shim_eth_llc_msg_t;
#define THIS_TYPE IPCP_SHIM_ETH_LLC
#define MGMT_SAP 0x01
-#define SHIM_ETH_LLC_MAX_SDU_SIZE 1500
#define MAC_SIZE 6
#define LLC_HEADER_SIZE 3
#define MAX_SAPS 64
#define ETH_HEADER_SIZE (2 * MAC_SIZE + 2)
#define ETH_FRAME_SIZE (ETH_HEADER_SIZE + LLC_HEADER_SIZE \
+ SHIM_ETH_LLC_MAX_SDU_SIZE)
+#define SHIM_ETH_LLC_MAX_SDU_SIZE (1500 - LLC_HEADER_SIZE)
#define EVENT_WAIT_TIMEOUT 100 /* us */
#define NAME_QUERY_TIMEOUT 100000000 /* ns */