patch-1.3.44 linux/net/core/sock.c

Next file: linux/net/ethernet/pe2.c
Previous file: linux/net/core/skbuff.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.43/linux/net/core/sock.c linux/net/core/sock.c
@@ -207,7 +207,10 @@
 			}
 			return 0;
 
-
+		case SO_BSDCOMPAT:
+			sk->bsdism = valbool;
+			return 0;
+			
 		default:
 		  	return(-ENOPROTOOPT);
   	}
@@ -285,7 +288,9 @@
 			memcpy_tofs(optval,&ling,sizeof(ling));
 			return 0;
 		
-
+		case SO_BSDCOMPAT:
+			val = sk->bsdism;
+			break;
 
 		default:
 			return(-ENOPROTOOPT);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this