File: addrmsg_ipv4.dump

package info (click to toggle)
pyroute2 0.8.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 3,700 kB
  • sloc: python: 50,245; makefile: 280; javascript: 183; ansic: 81; sh: 44; awk: 17
file content (52 lines) | stat: -rw-r--r-- 1,308 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# pyroute2 hex dump sample
#
# lo: 127.0.0.1/8
4c:00:00:00:14:00:02:00:02:01:00:00:c5:4e:00:00:02:08:80:fe:01:00:00:00:08:00:01:00:7f:00:00:01:08:00:02:00:7f:00:00:01:07:00:03:00:6c:6f:00:00:08:00:08:00:80:00:00:00:14:00:06:00:ff:ff:ff:ff:ff:ff:ff:ff:05:01:00:00:05:01:00:00

# parsed data should match messages below
#: application/json
[
    {
        "attrs": [
            [
                "IFA_ADDRESS",
                "127.0.0.1"
            ],
            [
                "IFA_LOCAL",
                "127.0.0.1"
            ],
            [
                "IFA_LABEL",
                "lo"
            ],
            [
                "IFA_FLAGS",
                128
            ],
            [
                "IFA_CACHEINFO",
                {
                    "cstamp": 261,
                    "ifa_preferred": 4294967295,
                    "ifa_valid": 4294967295,
                    "tstamp": 261
                }
            ]
        ],
        "event": "RTM_NEWADDR",
        "family": 2,
        "flags": 128,
        "header": {
            "error": null,
            "flags": 2,
            "length": 76,
            "pid": 20165,
            "sequence_number": 258,
            "type": 20
        },
        "index": 1,
        "prefixlen": 8,
        "scope": 254
    }
]