Commit Graph

109 Commits

Author SHA1 Message Date
8463a3fc5e Add ip_mask_to_prefix, ipv4_mask_to_prefix and ipv6_mask_to_prefix 2016-07-23 18:07:47 +01:00
e9aeab4cb4 Merge pull request #18 from ebarnard/ipv6
Add mask and contains to Ipv6Network
2016-07-18 13:31:26 -07:00
6a7838c2b0 Add mask and contains to Ipv6Network 2016-07-14 22:20:02 +02:00
289ec43324 Uprev for crates.io 2016-07-04 10:50:23 -07:00
46f454d528 Merge pull request #16 from faern/one-return-value
One return value
2016-07-04 10:49:08 -07:00
bdfba86fe9 Correct my email 2016-07-02 00:15:10 -07:00
6bb344bab3 Make mask, network and broadcast return Ipv4Addr 2016-06-30 19:41:49 +02:00
7346d133b3 rust-fmt 2016-06-30 19:41:48 +02:00
3286c5b9e8 Uprev for crates.io 2016-06-29 20:34:35 -07:00
9d7e6909f5 Merge pull request #14 from faern/update-authors
Add Linus to authors
2016-06-29 20:29:27 -07:00
dd01e59c5f Add Linus to authors 2016-06-30 05:27:09 +02:00
7785a1cf81 Merge pull request #13 from faern/simplify-broadcast
Simplify ipv4 broadcast implementation
2016-06-29 20:20:47 -07:00
3ebfd5d973 Simplify ipv4 broadcast implementation 2016-06-30 05:18:36 +02:00
5df3246b83 Merge pull request #12 from faern/split-files
Split library into modules
2016-06-29 20:13:40 -07:00
e07de702db Add documentation to some IPv4 methods 2016-06-30 05:08:54 +02:00
1d5ea2956f Move ipv4 iter method after constructors 2016-06-30 04:35:33 +02:00
3a083746f5 Remove code from lib.rs and import from submodules 2016-06-30 04:34:06 +02:00
5950239744 Add code to submodules 2016-06-30 04:33:13 +02:00
ec16a7d342 Merge pull request #10 from faern/iterator
Implement an iterator for Ipv4Network
2016-06-29 11:31:51 -07:00
0275491079 Implement an iterator for Ipv4Network 2016-06-29 20:11:01 +02:00
3e1297fa5c Merge pull request #8 from faern/clonable-structs
Implement useful traits on the Ip*Network structs
2016-06-20 22:56:56 -07:00
31d890735d Manually implement Display, uglier debug 2016-06-20 15:55:35 +02:00
b5b0856a04 Formatting 2016-06-20 13:20:40 +02:00
7dcbf53a0f Make IpNetworkError Clone,Eq,PartialEq 2016-06-20 13:20:28 +02:00
b50643fbae Make structs Copy,Hash,Eq,PartialEq 2016-06-20 13:18:44 +02:00
17e96ae764 Make the network structs/enums clonable 2016-06-20 01:00:19 +02:00
f0fcd60975 Publish a new version 2016-06-17 23:32:31 -07:00
a1b1b5aa46 Merge pull request #7 from faern/result-based-constructor
Result based constructor
2016-06-17 23:31:52 -07:00
1bb9b2c794 Allow non-zero host bits in from_cidr 2016-06-18 08:29:33 +02:00
81a9029fa3 Add from_cidr test 2016-06-18 08:05:18 +02:00
97af56a7c7 Return Results since arguments can be invalid nets 2016-06-18 08:00:36 +02:00
264ff0a760 Merge pull request #6 from faern/nth-size-methods
Add size and nth to Ipv4Network
2016-06-17 22:52:17 -07:00
8d57734a7d Make /32 net have size 1 2016-06-18 07:50:01 +02:00
b1837c10fa Add size and nth to Ipv4Network 2016-06-18 07:19:53 +02:00
0516fc8716 Merge pull request #5 from faern/fix-mask-bug
Fix Ipv4Network::mask shift overflow bug
2016-06-17 22:12:45 -07:00
dc763d2d03 Fix Ipv4Network::mask shift overflow bug 2016-06-18 06:32:03 +02:00
958a3f896e Uprev 2016-06-13 23:10:37 -07:00
7c54f0c9ea Merge pull request #3 from faern/master
Fix Ipv4Network::contains bug
2016-06-13 23:08:58 -07:00
0f9416f3b4 Fix Ipv4Network::contains bug 2016-06-13 22:58:01 +02:00
e812eb66ca Drop the ip crate 2016-03-19 11:12:01 -07:00
6c33091dc3 Update README.md 2016-02-18 01:20:52 -08:00
c74972a3b7 Merge pull request #2 from faern/master
Add from_cidr to parse strings
2016-02-12 14:09:49 -08:00
af76578eac Add check that IP in CIDR is network 2016-02-12 21:26:12 +01:00
235399c7e7 Add from_cidr to parse strs 2016-02-12 21:25:40 +01:00
2ed204be0f Uprev for crates.io 2016-02-12 10:49:27 -08:00
cff60d0cd9 Revert "Revert "Use the ip crate""
This reverts commit d5422c0fd7.
2016-02-12 10:48:10 -08:00
168a7b2dcf Remove redundant feature 2016-02-12 00:55:47 -08:00
d5422c0fd7 Revert "Use the ip crate"
This reverts commit 5f84d3a817.
2016-02-12 00:55:11 -08:00
af1cc62950 Uprev for crates.io 2016-01-31 22:40:31 -08:00
6cae23f69c Update clippy 2016-01-31 22:37:59 -08:00