mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-07-27 07:18:51 +08:00
PING6(8): Use local scope for functions
This commit is contained in:
parent
2f72888548
commit
aa5c35aec6
@ -261,40 +261,41 @@ static volatile sig_atomic_t seenint;
|
|||||||
static volatile sig_atomic_t seeninfo;
|
static volatile sig_atomic_t seeninfo;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __rtems__
|
static int main(int, char *[]);
|
||||||
int main_ping6(int, char *[]);
|
static void fill(char *, char *);
|
||||||
#else
|
static int get_hoplim(struct msghdr *);
|
||||||
int main(int, char *[]);
|
static int get_pathmtu(struct msghdr *);
|
||||||
#endif
|
static struct in6_pktinfo *get_rcvpktinfo(struct msghdr *);
|
||||||
void fill(char *, char *);
|
static void onsignal(int);
|
||||||
int get_hoplim(struct msghdr *);
|
static void retransmit(void);
|
||||||
int get_pathmtu(struct msghdr *);
|
static void onint(int);
|
||||||
struct in6_pktinfo *get_rcvpktinfo(struct msghdr *);
|
static size_t pingerlen(void);
|
||||||
void onsignal(int);
|
static int pinger(void);
|
||||||
void retransmit(void);
|
static const char *pr_addr(struct sockaddr *, int);
|
||||||
void onint(int);
|
static void pr_icmph(struct icmp6_hdr *, u_char *);
|
||||||
size_t pingerlen(void);
|
static void pr_iph(struct ip6_hdr *);
|
||||||
int pinger(void);
|
static void pr_suptypes(struct icmp6_nodeinfo *, size_t);
|
||||||
const char *pr_addr(struct sockaddr *, int);
|
static void pr_nodeaddr(struct icmp6_nodeinfo *, int);
|
||||||
void pr_icmph(struct icmp6_hdr *, u_char *);
|
static int myechoreply(const struct icmp6_hdr *);
|
||||||
void pr_iph(struct ip6_hdr *);
|
static int mynireply(const struct icmp6_nodeinfo *);
|
||||||
void pr_suptypes(struct icmp6_nodeinfo *, size_t);
|
static char *dnsdecode(const u_char **, const u_char *, const u_char *,
|
||||||
void pr_nodeaddr(struct icmp6_nodeinfo *, int);
|
|
||||||
int myechoreply(const struct icmp6_hdr *);
|
|
||||||
int mynireply(const struct icmp6_nodeinfo *);
|
|
||||||
char *dnsdecode(const u_char **, const u_char *, const u_char *,
|
|
||||||
char *, size_t);
|
char *, size_t);
|
||||||
void pr_pack(u_char *, int, struct msghdr *);
|
static void pr_pack(u_char *, int, struct msghdr *);
|
||||||
void pr_exthdrs(struct msghdr *);
|
static void pr_exthdrs(struct msghdr *);
|
||||||
void pr_ip6opt(void *, size_t);
|
static void pr_ip6opt(void *, size_t);
|
||||||
void pr_rthdr(void *, size_t);
|
static void pr_rthdr(void *, size_t);
|
||||||
int pr_bitrange(u_int32_t, int, int);
|
static int pr_bitrange(u_int32_t, int, int);
|
||||||
void pr_retip(struct ip6_hdr *, u_char *);
|
static void pr_retip(struct ip6_hdr *, u_char *);
|
||||||
void summary(void);
|
static void summary(void);
|
||||||
void tvsub(struct timeval *, struct timeval *);
|
static void tvsub(struct timeval *, struct timeval *);
|
||||||
int setpolicy(int, char *);
|
#ifdef IPSEC
|
||||||
char *nigroup(char *);
|
#ifdef IPSEC_POLICY_IPSEC
|
||||||
void usage(void);
|
static int setpolicy(int, char *);
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
static char *nigroup(char *);
|
||||||
|
static void usage(void);
|
||||||
|
|
||||||
|
|
||||||
int
|
int
|
||||||
#ifdef __rtems__
|
#ifdef __rtems__
|
||||||
|
Loading…
x
Reference in New Issue
Block a user