Ver código fonte

[IPv4] Add a config option for IPv4

IPv4 may not always be dragged into the link, so add a specific
configuration option for it.
tags/v0.9.4
Michael Brown 16 anos atrás
pai
commit
0fbe484566
2 arquivos alterados com 22 adições e 11 exclusões
  1. 10
    0
      src/config.h
  2. 12
    11
      src/core/config.c

+ 10
- 0
src/config.h Ver arquivo

@@ -74,6 +74,16 @@
74 74
 
75 75
 /* @END isa.h */
76 76
 
77
+/* @BEGIN general.h
78
+ *
79
+ * Network protocols
80
+ *
81
+ */
82
+
83
+#define	NET_PROTO_IPV4		/* IPv4 protocol */
84
+
85
+/* @END general.h */
86
+
77 87
 /* @BEGIN general.h
78 88
  *
79 89
  * Download protocols

+ 12
- 11
src/core/config.c Ver arquivo

@@ -53,40 +53,42 @@
53 53
 #ifdef CONSOLE_FIRMWARE
54 54
 REQUIRE_OBJECT ( bios_console );
55 55
 #endif
56
-
57 56
 #ifdef CONSOLE_SERIAL
58 57
 REQUIRE_OBJECT ( serial );
59 58
 #endif
60
-
61 59
 #ifdef CONSOLE_DIRECT_VGA
62 60
 REQUIRE_OBJECT ( video_subr );
63 61
 #endif
64
-
65 62
 #ifdef CONSOLE_BTEXT
66 63
 REQUIRE_OBJECT ( btext );
67 64
 #endif
68
-
69 65
 #ifdef CONSOLE_PC_KBD
70 66
 REQUIRE_OBJECT ( pc_kbd );
71 67
 #endif
72
-
73 68
 #ifdef CONSOLE_SYSLOG
74 69
 REQUIRE_OBJECT ( syslog );
75 70
 #endif
76 71
 
77 72
 /*
78
- * Timers
73
+ * Drag in all requested timers
79 74
  */
80
-
81 75
 #ifdef TIMER_BIOS
82 76
 REQUIRE_OBJECT ( timer_bios );
83 77
 #endif
84
-
85 78
 #ifdef TIMER_RDTSC
86 79
 REQUIRE_OBJECT ( timer_rdtsc );
87 80
 #endif
81
+
88 82
 /*
89
- * Drag in all requested protocols
83
+ * Drag in all requested network protocols
84
+ *
85
+ */
86
+#ifdef NET_PROTO_IPV4
87
+REQUIRE_OBJECT ( ipv4 );
88
+#endif
89
+
90
+/*
91
+ * Drag in all requested download protocols
90 92
  *
91 93
  */
92 94
 #ifdef DOWNLOAD_PROTO_TFTP
@@ -112,13 +114,12 @@ REQUIRE_OBJECT ( slam );
112 114
 #endif
113 115
 
114 116
 /*
115
- * Drag in any required resolvers
117
+ * Drag in all requested resolvers
116 118
  *
117 119
  */
118 120
 #ifdef DNS_RESOLVER
119 121
 REQUIRE_OBJECT ( dns );
120 122
 #endif
121
-
122 123
 #ifdef NMB_RESOLVER
123 124
 REQUIRE_OBJECT ( nmb );
124 125
 #endif

Carregando…
Cancelar
Salvar