Fix route message type
netlink/route/route.scm
38 | 38 | ||
39 | 39 | (define-data-type route-message | |
40 | 40 | (lambda (msg) | |
41 | - | (+ 12 (route-attr-list-size (addr-message-type-attrs msg)))) | |
41 | + | (+ 12 (route-attr-list-size (route-message-type-attrs msg)))) | |
42 | 42 | (lambda (msg pos bv) | |
43 | 43 | (match msg | |
44 | 44 | (($ route-message-type family dest-len src-len tos table protocol | |
… | |||
53 | 53 | (bytevector-u8-set! bv (+ pos 7) type) | |
54 | 54 | (bytevector-u32-set! bv (+ pos 8) flags (native-endianness)) | |
55 | 55 | (serialize-route-attr-list attrs (+ pos 12) bv)))) | |
56 | - | (family addr-message-family addr-message-type-family) | |
57 | - | (dest-len addr-message-dest-len addr-message-type-dest-len) | |
58 | - | (src-len addr-message-src-len addr-message-type-src-len) | |
59 | - | (tos addr-message-tos addr-message-type-tos) | |
60 | - | (table addr-message-table addr-message-type-table) | |
61 | - | (protocol addr-message-protocol addr-message-type-protocol) | |
62 | - | (scope addr-message-scope addr-message-type-scope) | |
63 | - | (type addr-message-kind addr-message-type-type) | |
64 | - | (flags addr-message-flags addr-message-type-flags) | |
65 | - | (attrs addr-message-attrs addr-message-type-attrs)) | |
56 | + | (family route-message-family route-message-type-family) | |
57 | + | (dest-len route-message-dest-len route-message-type-dest-len) | |
58 | + | (src-len route-message-src-len route-message-type-src-len) | |
59 | + | (tos route-message-tos route-message-type-tos) | |
60 | + | (table route-message-table route-message-type-table) | |
61 | + | (protocol route-message-protocol route-message-type-protocol) | |
62 | + | (scope route-message-scope route-message-type-scope) | |
63 | + | (type route-message-kind route-message-type-type) | |
64 | + | (flags route-message-flags route-message-type-flags) | |
65 | + | (attrs route-message-attrs route-message-type-attrs)) | |
66 | 66 | ||
67 | 67 | (define (deserialize-route-message decoder bv pos) | |
68 | 68 | (let ((family (bytevector-u8-ref bv pos))) |