summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/net.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/net.c b/net/net.c
index 783f3d1ed1..c803c48a38 100644
--- a/net/net.c
+++ b/net/net.c
@@ -373,7 +373,7 @@ static struct net_connection *net_new(IPaddr_t dest, rx_handler_f *handler,
return ERR_PTR(-ENETDOWN);
con = xzalloc(sizeof(*con));
- con->packet = xmemalign(32, PKTSIZE);
+ con->packet = net_alloc_packet();
con->priv = ctx;
memset(con->packet, 0, PKTSIZE);
@@ -673,7 +673,7 @@ static int net_init(void)
int i;
for (i = 0; i < PKTBUFSRX; i++)
- NetRxPackets[i] = xmemalign(32, PKTSIZE);
+ NetRxPackets[i] = net_alloc_packet();
register_device(&net_device);
dev_add_param(&net_device, "nameserver", NULL, NULL, 0);