summaryrefslogtreecommitdiffstats
path: root/src/net/ipv4.c
diff options
context:
space:
mode:
authorHolger Lubitz2007-08-20 20:30:11 +0200
committerHolger Lubitz2007-08-20 20:30:11 +0200
commit6f0eca14007d8d2c06dea9482adc3a0bd034fdb0 (patch)
tree3d536f32944ff50e5d21c252dd58b2514217c290 /src/net/ipv4.c
parentuse malloc attribute (diff)
downloadipxe-6f0eca14007d8d2c06dea9482adc3a0bd034fdb0.tar.gz
ipxe-6f0eca14007d8d2c06dea9482adc3a0bd034fdb0.tar.xz
ipxe-6f0eca14007d8d2c06dea9482adc3a0bd034fdb0.zip
use malloc attribute
Diffstat (limited to 'src/net/ipv4.c')
-rw-r--r--src/net/ipv4.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/net/ipv4.c b/src/net/ipv4.c
index 35341b3d..2f50f0e4 100644
--- a/src/net/ipv4.c
+++ b/src/net/ipv4.c
@@ -39,10 +39,9 @@ static LIST_HEAD ( frag_buffers );
* @v gateway Gateway address (or @c INADDR_NONE for no gateway)
* @ret miniroute Routing table entry, or NULL
*/
-static struct ipv4_miniroute * add_ipv4_miniroute ( struct net_device *netdev,
- struct in_addr address,
- struct in_addr netmask,
- struct in_addr gateway ) {
+static struct ipv4_miniroute * __malloc
+add_ipv4_miniroute ( struct net_device *netdev, struct in_addr address,
+ struct in_addr netmask, struct in_addr gateway ) {
struct ipv4_miniroute *miniroute;
DBG ( "IPv4 add %s", inet_ntoa ( address ) );