]> git.ipfire.org Git - thirdparty/cups.git/blob - scheduler/network.h
Fix local privilege escalation to root and sandbox bypasses in scheduler
[thirdparty/cups.git] / scheduler / network.h
1 /*
2 * Network interface definitions for the CUPS scheduler.
3 *
4 * Copyright © 2007-2010 by Apple Inc.
5 * Copyright © 1997-2006 by Easy Software Products, all rights reserved.
6 *
7 * Licensed under Apache License v2.0. See the file "LICENSE" for more
8 * information.
9 */
10
11 /*
12 * Structures...
13 */
14
15 typedef struct cupsd_netif_s /**** Network interface data ****/
16 {
17 int is_local, /* Local (not point-to-point) interface? */
18 port; /* Listen port */
19 http_addr_t address, /* Network address */
20 mask, /* Network mask */
21 broadcast; /* Broadcast address */
22 size_t hostlen; /* Length of hostname */
23 char name[32], /* Network interface name */
24 hostname[1]; /* Hostname associated with interface */
25 } cupsd_netif_t;
26
27
28 /*
29 * Globals...
30 */
31
32 VAR int NetIFUpdate VALUE(1);
33 /* Network interface list needs updating */
34 VAR cups_array_t *NetIFList VALUE(NULL);
35 /* Array of network interfaces */
36
37 /*
38 * Prototypes...
39 */
40
41 extern cupsd_netif_t *cupsdNetIFFind(const char *name);
42 extern void cupsdNetIFUpdate(void);