[tcp] Allow out-of-order receive queue to be discarded
[gpxe.git] / src / arch / i386 / interface / pcbios / keepsan.c
blob904e017d8c9fc0d5fa0cd2f371f68dd431d093ad
1 #include <stdint.h>
2 #include <stdio.h>
3 #include <gpxe/settings.h>
4 #include <gpxe/dhcp.h>
5 #include <gpxe/init.h>
6 #include <gpxe/sanboot.h>
7 #include <usr/autoboot.h>
9 struct setting keep_san_setting __setting = {
10 .name = "keep-san",
11 .description = "Preserve SAN connection",
12 .tag = DHCP_EB_KEEP_SAN,
13 .type = &setting_type_int8,
16 int keep_san ( void ) {
17 int keep_san;
19 keep_san = fetch_intz_setting ( NULL, &keep_san_setting );
20 if ( ! keep_san )
21 return 0;
23 printf ( "Preserving connection to SAN disk\n" );
24 shutdown_exit_flags |= SHUTDOWN_KEEP_DEVICES;
25 return 1;