mirror of
https://github.com/eblot/pybootd.git
synced 2024-09-11 22:17:44 +03:00
Add option 81 meaning, and update log trace to help tracking unknown options
This commit is contained in:
parent
5cc8737c23
commit
7069761bcf
@ -137,6 +137,7 @@ DHCP_OPTIONS = {0: 'Byte padding',
|
|||||||
72: 'World Wide Web servers',
|
72: 'World Wide Web servers',
|
||||||
73: 'Finger servers',
|
73: 'Finger servers',
|
||||||
74: 'Internet Relay Chat server',
|
74: 'Internet Relay Chat server',
|
||||||
|
81: 'Client FQDN', # https://tools.ietf.org/html/rfc4702
|
||||||
93: 'System architecture',
|
93: 'System architecture',
|
||||||
94: 'Network type',
|
94: 'Network type',
|
||||||
97: 'UUID',
|
97: 'UUID',
|
||||||
@ -307,8 +308,8 @@ class BootpServer:
|
|||||||
self.log.debug(" option %d: '%s', size:%d %s" %
|
self.log.debug(" option %d: '%s', size:%d %s" %
|
||||||
(tag, option, length, hexline(value)))
|
(tag, option, length, hexline(value)))
|
||||||
except KeyError:
|
except KeyError:
|
||||||
self.log.debug(' unknown option %d, size:%d %s:' %
|
self.log.debug(' unknown option %d (0x%02x), size:%d %s:' %
|
||||||
(tag, length, hexline(value)))
|
(tag, tag, length, hexline(value)))
|
||||||
continue
|
continue
|
||||||
dhcp_tags[tag] = value
|
dhcp_tags[tag] = value
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user