• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

andrew-d / interfaces-rs / 388
34%

Build:
DEFAULT BRANCH: master
Ran 16 Feb 2017 05:26PM UTC
Jobs 2
Files 11
Run time 75min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
388

Pull #1

travis-ci

web-flow
Swap bytes when building IPv6 addresses.

As an example, the IPv6 address fe80::1 is represented in memory (in a
sin6_addr.s6_addr) as:

[0xfe, 0x80, 0x00, ..., 0x01]

So to construct an IPv6 address from 16-bit values, as is required by
net::Ipv6Addr::new, these should be passed as 0xfe80, 0x0000, etc.
However, the make_int16() function here was building them as 0x80fe,
etc. (or rather, it was being *called* in such a way to construct such
swapped integers). Because this function is used only to build IPv6
addresses, simply swapping the order of its parameters is sufficient to
properly construct IPv6 addresses.
Pull Request #1: Swap bytes when building IPv6 addresses.

360 of 414 relevant lines covered (86.96%)

0.87 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
6
100.0
Users/travis/build/andrew-d/interfaces-rs/src/lib.rs
Jobs
ID Job ID Ran Files Coverage
4 388.4 16 Feb 2017 06:42PM UTC 0
78.85
Travis Job 388.4
8 388.8 16 Feb 2017 05:27PM UTC 0
95.15
Travis Job 388.8
Source Files on build 388
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #388
  • Pull Request #1
  • PR Base - master (#315)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc