diff options
| author | Michael Brown | 2007-08-02 15:51:03 +0200 |
|---|---|---|
| committer | Michael Brown | 2007-08-02 15:51:03 +0200 |
| commit | 9fd6a0418f38461d6d87f2c88785028d65fd6a1c (patch) | |
| tree | bfd75ca6c34652464d2e9b02fe4cc06b210e444c /src/net/udp | |
| parent | Use otherwise-useless byte in DHCP feature option as a version number (diff) | |
| download | ipxe-9fd6a0418f38461d6d87f2c88785028d65fd6a1c.tar.gz ipxe-9fd6a0418f38461d6d87f2c88785028d65fd6a1c.tar.xz ipxe-9fd6a0418f38461d6d87f2c88785028d65fd6a1c.zip | |
Allowed zero-cost enforced ordering of features in startup banner
list.
Added FEATURE() macros to most relevant (non-driver) files.
Diffstat (limited to 'src/net/udp')
| -rw-r--r-- | src/net/udp/dns.c | 3 | ||||
| -rw-r--r-- | src/net/udp/tftp.c | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/net/udp/dns.c b/src/net/udp/dns.c index b141eea42..f32b2e055 100644 --- a/src/net/udp/dns.c +++ b/src/net/udp/dns.c @@ -31,6 +31,7 @@ #include <gpxe/retry.h> #include <gpxe/tcpip.h> #include <gpxe/dhcp.h> +#include <gpxe/features.h> #include <gpxe/dns.h> /** @file @@ -39,6 +40,8 @@ * */ +FEATURE ( FEATURE_PROTOCOL, "DNS", DHCP_EB_FEATURE_DNS, 1 ); + /** The DNS server */ static struct sockaddr_tcpip nameserver = { .st_port = htons ( DNS_PORT ), diff --git a/src/net/udp/tftp.c b/src/net/udp/tftp.c index 106c70475..ea4d1df30 100644 --- a/src/net/udp/tftp.c +++ b/src/net/udp/tftp.c @@ -30,6 +30,7 @@ #include <gpxe/uri.h> #include <gpxe/tcpip.h> #include <gpxe/retry.h> +#include <gpxe/features.h> #include <gpxe/tftp.h> /** @file @@ -38,6 +39,8 @@ * */ +FEATURE ( FEATURE_PROTOCOL, "TFTP", DHCP_EB_FEATURE_TFTP, 1 ); + /** * A TFTP request * |
