packet-protocols 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ipv4.rb +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c1aba4c63ddb0e0c6340ee262953c8d7241036f3
|
4
|
+
data.tar.gz: 335edd5dbd1e6d375d86a6f4a6a2cbdfcde57890
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 151c96d8f69edae4c26df54b802378ad0aa279d2370daa7956403f9ad9cbdb54b1118a622f793461be29e3040c9d69324428c52723432caae72e05f22316ca24
|
7
|
+
data.tar.gz: 94d6c2988bc3ef0895926d679c7f7f0c7a515ea3d2702b944f15a0d14c973fdae761cb43093ffcab51c16c13317dc1bd616b8f63b7a5dd0a47dc5b5e5ab8e5f7
|
data/lib/ipv4.rb
CHANGED
@@ -9,7 +9,8 @@ class Ipv4 < BinData::Record
|
|
9
9
|
endian :big
|
10
10
|
bit4 :version, asserted_value: 4
|
11
11
|
bit4 :header_length, initial_value: 5
|
12
|
-
|
12
|
+
bit6 :dscp
|
13
|
+
bit2 :ecn
|
13
14
|
uint16 :total_length, initial_value: -> { header_length_in_bytes + payload.length }
|
14
15
|
uint16 :identifier
|
15
16
|
bit1 :reserved
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: packet-protocols
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jérémy Pagé
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-10-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bindata-contrib
|