landgraf / rpms / cups

Forked from rpms/cups 6 years ago
Clone
120cd7f
diff -up cups-1.4.3/backend/snmp.c.hp-deviceid-oid cups-1.4.3/backend/snmp.c
120cd7f
--- cups-1.4.3/backend/snmp.c.hp-deviceid-oid	2009-12-08 02:13:42.000000000 +0000
120cd7f
+++ cups-1.4.3/backend/snmp.c	2010-04-13 15:00:26.486148914 +0100
120cd7f
@@ -194,6 +194,7 @@ static const int	UriOID[] = { CUPS_OID_p
120cd7f
 static const int	LexmarkProductOID[] = { 1,3,6,1,4,1,641,2,1,2,1,2,1,-1 };
120cd7f
 static const int	LexmarkProductOID2[] = { 1,3,6,1,4,1,674,10898,100,2,1,2,1,2,1,-1 };
120cd7f
 static const int	LexmarkDeviceIdOID[] = { 1,3,6,1,4,1,641,2,1,2,1,3,1,-1 };
120cd7f
+static const int	HPDeviceIdOID[] = { 1,3,6,1,4,1,11,2,3,9,1,1,7,0,-1 };
120cd7f
 static const int	XeroxProductOID[] = { 1,3,6,1,4,1,128,2,1,3,1,2,0,-1 };
120cd7f
 static cups_array_t	*DeviceURIs = NULL;
120cd7f
 static int		HostNameLookups = 0;
120cd7f
@@ -1003,6 +1004,9 @@ read_snmp_response(int fd)		/* I - SNMP 
120cd7f
 	_cupsSNMPWrite(fd, &(packet.address), CUPS_SNMP_VERSION_1,
120cd7f
 	               packet.community, CUPS_ASN1_GET_REQUEST,
120cd7f
 		       DEVICE_PRODUCT, XeroxProductOID);
120cd7f
+	_cupsSNMPWrite(fd, &(packet.address), CUPS_SNMP_VERSION_1,
120cd7f
+		       packet.community, CUPS_ASN1_GET_REQUEST,
120cd7f
+		       DEVICE_ID, HPDeviceIdOID);
120cd7f
         break;
120cd7f
 
120cd7f
     case DEVICE_DESCRIPTION :