Blame SOURCES/cups-ricoh-deviceid-oid.patch

ce62dc
diff -up cups-1.5b1/backend/snmp.c.ricoh-deviceid-oid cups-1.5b1/backend/snmp.c
ce62dc
--- cups-1.5b1/backend/snmp.c.ricoh-deviceid-oid	2011-05-24 17:29:48.000000000 +0200
ce62dc
+++ cups-1.5b1/backend/snmp.c	2011-05-24 17:29:48.000000000 +0200
ce62dc
@@ -188,6 +188,7 @@ static const int	LexmarkProductOID[] = {
ce62dc
 static const int	LexmarkProductOID2[] = { 1,3,6,1,4,1,674,10898,100,2,1,2,1,2,1,-1 };
ce62dc
 static const int	LexmarkDeviceIdOID[] = { 1,3,6,1,4,1,641,2,1,2,1,3,1,-1 };
ce62dc
 static const int	HPDeviceIdOID[] = { 1,3,6,1,4,1,11,2,3,9,1,1,7,0,-1 };
ce62dc
+static const int	RicohDeviceIdOID[] = { 1,3,6,1,4,1,367,3,2,1,1,1,11,0,-1 };
ce62dc
 static const int	XeroxProductOID[] = { 1,3,6,1,4,1,128,2,1,3,1,2,0,-1 };
ce62dc
 static cups_array_t	*DeviceURIs = NULL;
ce62dc
 static int		HostNameLookups = 0;
ce62dc
@@ -1005,6 +1006,9 @@ read_snmp_response(int fd)		/* I - SNMP 
ce62dc
 	               packet.community, CUPS_ASN1_GET_REQUEST,
ce62dc
 		       DEVICE_ID, LexmarkDeviceIdOID);
ce62dc
 	_cupsSNMPWrite(fd, &(packet.address), CUPS_SNMP_VERSION_1,
ce62dc
+		       packet.community, CUPS_ASN1_GET_REQUEST,
ce62dc
+		       DEVICE_ID, RicohDeviceIdOID);
ce62dc
+	_cupsSNMPWrite(fd, &(packet.address), CUPS_SNMP_VERSION_1,
ce62dc
 	               packet.community, CUPS_ASN1_GET_REQUEST,
ce62dc
 		       DEVICE_PRODUCT, XeroxProductOID);
ce62dc
 	_cupsSNMPWrite(fd, &(packet.address), CUPS_SNMP_VERSION_1,