diff options
author | dimitri staessens <[email protected]> | 2016-11-18 16:24:30 +0100 |
---|---|---|
committer | dimitri staessens <[email protected]> | 2016-11-18 16:24:30 +0100 |
commit | 74a93600f89066cc210838ff2eddafee4448bf4e (patch) | |
tree | 7af93244151b9260579794e5c8063a4e2eb3eb03 /src/ipcpd/shim-eth-llc/main.c | |
parent | 4af11ad11303ae2efbd887e81fddaff8155aa23d (diff) | |
download | ouroboros-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/ipcpd/shim-eth-llc/main.c')
-rw-r--r-- | src/ipcpd/shim-eth-llc/main.c | 2 |
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 */ |