Lines Matching refs:curdev
846 pcap_if_t *curdev;
851 curdev = find_or_add_if(devlistp, name, if_flags, get_flags_func,
853 if (curdev == NULL) {
873 return (add_addr_to_dev(curdev, addr, addr_size, netmask,
884 add_addr_to_dev(pcap_if_t *curdev,
963 for (prevaddr = curdev->addresses; prevaddr != NULL; prevaddr = nextaddr) {
977 curdev->addresses = curaddr;
1002 pcap_if_t *curdev;
1007 curdev = find_dev(devlistp, name);
1008 if (curdev != NULL) {
1012 return (curdev);
1042 pcap_if_t *curdev;
1047 for (curdev = devlistp->beginning; curdev != NULL;
1048 curdev = curdev->next) {
1049 if (strcmp(name, curdev->name) == 0) {
1055 return (curdev);
1077 pcap_if_t *curdev, *prevdev, *nextdev;
1080 curdev = malloc(sizeof(pcap_if_t));
1081 if (curdev == NULL) {
1090 curdev->next = NULL;
1091 curdev->name = strdup(name);
1092 if (curdev->name == NULL) {
1095 free(curdev);
1102 curdev->description = NULL;
1107 curdev->description = strdup(description);
1108 if (curdev->description == NULL) {
1111 free(curdev->name);
1112 free(curdev);
1116 curdev->addresses = NULL; /* list starts out as empty */
1117 curdev->flags = flags;
1123 this_figure_of_merit = get_figure_of_merit(curdev);
1176 curdev->next = nextdev;
1187 devlistp->beginning = curdev;
1189 prevdev->next = curdev;
1190 return (curdev);
1199 pcap_if_t *curdev, *nextdev;
1202 for (curdev = alldevs; curdev != NULL; curdev = nextdev) {
1203 nextdev = curdev->next;
1208 for (curaddr = curdev->addresses; curaddr != NULL; curaddr = nextaddr) {
1224 free(curdev->name);
1229 if (curdev->description != NULL)
1230 free(curdev->description);
1235 free(curdev);