Displaying 2 results from an estimated 2 matches for "inet_addr_typ".
Did you mean:
inet_addr_type
2007 Apr 18
1
[Bridge] Help needed about IP class finding in a bridge netfilter module
...plugin, i would like to test if a packet is:
- unicast
- multicast
- broadcast
The starting condition is that the bridge has no knowledge of the IP
configuration of the sending and receiving stations. It does not know
about their netmask e.g.
I have tried the following function (from 2.6 kernel):
inet_addr_type(u32 addr), but it always return RTN_UNICAST, and never
RTN_MULTICAST, RTN_BROADCAST.
For example, for this address: 10.255.255.255 it returns RTN_UNICAST.
How could the bridge decide in which class is the destination IP of a
skb, and what is my error?
Thx in advance.
LOUIS
2006 Oct 23
1
[Bug 512] poptop (pptpd) will not work if ip_nat_pptp loaded
...current netfilter NAT core is not able to do
* this :( For now we use TCP source port. This breaks
* multiple calls within one control session */
/* save original call ID in nat_info */
nat_pptp_info->pns_call_id = ct_pptp_info->pns_call_id;
/* He Yi Oct 22, 2006 */
if( inet_addr_type(iph->daddr) == RTN_LOCAL )
{
DEBUGP("DO NOT CHANGE PPTP CALL ID FOR LOCAL
SERVICE!\n");
new_callid = ct_pptp_info->pns_call_id;
} else {
/* NATed src port is the dst port of the reply
*/
new_callid = ct->tuplehash
[IP_CT_DIR_REPLY].tuple.dst.u.tcp.port;...