-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4596 from ARMmbed/release-candidate
Release candidate for mbed-os-5.5.1
- Loading branch information
Showing
244 changed files
with
30,026 additions
and
20,465 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_CM3DS_MPS2/lwipopts_conf.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* Copyright (c) 2017 ARM Limited | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
#ifndef LWIPOPTS_CONF_H | ||
#define LWIPOPTS_CONF_H | ||
|
||
#define LWIP_TRANSPORT_ETHERNET 1 | ||
|
||
/* The IEEE 802.3ac standard says the maximum Ethernet frame */ | ||
/* size is 1522 bytes to accommodate the four-byte VLAN tag. */ | ||
#define ETH_MAX_FLEN 1522u /* recommended size for a VLAN frame */ | ||
|
||
/* Maximum Transfer Unit | ||
* The IEEE 802.3 specification limits the data portion of the 802.3 frame | ||
* to a minimum of 46 and a maximum of 1500 bytes, this is on L3 level. | ||
*/ | ||
#define ETH_L2_HEADER_LEN 22u | ||
|
||
#define ETH_MAX_PAYLOAD_LEN (ETH_MAX_FLEN - ETH_L2_HEADER_LEN) | ||
|
||
#endif /* LWIPOPTS_CONF_H */ |
Oops, something went wrong.