|
Lines 50-55
Link Here
|
| 50 |
|
50 |
|
| 51 |
#define _IP_VHL |
51 |
#define _IP_VHL |
| 52 |
#include <netinet/in.h> |
52 |
#include <netinet/in.h> |
|
|
53 |
#include <netinet/myloop_masklen.h> |
| 53 |
#include <netinet/in_systm.h> |
54 |
#include <netinet/in_systm.h> |
| 54 |
#include <netinet/in_var.h> |
55 |
#include <netinet/in_var.h> |
| 55 |
#include <netinet/ip.h> |
56 |
#include <netinet/ip.h> |
|
Lines 612-619
Link Here
|
| 612 |
int optlen = (IP_VHL_HL(ip->ip_vhl) << 2) - sizeof(struct ip); |
613 |
int optlen = (IP_VHL_HL(ip->ip_vhl) << 2) - sizeof(struct ip); |
| 613 |
|
614 |
|
| 614 |
if (!in_canforward(ip->ip_src) && |
615 |
if (!in_canforward(ip->ip_src) && |
| 615 |
((ntohl(ip->ip_src.s_addr) & IN_CLASSA_NET) != |
616 |
!IN_MY_LOOP(ntohl(ip->ip_src.s_addr))) { |
| 616 |
(IN_LOOPBACKNET << IN_CLASSA_NSHIFT))) { |
|
|
| 617 |
m_freem(m); /* Bad return address */ |
617 |
m_freem(m); /* Bad return address */ |
| 618 |
goto done; /* Ip_output() will check for broadcast */ |
618 |
goto done; /* Ip_output() will check for broadcast */ |
| 619 |
} |
619 |
} |