]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blob - cups/patches/cups-hp-deviceid-oid.patch
Change file layout of the makefiles.
[people/arne_f/ipfire-3.x.git] / cups / patches / cups-hp-deviceid-oid.patch
1 diff -up cups-1.4.3/backend/snmp.c.hp-deviceid-oid cups-1.4.3/backend/snmp.c
2 --- cups-1.4.3/backend/snmp.c.hp-deviceid-oid 2009-12-08 02:13:42.000000000 +0000
3 +++ cups-1.4.3/backend/snmp.c 2010-04-13 15:00:26.486148914 +0100
4 @@ -194,6 +194,7 @@ static const int UriOID[] = { CUPS_OID_p
5 static const int LexmarkProductOID[] = { 1,3,6,1,4,1,641,2,1,2,1,2,1,-1 };
6 static const int LexmarkProductOID2[] = { 1,3,6,1,4,1,674,10898,100,2,1,2,1,2,1,-1 };
7 static const int LexmarkDeviceIdOID[] = { 1,3,6,1,4,1,641,2,1,2,1,3,1,-1 };
8 +static const int HPDeviceIdOID[] = { 1,3,6,1,4,1,11,2,3,9,1,1,7,0,-1 };
9 static const int XeroxProductOID[] = { 1,3,6,1,4,1,128,2,1,3,1,2,0,-1 };
10 static cups_array_t *DeviceURIs = NULL;
11 static int HostNameLookups = 0;
12 @@ -1003,6 +1004,9 @@ read_snmp_response(int fd) /* I - SNMP
13 _cupsSNMPWrite(fd, &(packet.address), CUPS_SNMP_VERSION_1,
14 packet.community, CUPS_ASN1_GET_REQUEST,
15 DEVICE_PRODUCT, XeroxProductOID);
16 + _cupsSNMPWrite(fd, &(packet.address), CUPS_SNMP_VERSION_1,
17 + packet.community, CUPS_ASN1_GET_REQUEST,
18 + DEVICE_ID, HPDeviceIdOID);
19 break;
20
21 case DEVICE_DESCRIPTION :