Skip to content

Commit

Permalink
Rename a routine to match find_or_add_if().
Browse files Browse the repository at this point in the history
Rename add_addr_to_iflist() to add_addr_to_if().
  • Loading branch information
guyharris committed Jan 21, 2017
1 parent f819843 commit b758645
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion fad-getad.c
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ pcap_findalldevs_interfaces(pcap_if_list_t *devlistp, char *errbuf,
/*
* Add information for this address to the list.
*/
if (add_addr_to_iflist(devlistp, ifa->ifa_name, ifa->ifa_flags,
if (add_addr_to_if(devlistp, ifa->ifa_name, ifa->ifa_flags,
addr, addr_size, netmask, addr_size,
broadaddr, broadaddr_size, dstaddr, dstaddr_size,
errbuf) < 0) {
Expand Down
2 changes: 1 addition & 1 deletion fad-gifc.c
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ pcap_findalldevs_interfaces(pcap_if_list_t *devlistp, char *errbuf,
/*
* Add information for this address to the list.
*/
if (add_addr_to_iflist(devlistp, ifrp->ifr_name,
if (add_addr_to_if(devlistp, ifrp->ifr_name,
ifrflags.ifr_flags,
&ifrp->ifr_addr, SA_LEN(&ifrp->ifr_addr),
netmask, netmask_size, broadaddr, broadaddr_size,
Expand Down
2 changes: 1 addition & 1 deletion fad-glifc.c
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ pcap_findalldevs_interfaces(pcap_if_list_t *devlistp, char *errbuf,
/*
* Add information for this address to the list.
*/
if (add_addr_to_iflist(devlistp, ifrp->lifr_name,
if (add_addr_to_if(devlistp, ifrp->lifr_name,
ifrflags.lifr_flags,
(struct sockaddr *)&ifrp->lifr_addr,
sizeof (struct sockaddr_storage),
Expand Down
2 changes: 1 addition & 1 deletion pcap-int.h
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ int add_addr_to_dev(pcap_if_t *, struct sockaddr *, size_t,
#ifndef _WIN32
pcap_if_t *find_or_add_if(pcap_if_list_t *, const char *, bpf_u_int32,
char *);
int add_addr_to_iflist(pcap_if_list_t *, const char *, bpf_u_int32,
int add_addr_to_if(pcap_if_list_t *, const char *, bpf_u_int32,
struct sockaddr *, size_t, struct sockaddr *, size_t,
struct sockaddr *, size_t, struct sockaddr *, size_t, char *);
#endif
Expand Down
2 changes: 1 addition & 1 deletion pcap.c
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,7 @@ find_or_add_if(pcap_if_list_t *devlistp, const char *name,
* add interfaces even if they have no addresses.)
*/
int
add_addr_to_iflist(pcap_if_list_t *devlistp, const char *name,
add_addr_to_if(pcap_if_list_t *devlistp, const char *name,
bpf_u_int32 if_flags,
struct sockaddr *addr, size_t addr_size,
struct sockaddr *netmask, size_t netmask_size,
Expand Down

0 comments on commit b758645

Please sign in to comment.