diff options
author | Michael Brown <mcb30@ipxe.org> | 2014-03-04 13:10:07 +0000 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2014-03-04 13:13:54 +0000 |
commit | 6414b5ca036ade7545eb0c309c66731fced6e055 (patch) | |
tree | dd73109b6fbbff5e176b87c30df744665595cafb /src/net/ipv6.c | |
parent | db67de6f31a062dc1995d4561be83cd51609d6c4 (diff) | |
download | ipxe-6414b5ca036ade7545eb0c309c66731fced6e055.tar.gz |
[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 <mcb30@ipxe.org>
Diffstat (limited to 'src/net/ipv6.c')
-rw-r--r-- | src/net/ipv6.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/net/ipv6.c b/src/net/ipv6.c index 6f2e9477..f753751d 100644 --- a/src/net/ipv6.c +++ b/src/net/ipv6.c @@ -988,6 +988,7 @@ struct net_protocol ipv6_protocol __net_protocol = { struct tcpip_net_protocol ipv6_tcpip_protocol __tcpip_net_protocol = { .name = "IPv6", .sa_family = AF_INET6, + .header_len = sizeof ( struct ipv6_header ), .tx = ipv6_tx, .netdev = ipv6_netdev, }; |