Skip to content

lpc1768: Remove invalid use of IP_SOF_BROADCAST_RECV option #4060

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 6, 2017

Conversation

geky
Copy link
Contributor

@geky geky commented Mar 28, 2017

From opt.h:

IP_SOF_BROADCAST_RECV (requires IP_SOF_BROADCAST=1) enable the broadcast filter on recv operations.

The IP_SOF_BROADCAST_RECV option does not enable or disable recieving broadcast packets, it only enables a software filter. The lpc1768 was using the IP_SOF_BROADCAST_RECV to disable recieving broadcasts entirely.

This resulted in an issue for certain DHCP servers, which apparently can respond to discover packets via broadcast.

Tested locally with with dump provided by @chrissnow

related: #4018, ARMmbed/mbed-os-example-sockets#17
cause: #3482
cc: @chrissnow, @toyowata, @kjbracey-arm

From opt.h:
IP_SOF_BROADCAST_RECV (requires IP_SOF_BROADCAST=1) enable the broadcast
filter on recv operations.

The IP_SOF_BROADCAST_RECV option does not enable or disable recieving
broadcast packets, it only enables a software filter.
@geky geky mentioned this pull request Mar 28, 2017
@toyowata
Copy link
Contributor

@geky It works fine. I posted the test result here: ARMmbed/mbed-os-example-sockets#17 (comment)

@0xc0170
Copy link
Contributor

0xc0170 commented Mar 29, 2017

/morph test-nightly

@chrissnow
Copy link
Contributor

@geky DHCP is working fine now with those changes.

@mbed-bot
Copy link

Result: FAILURE

Your command has finished executing! Here's what you wrote!

/morph test-nightly

Output

mbed Build Number: 1782

Test failed!

@geky
Copy link
Contributor Author

geky commented Mar 29, 2017

The tests passed but there was a hiccup in the CI that prevented the results from showing up green. According to @studavekar this has been fixed. Since this requires the heaviest CI the rerun can probably wait until the CI is less busy.

@geky
Copy link
Contributor Author

geky commented Mar 31, 2017

/morph test-nightly

@0xc0170
Copy link
Contributor

0xc0170 commented Apr 3, 2017

@bridadan Can you please restart nightly job?

@bridadan
Copy link
Contributor

bridadan commented Apr 3, 2017

/morph test-nightly

@mbed-bot
Copy link

mbed-bot commented Apr 3, 2017

Result: FAILURE

Your command has finished executing! Here's what you wrote!

/morph test-nightly

Output

mbed Build Number: 1816

Test failed!

@bridadan
Copy link
Contributor

bridadan commented Apr 3, 2017

We had an issue with one of the platforms in the test farm so I'm restarting this.

/morph test-nightly

@mbed-bot
Copy link

mbed-bot commented Apr 3, 2017

Result: SUCCESS

Your command has finished executing! Here's what you wrote!

/morph test-nightly

Output

mbed Build Number: 1818

All builds and test passed!

@sg- sg- merged commit 517982c into ARMmbed:master Apr 6, 2017
toyowata added a commit to toyowata/mbed-os-example-sockets that referenced this pull request May 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants