MFhead@r313404
This commit is contained in:
commit
9ddd071605
@ -39,4 +39,4 @@
|
|||||||
char *flags_to_string(u_long flags, const char *def);
|
char *flags_to_string(u_long flags, const char *def);
|
||||||
int string_to_flags(char **stringp, u_long *setp, u_long *clrp);
|
int string_to_flags(char **stringp, u_long *setp, u_long *clrp);
|
||||||
|
|
||||||
#endif /* _UTIL_H_ */
|
#endif
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
# $FreeBSD$
|
# $FreeBSD$
|
||||||
|
|
||||||
arm/allwinner/timer.c standard
|
arm/allwinner/a10_timer.c standard
|
||||||
|
@ -667,13 +667,13 @@ udp_input(struct mbuf **mp, int *offp, int proto)
|
|||||||
INPLOOKUP_RLOCKPCB, ifp, m);
|
INPLOOKUP_RLOCKPCB, ifp, m);
|
||||||
if (inp == NULL) {
|
if (inp == NULL) {
|
||||||
if (udp_log_in_vain) {
|
if (udp_log_in_vain) {
|
||||||
char buf[4*sizeof "123"];
|
char src[INET_ADDRSTRLEN];
|
||||||
|
char dst[INET_ADDRSTRLEN];
|
||||||
|
|
||||||
strcpy(buf, inet_ntoa(ip->ip_dst));
|
|
||||||
log(LOG_INFO,
|
log(LOG_INFO,
|
||||||
"Connection attempt to UDP %s:%d from %s:%d\n",
|
"Connection attempt to UDP %s:%d from %s:%d\n",
|
||||||
buf, ntohs(uh->uh_dport), inet_ntoa(ip->ip_src),
|
inet_ntoa_r(ip->ip_dst, dst), ntohs(uh->uh_dport),
|
||||||
ntohs(uh->uh_sport));
|
inet_ntoa_r(ip->ip_src, src), ntohs(uh->uh_sport));
|
||||||
}
|
}
|
||||||
UDPSTAT_INC(udps_noport);
|
UDPSTAT_INC(udps_noport);
|
||||||
if (m->m_flags & (M_BCAST | M_MCAST)) {
|
if (m->m_flags & (M_BCAST | M_MCAST)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user