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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/ipv4.rb +2 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9bbbb24c46f7d85ec01534c62f20acd8c7df79a8
4
- data.tar.gz: 52a1ef18c24a6d5ec5e7e92fb8273bbd0d1f059c
3
+ metadata.gz: c1aba4c63ddb0e0c6340ee262953c8d7241036f3
4
+ data.tar.gz: 335edd5dbd1e6d375d86a6f4a6a2cbdfcde57890
5
5
  SHA512:
6
- metadata.gz: d1fe1c367e19755341b18c5a629d572f90dc9a6924fa5a889a42b18604ef5496aae701a983e846625a63fdddad6bde5600e451bdae4f269f6fb42ecf9b5daeaf
7
- data.tar.gz: 981099497194f82ce81cb99638276cb31dfdcf757353cb9f4d08d15f9a3537676a6854015bda418a848765f14cb1b2953d1db24e6eb859c15841016adb9c1f6f
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
- uint8 :tos
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.0
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-07-21 00:00:00.000000000 Z
11
+ date: 2015-10-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bindata-contrib