aboutsummaryrefslogtreecommitdiff
path: root/libexec/bootpd/bootp.h
diff options
context:
space:
mode:
Diffstat (limited to 'libexec/bootpd/bootp.h')
-rw-r--r--libexec/bootpd/bootp.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libexec/bootpd/bootp.h b/libexec/bootpd/bootp.h
index 479dd3b9e055..c3a3909287ba 100644
--- a/libexec/bootpd/bootp.h
+++ b/libexec/bootpd/bootp.h
@@ -38,6 +38,8 @@ SOFTWARE.
#define BP_FILE_LEN 128
#define BP_VEND_LEN 64
#define BP_MINPKTSZ 300 /* to check sizeof(struct bootp) */
+/* Overhead to fit a bootp message into an Ethernet packet. */
+#define BP_MSG_OVERHEAD (14 + 20 + 8) /* Ethernet + IP + UDP headers */
struct bootp {
unsigned char bp_op; /* packet opcode type */