]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | /* |
503b54c9 | 2 | * Network interface definitions for the CUPS scheduler. |
ef416fc2 | 3 | * |
53f8d64f MS |
4 | * Copyright © 2007-2010 by Apple Inc. |
5 | * Copyright © 1997-2006 by Easy Software Products, all rights reserved. | |
ef416fc2 | 6 | * |
53f8d64f MS |
7 | * Licensed under Apache License v2.0. See the file "LICENSE" for more |
8 | * information. | |
ef416fc2 | 9 | */ |
10 | ||
11 | /* | |
12 | * Structures... | |
13 | */ | |
14 | ||
15 | typedef struct cupsd_netif_s /**** Network interface data ****/ | |
16 | { | |
ef416fc2 | 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 */ | |
e07d4801 | 22 | size_t hostlen; /* Length of hostname */ |
e00b005a | 23 | char name[32], /* Network interface name */ |
24 | hostname[1]; /* Hostname associated with interface */ | |
ef416fc2 | 25 | } cupsd_netif_t; |
26 | ||
27 | ||
28 | /* | |
29 | * Globals... | |
30 | */ | |
31 | ||
411affcf | 32 | VAR int NetIFUpdate VALUE(1); |
33 | /* Network interface list needs updating */ | |
e00b005a | 34 | VAR cups_array_t *NetIFList VALUE(NULL); |
35 | /* Array of network interfaces */ | |
ef416fc2 | 36 | |
37 | /* | |
38 | * Prototypes... | |
39 | */ | |
40 | ||
41 | extern cupsd_netif_t *cupsdNetIFFind(const char *name); | |
ef416fc2 | 42 | extern void cupsdNetIFUpdate(void); |