diff options
author | Tom Gundersen <teg@jklm.no> | 2014-05-20 11:04:50 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-05-20 23:31:22 +0200 |
commit | 20b958bf157dfb2f521b191ef7158035bcaa3003 (patch) | |
tree | d5964a60f26aaa1aeb4b0771a1f2a2b0f0efed10 /.vimrc | |
parent | ece6e766cf89c8ec82ad135969dedf16cd7c1ee8 (diff) |
sd-dhcp: refactor dhcp_option_append
Store a pointer to the options in the DHCPMessage struct, and pass
this together with an offset around, rather than a uint8_t**.
This avoids us having to (re)compute the pointer; and changes
dhcp_option_append from adjusting both the pointer to the next
option and the remaining size of the options, to just adjusting
the current offset.
This makes the code a bit simpler to follow IMHO, but there should
be no functional change.
Diffstat (limited to '.vimrc')
0 files changed, 0 insertions, 0 deletions