diff options
author | Sander Vrijders <sander.vrijders@intec.ugent.be> | 2016-11-18 15:31:40 +0000 |
---|---|---|
committer | Sander Vrijders <sander.vrijders@intec.ugent.be> | 2016-11-18 15:31:40 +0000 |
commit | 1d39184abd7495bb3a2230ae8165bcf2cb2329fc (patch) | |
tree | 7af93244151b9260579794e5c8063a4e2eb3eb03 /src/ipcpd | |
parent | 4af11ad11303ae2efbd887e81fddaff8155aa23d (diff) | |
parent | 74a93600f89066cc210838ff2eddafee4448bf4e (diff) | |
download | ouroboros-1d39184abd7495bb3a2230ae8165bcf2cb2329fc.tar.gz ouroboros-1d39184abd7495bb3a2230ae8165bcf2cb2329fc.zip |
Merged in dstaesse/ouroboros/be-llc (pull request #304)
ipcpd: Fix SDU size check in LLC shim
Diffstat (limited to 'src/ipcpd')
-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 */ |