diff --git a/dhcp/client.scm b/dhcp/client.scm index 99e6530..0fa0174 100644 --- a/dhcp/client.scm +++ b/dhcp/client.scm @@ -20,9 +20,6 @@ coding: utf-8 !# -(add-to-load-path (string-append (dirname (current-filename)) - "/..")) - ; DHCP client module (define-module (dhcp client) #:export (main)) diff --git a/dhcp/dhcp.scm b/dhcp/dhcp.scm index 46242d9..cee2fa1 100644 --- a/dhcp/dhcp.scm +++ b/dhcp/dhcp.scm @@ -15,9 +15,6 @@ ;;; You should have received a copy of the GNU General Public License ;;; along with this program. If not, see . -(add-to-load-path (string-append (dirname (current-filename)) - "/..")) - (define-module (dhcp dhcp) #:export ( dhcp-start diff --git a/dhcp/interfaces.scm b/dhcp/interfaces.scm index fa595f5..e1854bd 100644 --- a/dhcp/interfaces.scm +++ b/dhcp/interfaces.scm @@ -15,9 +15,6 @@ ;;; You should have received a copy of the GNU General Public License ;;; along with this program. If not, see . -(add-to-load-path (string-append (dirname (current-filename)) - "/..")) - (define-module (dhcp interfaces) #:export ( hardware-address diff --git a/dhcp/messages.scm b/dhcp/messages.scm index 4c7c422..30261c3 100644 --- a/dhcp/messages.scm +++ b/dhcp/messages.scm @@ -15,9 +15,6 @@ ;;; You should have received a copy of the GNU General Public License ;;; along with this program. If not, see . -(add-to-load-path (string-append (dirname (current-filename)) - "/..")) - ; Module for constructing and parsing DHCP messages (define-module (dhcp messages) #:export ( @@ -100,8 +97,8 @@ simply ignored whilst serializing." (if (eq? #nil opt) (loop (1+ i)) (let ((code i) - (len (dhcp-option-len opt)) - (val (dhcp-option-val opt))) + (len (slot-ref opt 'len)) + (val (slot-ref opt 'val))) (begin (if (zero? len) (bytevector-u8-set! dst idx code) @@ -208,14 +205,14 @@ from BV starting at index START" (define-method (set-option! (msg ) (opt )) "Set an