Lines Matching refs:mru

139     UINT16_t mru;  in parsePADOTags()  local
171 if (len == sizeof(mru)) { in parsePADOTags()
172 memcpy(&mru, data, sizeof(mru)); in parsePADOTags()
173 mru = ntohs(mru); in parsePADOTags()
174 if (mru >= ETH_PPPOE_MTU) { in parsePADOTags()
175 if (lcp_allowoptions[0].mru > mru) in parsePADOTags()
176 lcp_allowoptions[0].mru = mru; in parsePADOTags()
177 if (lcp_wantoptions[0].mru > mru) in parsePADOTags()
178 lcp_wantoptions[0].mru = mru; in parsePADOTags()
215 UINT16_t mru; in parsePADSTags() local
221 if (len == sizeof(mru)) { in parsePADSTags()
222 memcpy(&mru, data, sizeof(mru)); in parsePADSTags()
223 mru = ntohs(mru); in parsePADSTags()
224 if (mru >= ETH_PPPOE_MTU) { in parsePADSTags()
225 if (lcp_allowoptions[0].mru > mru) in parsePADSTags()
226 lcp_allowoptions[0].mru = mru; in parsePADSTags()
227 if (lcp_wantoptions[0].mru > mru) in parsePADSTags()
228 lcp_wantoptions[0].mru = mru; in parsePADSTags()
317 if (MIN(lcp_allowoptions[0].mru, lcp_wantoptions[0].mru) > ETH_PPPOE_MTU) { in sendPADI()
319 UINT16_t mru = htons(MIN(lcp_allowoptions[0].mru, lcp_wantoptions[0].mru)); in sendPADI() local
321 maxPayload.length = htons(sizeof(mru)); in sendPADI()
322 memcpy(maxPayload.payload, &mru, sizeof(mru)); in sendPADI()
323 CHECK_ROOM(cursor, packet.payload, sizeof(mru) + TAG_HDR_SIZE); in sendPADI()
324 memcpy(cursor, &maxPayload, sizeof(mru) + TAG_HDR_SIZE); in sendPADI()
325 cursor += sizeof(mru) + TAG_HDR_SIZE; in sendPADI()
326 plen += sizeof(mru) + TAG_HDR_SIZE; in sendPADI()
494 if (MIN(lcp_allowoptions[0].mru, lcp_wantoptions[0].mru) > ETH_PPPOE_MTU) { in sendPADR()
496 UINT16_t mru = htons(MIN(lcp_allowoptions[0].mru, lcp_wantoptions[0].mru)); in sendPADR() local
498 maxPayload.length = htons(sizeof(mru)); in sendPADR()
499 memcpy(maxPayload.payload, &mru, sizeof(mru)); in sendPADR()
500 CHECK_ROOM(cursor, packet.payload, sizeof(mru) + TAG_HDR_SIZE); in sendPADR()
501 memcpy(cursor, &maxPayload, sizeof(mru) + TAG_HDR_SIZE); in sendPADR()
502 cursor += sizeof(mru) + TAG_HDR_SIZE; in sendPADR()
503 plen += sizeof(mru) + TAG_HDR_SIZE; in sendPADR()
667 if (lcp_allowoptions[0].mru > ETH_PPPOE_MTU) in discovery()
668 lcp_allowoptions[0].mru = ETH_PPPOE_MTU; in discovery()
669 if (lcp_wantoptions[0].mru > ETH_PPPOE_MTU) in discovery()
670 lcp_wantoptions[0].mru = ETH_PPPOE_MTU; in discovery()