Skip to content

IPv4 routing: treat "Ipaddr.V4.Prefix.broadcast network" also as broadcast address#430

Merged
hannesm merged 1 commit into
mirage:masterfrom
hannesm:ipv4-routing-broadcast
Aug 27, 2020
Merged

IPv4 routing: treat "Ipaddr.V4.Prefix.broadcast network" also as broadcast address#430
hannesm merged 1 commit into
mirage:masterfrom
hannesm:ipv4-routing-broadcast

Conversation

@hannesm
Copy link
Copy Markdown
Member

@hannesm hannesm commented Aug 26, 2020

fixes #427

@hannesm
Copy link
Copy Markdown
Member Author

hannesm commented Aug 27, 2020

on the receiving path, this is already handled similarly:

      let of_interest ip =
        Ipaddr.V4.(compare ip (Prefix.address t.cidr) = 0
                   || compare ip broadcast = 0
                   || compare ip (Prefix.broadcast t.cidr) = 0)
      in
      if not (of_interest packet.dst) then error else deal_with_it

@hannesm hannesm merged commit 862ab0f into mirage:master Aug 27, 2020
@hannesm hannesm deleted the ipv4-routing-broadcast branch August 27, 2020 09:01
hannesm added a commit to hannesm/opam-repository that referenced this pull request Sep 22, 2020
CHANGES:

* Assorted IPv6 improvements (mirage/mirage-tcpip#428 mirage/mirage-tcpip#431 mirage/mirage-tcpip#432 @MagnusS @hannesm)
  - set length in packets to be sent
  - preserve updated ctx from Ndv6.handle
  - fix ICMP checksum computation
  - implement Mirage_stack.V6 signature
  - add connect, mtu, iperf tests
  - fix DAD protocol implementation (and test it)
  - avoid out of bounds accesses of IPv6 packets (check length before accessing)
* Fix 32 bit issues (@MagnusS)
* Implement stack-direct and tcp disconnect: tear down existing connections (mirage/mirage-tcpip#429 @hannesm)
* Treat broadcast address of network as broadcast as well (mirage/mirage-tcpip#430 @hannesm, reported in mirage/mirage-tcpip#427)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

creating broadcast in unikernels

2 participants