From 6414b5ca036ade7545eb0c309c66731fced6e055 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Tue, 4 Mar 2014 13:10:07 +0000 Subject: [tcpip] Provide tcpip_mtu() to determine the maximum transmission unit Provide the function tcpip_mtu() to allow external code to determine the (transport-layer) maximum transmission unit for a given socket address. Signed-off-by: Michael Brown --- src/net/ipv4.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/net/ipv4.c') diff --git a/src/net/ipv4.c b/src/net/ipv4.c index 8bda5c86f..c5cfd134d 100644 --- a/src/net/ipv4.c +++ b/src/net/ipv4.c @@ -621,6 +621,7 @@ struct net_protocol ipv4_protocol __net_protocol = { struct tcpip_net_protocol ipv4_tcpip_protocol __tcpip_net_protocol = { .name = "IPv4", .sa_family = AF_INET, + .header_len = sizeof ( struct iphdr ), .tx = ipv4_tx, .netdev = ipv4_netdev, }; -- cgit v1.2.3-55-g7522