Loading net/ipv4/ipconfig.c +38 −35 Original line number Diff line number Diff line Loading @@ -879,7 +879,8 @@ static void __init ic_do_bootp_ext(u8 *ext) } break; case 12: /* Host name */ ic_bootp_string(utsname()->nodename, ext+1, *ext, __NEW_UTS_LEN); ic_bootp_string(utsname()->nodename, ext+1, *ext, __NEW_UTS_LEN); ic_host_name_set = 1; break; case 15: /* Domain name (DNS) */ Loading @@ -887,14 +888,16 @@ static void __init ic_do_bootp_ext(u8 *ext) break; case 17: /* Root path */ if (!root_server_path[0]) ic_bootp_string(root_server_path, ext+1, *ext, sizeof(root_server_path)); ic_bootp_string(root_server_path, ext+1, *ext, sizeof(root_server_path)); break; case 26: /* Interface MTU */ memcpy(&mtu, ext+1, sizeof(mtu)); ic_dev_mtu = ntohs(mtu); break; case 40: /* NIS Domain name (_not_ DNS) */ ic_bootp_string(utsname()->domainname, ext+1, *ext, __NEW_UTS_LEN); ic_bootp_string(utsname()->domainname, ext+1, *ext, __NEW_UTS_LEN); break; } } Loading Loading
net/ipv4/ipconfig.c +38 −35 Original line number Diff line number Diff line Loading @@ -879,7 +879,8 @@ static void __init ic_do_bootp_ext(u8 *ext) } break; case 12: /* Host name */ ic_bootp_string(utsname()->nodename, ext+1, *ext, __NEW_UTS_LEN); ic_bootp_string(utsname()->nodename, ext+1, *ext, __NEW_UTS_LEN); ic_host_name_set = 1; break; case 15: /* Domain name (DNS) */ Loading @@ -887,14 +888,16 @@ static void __init ic_do_bootp_ext(u8 *ext) break; case 17: /* Root path */ if (!root_server_path[0]) ic_bootp_string(root_server_path, ext+1, *ext, sizeof(root_server_path)); ic_bootp_string(root_server_path, ext+1, *ext, sizeof(root_server_path)); break; case 26: /* Interface MTU */ memcpy(&mtu, ext+1, sizeof(mtu)); ic_dev_mtu = ntohs(mtu); break; case 40: /* NIS Domain name (_not_ DNS) */ ic_bootp_string(utsname()->domainname, ext+1, *ext, __NEW_UTS_LEN); ic_bootp_string(utsname()->domainname, ext+1, *ext, __NEW_UTS_LEN); break; } } Loading