You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
* 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6: (42 commits) [IPV6]: Consolidate the ip6_pol_route_(input|output) pair [TCP]: Make snd_cwnd_cnt 32-bit [TCP]: Update the /proc/net/tcp documentation [NETNS]: Don't panic on creating the namespace's loopback [NEIGH]: Ensure that pneigh_lookup is protected with RTNL [INET]: kmalloc+memset -> kzalloc in frag_alloc_queue [ISDN]: Fix compile with CONFIG_ISDN_X25 disabled. [IPV6]: Replace sk_buff ** with sk_buff * in input handlers [SELINUX]: Update for netfilter ->hook() arg changes. [INET]: Consolidate the xxx_put [INET]: Small cleanup for xxx_put after evictor consolidation [INET]: Consolidate the xxx_evictor [INET]: Consolidate the xxx_frag_destroy [INET]: Consolidate xxx_the secret_rebuild [INET]: Consolidate the xxx_frag_kill [INET]: Collect common frag sysctl variables together [INET]: Collect frag queues management objects together [INET]: Move common fields from frag_queues in one place. [TG3]: Fix performance regression on 5705. [ISDN]: Remove local copy of device name to make sure renames work. ...
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
This document describes the interfaces /proc/net/tcp and /proc/net/tcp6.
|
||||
Note that these interfaces are deprecated in favor of tcp_diag.
|
||||
|
||||
These /proc interfaces provide information about currently active TCP
|
||||
connections, and are implemented by tcp_get_info() in net/ipv4/tcp_ipv4.c and
|
||||
tcp6_get_info() in net/ipv6/tcp_ipv6.c, respectively.
|
||||
connections, and are implemented by tcp4_seq_show() in net/ipv4/tcp_ipv4.c
|
||||
and tcp6_seq_show() in net/ipv6/tcp_ipv6.c, respectively.
|
||||
|
||||
It will first list all listening TCP sockets, and next list all established
|
||||
TCP connections. A typical entry of /proc/net/tcp would look like this (split
|
||||
|
||||
+80
-66
@@ -328,7 +328,7 @@ isdn_net_autohup(void)
|
||||
l->cps = (l->transcount * HZ) / (jiffies - last_jiffies);
|
||||
l->transcount = 0;
|
||||
if (dev->net_verbose > 3)
|
||||
printk(KERN_DEBUG "%s: %d bogocps\n", l->name, l->cps);
|
||||
printk(KERN_DEBUG "%s: %d bogocps\n", p->dev->name, l->cps);
|
||||
if ((l->flags & ISDN_NET_CONNECTED) && (!l->dialstate)) {
|
||||
anymore = 1;
|
||||
l->huptimer++;
|
||||
@@ -350,12 +350,12 @@ isdn_net_autohup(void)
|
||||
if (l->hupflags & ISDN_CHARGEHUP) {
|
||||
if (l->hupflags & ISDN_WAITCHARGE) {
|
||||
printk(KERN_DEBUG "isdn_net: Hupflags of %s are %X\n",
|
||||
l->name, l->hupflags);
|
||||
p->dev->name, l->hupflags);
|
||||
isdn_net_hangup(p->dev);
|
||||
} else if (time_after(jiffies, l->chargetime + l->chargeint)) {
|
||||
printk(KERN_DEBUG
|
||||
"isdn_net: %s: chtime = %lu, chint = %d\n",
|
||||
l->name, l->chargetime, l->chargeint);
|
||||
p->dev->name, l->chargetime, l->chargeint);
|
||||
isdn_net_hangup(p->dev);
|
||||
}
|
||||
} else
|
||||
@@ -442,8 +442,8 @@ isdn_net_stat_callback(int idx, isdn_ctrl *c)
|
||||
#endif
|
||||
isdn_net_lp_disconnected(lp);
|
||||
isdn_all_eaz(lp->isdn_device, lp->isdn_channel);
|
||||
printk(KERN_INFO "%s: remote hangup\n", lp->name);
|
||||
printk(KERN_INFO "%s: Chargesum is %d\n", lp->name,
|
||||
printk(KERN_INFO "%s: remote hangup\n", p->dev->name);
|
||||
printk(KERN_INFO "%s: Chargesum is %d\n", p->dev->name,
|
||||
lp->charge);
|
||||
isdn_net_unbind_channel(lp);
|
||||
return 1;
|
||||
@@ -487,7 +487,7 @@ isdn_net_stat_callback(int idx, isdn_ctrl *c)
|
||||
isdn_net_add_to_bundle(nd, lp);
|
||||
}
|
||||
}
|
||||
printk(KERN_INFO "isdn_net: %s connected\n", lp->name);
|
||||
printk(KERN_INFO "isdn_net: %s connected\n", p->dev->name);
|
||||
/* If first Chargeinfo comes before B-Channel connect,
|
||||
* we correct the timestamp here.
|
||||
*/
|
||||
@@ -534,7 +534,7 @@ isdn_net_stat_callback(int idx, isdn_ctrl *c)
|
||||
lp->hupflags |= ISDN_HAVECHARGE;
|
||||
lp->chargetime = jiffies;
|
||||
printk(KERN_DEBUG "isdn_net: Got CINF chargetime of %s now %lu\n",
|
||||
lp->name, lp->chargetime);
|
||||
p->dev->name, lp->chargetime);
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
@@ -565,7 +565,7 @@ isdn_net_dial(void)
|
||||
|
||||
#ifdef ISDN_DEBUG_NET_DIAL
|
||||
if (lp->dialstate)
|
||||
printk(KERN_DEBUG "%s: dialstate=%d\n", lp->name, lp->dialstate);
|
||||
printk(KERN_DEBUG "%s: dialstate=%d\n", p->dev->name, lp->dialstate);
|
||||
#endif
|
||||
switch (lp->dialstate) {
|
||||
case 0:
|
||||
@@ -578,7 +578,7 @@ isdn_net_dial(void)
|
||||
lp->dial = lp->phone[1];
|
||||
if (!lp->dial) {
|
||||
printk(KERN_WARNING "%s: phone number deleted?\n",
|
||||
lp->name);
|
||||
p->dev->name);
|
||||
isdn_net_hangup(p->dev);
|
||||
break;
|
||||
}
|
||||
@@ -632,13 +632,13 @@ isdn_net_dial(void)
|
||||
cmd.arg = lp->isdn_channel;
|
||||
if (!lp->dial) {
|
||||
printk(KERN_WARNING "%s: phone number deleted?\n",
|
||||
lp->name);
|
||||
p->dev->name);
|
||||
isdn_net_hangup(p->dev);
|
||||
break;
|
||||
}
|
||||
if (!strncmp(lp->dial->num, "LEASED", strlen("LEASED"))) {
|
||||
lp->dialstate = 4;
|
||||
printk(KERN_INFO "%s: Open leased line ...\n", lp->name);
|
||||
printk(KERN_INFO "%s: Open leased line ...\n", p->dev->name);
|
||||
} else {
|
||||
if(lp->dialtimeout > 0)
|
||||
if (time_after(jiffies, lp->dialstarted + lp->dialtimeout)) {
|
||||
@@ -688,7 +688,7 @@ isdn_net_dial(void)
|
||||
dev->usage[i] |= ISDN_USAGE_OUTGOING;
|
||||
isdn_info_update();
|
||||
}
|
||||
printk(KERN_INFO "%s: dialing %d %s... %s\n", lp->name,
|
||||
printk(KERN_INFO "%s: dialing %d %s... %s\n", p->dev->name,
|
||||
lp->dialretry, cmd.parm.setup.phone,
|
||||
(cmd.parm.setup.si1 == 1) ? "DOV" : "");
|
||||
lp->dtimer = 0;
|
||||
@@ -797,7 +797,7 @@ isdn_net_dial(void)
|
||||
*/
|
||||
if (lp->dtimer++ > lp->cbdelay)
|
||||
{
|
||||
printk(KERN_INFO "%s: hangup waiting for callback ...\n", lp->name);
|
||||
printk(KERN_INFO "%s: hangup waiting for callback ...\n", p->dev->name);
|
||||
lp->dtimer = 0;
|
||||
lp->dialstate = 4;
|
||||
cmd.driver = lp->isdn_device;
|
||||
@@ -810,7 +810,7 @@ isdn_net_dial(void)
|
||||
break;
|
||||
default:
|
||||
printk(KERN_WARNING "isdn_net: Illegal dialstate %d for device %s\n",
|
||||
lp->dialstate, lp->name);
|
||||
lp->dialstate, p->dev->name);
|
||||
}
|
||||
p = (isdn_net_dev *) p->next;
|
||||
}
|
||||
@@ -836,11 +836,11 @@ isdn_net_hangup(struct net_device *d)
|
||||
if (slp->flags & ISDN_NET_CONNECTED) {
|
||||
printk(KERN_INFO
|
||||
"isdn_net: hang up slave %s before %s\n",
|
||||
slp->name, lp->name);
|
||||
lp->slave->name, d->name);
|
||||
isdn_net_hangup(lp->slave);
|
||||
}
|
||||
}
|
||||
printk(KERN_INFO "isdn_net: local hangup %s\n", lp->name);
|
||||
printk(KERN_INFO "isdn_net: local hangup %s\n", d->name);
|
||||
#ifdef CONFIG_ISDN_PPP
|
||||
if (lp->p_encap == ISDN_NET_ENCAP_SYNCPPP)
|
||||
isdn_ppp_free(lp);
|
||||
@@ -858,7 +858,7 @@ isdn_net_hangup(struct net_device *d)
|
||||
cmd.command = ISDN_CMD_HANGUP;
|
||||
cmd.arg = lp->isdn_channel;
|
||||
isdn_command(&cmd);
|
||||
printk(KERN_INFO "%s: Chargesum is %d\n", lp->name, lp->charge);
|
||||
printk(KERN_INFO "%s: Chargesum is %d\n", d->name, lp->charge);
|
||||
isdn_all_eaz(lp->isdn_device, lp->isdn_channel);
|
||||
}
|
||||
isdn_net_unbind_channel(lp);
|
||||
@@ -885,7 +885,7 @@ isdn_net_log_skb(struct sk_buff * skb, isdn_net_local * lp)
|
||||
/* fall back to old isdn_net_log_packet method() */
|
||||
char * buf = skb->data;
|
||||
|
||||
printk(KERN_DEBUG "isdn_net: protocol %04x is buggy, dev %s\n", skb->protocol, lp->name);
|
||||
printk(KERN_DEBUG "isdn_net: protocol %04x is buggy, dev %s\n", skb->protocol, lp->netdev->dev->name);
|
||||
p = buf;
|
||||
proto = ETH_P_IP;
|
||||
switch (lp->p_encap) {
|
||||
@@ -1023,7 +1023,7 @@ void isdn_net_writebuf_skb(isdn_net_local *lp, struct sk_buff *skb)
|
||||
ret = isdn_writebuf_skb_stub(lp->isdn_device, lp->isdn_channel, 1, skb);
|
||||
if (ret != len) {
|
||||
/* we should never get here */
|
||||
printk(KERN_WARNING "%s: HL driver queue full\n", lp->name);
|
||||
printk(KERN_WARNING "%s: HL driver queue full\n", lp->netdev->dev->name);
|
||||
goto error;
|
||||
}
|
||||
|
||||
@@ -1461,7 +1461,7 @@ isdn_ciscohdlck_dev_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
|
||||
mod_timer(&lp->cisco_timer, expires);
|
||||
printk(KERN_INFO "%s: Keepalive period set "
|
||||
"to %d seconds.\n",
|
||||
lp->name, lp->cisco_keepalive_period);
|
||||
dev->name, lp->cisco_keepalive_period);
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -1512,7 +1512,7 @@ isdn_net_ciscohdlck_slarp_send_keepalive(unsigned long data)
|
||||
lp->cisco_line_state = 0;
|
||||
printk (KERN_WARNING
|
||||
"UPDOWN: Line protocol on Interface %s,"
|
||||
" changed state to down\n", lp->name);
|
||||
" changed state to down\n", lp->netdev->dev->name);
|
||||
/* should stop routing higher-level data accross */
|
||||
} else if ((!lp->cisco_line_state) &&
|
||||
(myseq_diff >= 0) && (myseq_diff <= 2)) {
|
||||
@@ -1520,14 +1520,14 @@ isdn_net_ciscohdlck_slarp_send_keepalive(unsigned long data)
|
||||
lp->cisco_line_state = 1;
|
||||
printk (KERN_WARNING
|
||||
"UPDOWN: Line protocol on Interface %s,"
|
||||
" changed state to up\n", lp->name);
|
||||
" changed state to up\n", lp->netdev->dev->name);
|
||||
/* restart routing higher-level data accross */
|
||||
}
|
||||
|
||||
if (lp->cisco_debserint)
|
||||
printk (KERN_DEBUG "%s: HDLC "
|
||||
"myseq %lu, mineseen %lu%c, yourseen %lu, %s\n",
|
||||
lp->name, last_cisco_myseq, lp->cisco_mineseen,
|
||||
lp->netdev->dev->name, last_cisco_myseq, lp->cisco_mineseen,
|
||||
((last_cisco_myseq == lp->cisco_mineseen) ? '*' : 040),
|
||||
lp->cisco_yourseq,
|
||||
((lp->cisco_line_state) ? "line up" : "line down"));
|
||||
@@ -1682,7 +1682,7 @@ isdn_net_ciscohdlck_slarp_in(isdn_net_local *lp, struct sk_buff *skb)
|
||||
"remote ip: %d.%d.%d.%d, "
|
||||
"local ip: %d.%d.%d.%d "
|
||||
"mask: %d.%d.%d.%d\n",
|
||||
lp->name,
|
||||
lp->netdev->dev->name,
|
||||
HIPQUAD(addr),
|
||||
HIPQUAD(local),
|
||||
HIPQUAD(mask));
|
||||
@@ -1690,7 +1690,7 @@ isdn_net_ciscohdlck_slarp_in(isdn_net_local *lp, struct sk_buff *skb)
|
||||
slarp_reply_out:
|
||||
printk(KERN_INFO "%s: got invalid slarp "
|
||||
"reply (%d.%d.%d.%d/%d.%d.%d.%d) "
|
||||
"- ignored\n", lp->name,
|
||||
"- ignored\n", lp->netdev->dev->name,
|
||||
HIPQUAD(addr), HIPQUAD(mask));
|
||||
break;
|
||||
case CISCO_SLARP_KEEPALIVE:
|
||||
@@ -1701,7 +1701,8 @@ isdn_net_ciscohdlck_slarp_in(isdn_net_local *lp, struct sk_buff *skb)
|
||||
lp->cisco_last_slarp_in) {
|
||||
printk(KERN_DEBUG "%s: Keepalive period mismatch - "
|
||||
"is %d but should be %d.\n",
|
||||
lp->name, period, lp->cisco_keepalive_period);
|
||||
lp->netdev->dev->name, period,
|
||||
lp->cisco_keepalive_period);
|
||||
}
|
||||
lp->cisco_last_slarp_in = jiffies;
|
||||
p += get_u32(p, &my_seq);
|
||||
@@ -1732,12 +1733,12 @@ isdn_net_ciscohdlck_receive(isdn_net_local *lp, struct sk_buff *skb)
|
||||
|
||||
if (addr != CISCO_ADDR_UNICAST && addr != CISCO_ADDR_BROADCAST) {
|
||||
printk(KERN_WARNING "%s: Unknown Cisco addr 0x%02x\n",
|
||||
lp->name, addr);
|
||||
lp->netdev->dev->name, addr);
|
||||
goto out_free;
|
||||
}
|
||||
if (ctrl != CISCO_CTRL) {
|
||||
printk(KERN_WARNING "%s: Unknown Cisco ctrl 0x%02x\n",
|
||||
lp->name, ctrl);
|
||||
lp->netdev->dev->name, ctrl);
|
||||
goto out_free;
|
||||
}
|
||||
|
||||
@@ -1748,7 +1749,8 @@ isdn_net_ciscohdlck_receive(isdn_net_local *lp, struct sk_buff *skb)
|
||||
case CISCO_TYPE_CDP:
|
||||
if (lp->cisco_debserint)
|
||||
printk(KERN_DEBUG "%s: Received CDP packet. use "
|
||||
"\"no cdp enable\" on cisco.\n", lp->name);
|
||||
"\"no cdp enable\" on cisco.\n",
|
||||
lp->netdev->dev->name);
|
||||
goto out_free;
|
||||
default:
|
||||
/* no special cisco protocol */
|
||||
@@ -1843,7 +1845,7 @@ isdn_net_receive(struct net_device *ndev, struct sk_buff *skb)
|
||||
};
|
||||
#endif /* CONFIG_ISDN_X25 */
|
||||
printk(KERN_WARNING "%s: unknown encapsulation, dropping\n",
|
||||
lp->name);
|
||||
lp->netdev->dev->name);
|
||||
kfree_skb(skb);
|
||||
return;
|
||||
}
|
||||
@@ -2174,7 +2176,7 @@ isdn_net_find_icall(int di, int ch, int idx, setup_parm *setup)
|
||||
wret = matchret;
|
||||
#ifdef ISDN_DEBUG_NET_ICALL
|
||||
printk(KERN_DEBUG "n_fi: if='%s', l.msn=%s, l.flags=%d, l.dstate=%d\n",
|
||||
lp->name, lp->msn, lp->flags, lp->dialstate);
|
||||
p->dev->name, lp->msn, lp->flags, lp->dialstate);
|
||||
#endif
|
||||
if ((!matchret) && /* EAZ is matching */
|
||||
(((!(lp->flags & ISDN_NET_CONNECTED)) && /* but not connected */
|
||||
@@ -2277,7 +2279,7 @@ isdn_net_find_icall(int di, int ch, int idx, setup_parm *setup)
|
||||
* */
|
||||
if (ISDN_NET_DIALMODE(*lp) == ISDN_NET_DM_OFF) {
|
||||
printk(KERN_INFO "incoming call, interface %s `stopped' -> rejected\n",
|
||||
lp->name);
|
||||
p->dev->name);
|
||||
return 3;
|
||||
}
|
||||
/*
|
||||
@@ -2286,7 +2288,7 @@ isdn_net_find_icall(int di, int ch, int idx, setup_parm *setup)
|
||||
*/
|
||||
if (!isdn_net_device_started(p)) {
|
||||
printk(KERN_INFO "%s: incoming call, interface down -> rejected\n",
|
||||
lp->name);
|
||||
p->dev->name);
|
||||
return 3;
|
||||
}
|
||||
/* Interface is up, now see if it's a slave. If so, see if
|
||||
@@ -2294,8 +2296,8 @@ isdn_net_find_icall(int di, int ch, int idx, setup_parm *setup)
|
||||
*/
|
||||
if (lp->master) {
|
||||
isdn_net_local *mlp = (isdn_net_local *) lp->master->priv;
|
||||
printk(KERN_DEBUG "ICALLslv: %s\n", lp->name);
|
||||
printk(KERN_DEBUG "master=%s\n", mlp->name);
|
||||
printk(KERN_DEBUG "ICALLslv: %s\n", p->dev->name);
|
||||
printk(KERN_DEBUG "master=%s\n", lp->master->name);
|
||||
if (mlp->flags & ISDN_NET_CONNECTED) {
|
||||
printk(KERN_DEBUG "master online\n");
|
||||
/* Master is online, find parent-slave (master if first slave) */
|
||||
@@ -2322,11 +2324,11 @@ isdn_net_find_icall(int di, int ch, int idx, setup_parm *setup)
|
||||
* */
|
||||
if (ISDN_NET_DIALMODE(*lp) == ISDN_NET_DM_OFF) {
|
||||
printk(KERN_INFO "incoming call for callback, interface %s `off' -> rejected\n",
|
||||
lp->name);
|
||||
p->dev->name);
|
||||
return 3;
|
||||
}
|
||||
printk(KERN_DEBUG "%s: call from %s -> %s, start callback\n",
|
||||
lp->name, nr, eaz);
|
||||
p->dev->name, nr, eaz);
|
||||
if (lp->phone[1]) {
|
||||
/* Grab a free ISDN-Channel */
|
||||
spin_lock_irqsave(&dev->lock, flags);
|
||||
@@ -2340,7 +2342,8 @@ isdn_net_find_icall(int di, int ch, int idx, setup_parm *setup)
|
||||
lp->msn)
|
||||
) < 0) {
|
||||
|
||||
printk(KERN_WARNING "isdn_net_find_icall: No channel for %s\n", lp->name);
|
||||
printk(KERN_WARNING "isdn_net_find_icall: No channel for %s\n",
|
||||
p->dev->name);
|
||||
spin_unlock_irqrestore(&dev->lock, flags);
|
||||
return 0;
|
||||
}
|
||||
@@ -2361,11 +2364,12 @@ isdn_net_find_icall(int di, int ch, int idx, setup_parm *setup)
|
||||
/* Initiate dialing by returning 2 or 4 */
|
||||
return (lp->flags & ISDN_NET_CBHUP) ? 2 : 4;
|
||||
} else
|
||||
printk(KERN_WARNING "isdn_net: %s: No phone number\n", lp->name);
|
||||
printk(KERN_WARNING "isdn_net: %s: No phone number\n",
|
||||
p->dev->name);
|
||||
return 0;
|
||||
} else {
|
||||
printk(KERN_DEBUG "%s: call from %s -> %s accepted\n", lp->name, nr,
|
||||
eaz);
|
||||
printk(KERN_DEBUG "%s: call from %s -> %s accepted\n",
|
||||
p->dev->name, nr, eaz);
|
||||
/* if this interface is dialing, it does it probably on a different
|
||||
device, so free this device */
|
||||
if ((lp->dialstate == 4) || (lp->dialstate == 12)) {
|
||||
@@ -2424,7 +2428,7 @@ isdn_net_findif(char *name)
|
||||
isdn_net_dev *p = dev->netdev;
|
||||
|
||||
while (p) {
|
||||
if (!strcmp(p->local->name, name))
|
||||
if (!strcmp(p->dev->name, name))
|
||||
return p;
|
||||
p = (isdn_net_dev *) p->next;
|
||||
}
|
||||
@@ -2453,7 +2457,8 @@ isdn_net_force_dial_lp(isdn_net_local * lp)
|
||||
lp->pre_device,
|
||||
lp->pre_channel,
|
||||
lp->msn)) < 0) {
|
||||
printk(KERN_WARNING "isdn_net_force_dial: No channel for %s\n", lp->name);
|
||||
printk(KERN_WARNING "isdn_net_force_dial: No channel for %s\n",
|
||||
lp->netdev->dev->name);
|
||||
spin_unlock_irqrestore(&dev->lock, flags);
|
||||
return -EAGAIN;
|
||||
}
|
||||
@@ -2556,7 +2561,7 @@ isdn_net_new(char *name, struct net_device *master)
|
||||
return NULL;
|
||||
}
|
||||
if (name == NULL)
|
||||
name = " ";
|
||||
return NULL;
|
||||
if (!(netdev = kzalloc(sizeof(isdn_net_dev), GFP_KERNEL))) {
|
||||
printk(KERN_WARNING "isdn_net: Could not allocate net-device\n");
|
||||
return NULL;
|
||||
@@ -2568,7 +2573,6 @@ isdn_net_new(char *name, struct net_device *master)
|
||||
return NULL;
|
||||
}
|
||||
netdev->local = netdev->dev->priv;
|
||||
strcpy(netdev->local->name, netdev->dev->name);
|
||||
netdev->dev->init = isdn_net_init;
|
||||
if (master) {
|
||||
/* Device shall be a slave */
|
||||
@@ -2673,7 +2677,7 @@ isdn_net_setcfg(isdn_net_ioctl_cfg * cfg)
|
||||
#endif
|
||||
if (isdn_net_device_started(p)) {
|
||||
printk(KERN_WARNING "%s: cannot change encap when if is up\n",
|
||||
lp->name);
|
||||
p->dev->name);
|
||||
return -EBUSY;
|
||||
}
|
||||
#ifdef CONFIG_ISDN_X25
|
||||
@@ -2698,7 +2702,7 @@ isdn_net_setcfg(isdn_net_ioctl_cfg * cfg)
|
||||
case ISDN_NET_ENCAP_SYNCPPP:
|
||||
#ifndef CONFIG_ISDN_PPP
|
||||
printk(KERN_WARNING "%s: SyncPPP support not configured\n",
|
||||
lp->name);
|
||||
p->dev->name);
|
||||
return -EINVAL;
|
||||
#else
|
||||
p->dev->type = ARPHRD_PPP; /* change ARP type */
|
||||
@@ -2709,7 +2713,7 @@ isdn_net_setcfg(isdn_net_ioctl_cfg * cfg)
|
||||
case ISDN_NET_ENCAP_X25IFACE:
|
||||
#ifndef CONFIG_ISDN_X25
|
||||
printk(KERN_WARNING "%s: isdn-x25 support not configured\n",
|
||||
p->local->name);
|
||||
p->dev->name);
|
||||
return -EINVAL;
|
||||
#else
|
||||
p->dev->type = ARPHRD_X25; /* change ARP type */
|
||||
@@ -2725,7 +2729,7 @@ isdn_net_setcfg(isdn_net_ioctl_cfg * cfg)
|
||||
break;
|
||||
printk(KERN_WARNING
|
||||
"%s: encapsulation protocol %d not supported\n",
|
||||
p->local->name, cfg->p_encap);
|
||||
p->dev->name, cfg->p_encap);
|
||||
return -EINVAL;
|
||||
}
|
||||
if (strlen(cfg->drvid)) {
|
||||
@@ -2902,13 +2906,18 @@ isdn_net_getcfg(isdn_net_ioctl_cfg * cfg)
|
||||
cfg->pppbind = lp->pppbind;
|
||||
cfg->dialtimeout = lp->dialtimeout >= 0 ? lp->dialtimeout / HZ : -1;
|
||||
cfg->dialwait = lp->dialwait / HZ;
|
||||
if (lp->slave)
|
||||
strcpy(cfg->slave, ((isdn_net_local *) lp->slave->priv)->name);
|
||||
else
|
||||
if (lp->slave) {
|
||||
if (strlen(lp->slave->name) > 8)
|
||||
strcpy(cfg->slave, "too-long");
|
||||
else
|
||||
strcpy(cfg->slave, lp->slave->name);
|
||||
} else
|
||||
cfg->slave[0] = '\0';
|
||||
if (lp->master)
|
||||
strcpy(cfg->master, ((isdn_net_local *) lp->master->priv)->name);
|
||||
else
|
||||
if (lp->master) {
|
||||
if (strlen(lp->master->name) > 8)
|
||||
strcpy(cfg->master, "too-long");
|
||||
strcpy(cfg->master, lp->master->name);
|
||||
} else
|
||||
cfg->master[0] = '\0';
|
||||
return 0;
|
||||
}
|
||||
@@ -2978,7 +2987,8 @@ isdn_net_getpeer(isdn_net_ioctl_phone *phone, isdn_net_ioctl_phone __user *peer)
|
||||
isdn_net_dev *p = isdn_net_findif(phone->name);
|
||||
int ch, dv, idx;
|
||||
|
||||
if (!p) return -ENODEV;
|
||||
if (!p)
|
||||
return -ENODEV;
|
||||
/*
|
||||
* Theoretical race: while this executes, the remote number might
|
||||
* become invalid (hang up) or change (new connection), resulting
|
||||
@@ -2987,14 +2997,18 @@ isdn_net_getpeer(isdn_net_ioctl_phone *phone, isdn_net_ioctl_phone __user *peer)
|
||||
*/
|
||||
ch = p->local->isdn_channel;
|
||||
dv = p->local->isdn_device;
|
||||
if(ch<0 && dv<0) return -ENOTCONN;
|
||||
if(ch < 0 && dv < 0)
|
||||
return -ENOTCONN;
|
||||
idx = isdn_dc2minor(dv, ch);
|
||||
if (idx<0) return -ENODEV;
|
||||
if (idx <0 )
|
||||
return -ENODEV;
|
||||
/* for pre-bound channels, we need this extra check */
|
||||
if ( strncmp(dev->num[idx],"???",3) == 0 ) return -ENOTCONN;
|
||||
strncpy(phone->phone,dev->num[idx],ISDN_MSNLEN);
|
||||
phone->outgoing=USG_OUTGOING(dev->usage[idx]);
|
||||
if ( copy_to_user(peer,phone,sizeof(*peer)) ) return -EFAULT;
|
||||
if (strncmp(dev->num[idx], "???", 3) == 0)
|
||||
return -ENOTCONN;
|
||||
strncpy(phone->phone, dev->num[idx], ISDN_MSNLEN);
|
||||
phone->outgoing = USG_OUTGOING(dev->usage[idx]);
|
||||
if (copy_to_user(peer, phone, sizeof(*peer)))
|
||||
return -EFAULT;
|
||||
return 0;
|
||||
}
|
||||
/*
|
||||
@@ -3113,18 +3127,18 @@ isdn_net_realrm(isdn_net_dev * p, isdn_net_dev * q)
|
||||
dev->netdev = p->next;
|
||||
if (p->local->slave) {
|
||||
/* If this interface has a slave, remove it also */
|
||||
char *slavename = ((isdn_net_local *) (p->local->slave->priv))->name;
|
||||
char *slavename = p->local->slave->name;
|
||||
isdn_net_dev *n = dev->netdev;
|
||||
q = NULL;
|
||||
while (n) {
|
||||
if (!strcmp(n->local->name, slavename)) {
|
||||
if (!strcmp(n->dev->name, slavename)) {
|
||||
spin_unlock_irqrestore(&dev->lock, flags);
|
||||
isdn_net_realrm(n, q);
|
||||
spin_lock_irqsave(&dev->lock, flags);
|
||||
break;
|
||||
}
|
||||
q = n;
|
||||
n = (isdn_net_dev *) n->next;
|
||||
n = (isdn_net_dev *)n->next;
|
||||
}
|
||||
}
|
||||
spin_unlock_irqrestore(&dev->lock, flags);
|
||||
@@ -3152,7 +3166,7 @@ isdn_net_rm(char *name)
|
||||
p = dev->netdev;
|
||||
q = NULL;
|
||||
while (p) {
|
||||
if (!strcmp(p->local->name, name)) {
|
||||
if (!strcmp(p->dev->name, name)) {
|
||||
spin_unlock_irqrestore(&dev->lock, flags);
|
||||
return (isdn_net_realrm(p, q));
|
||||
}
|
||||
|
||||
@@ -190,9 +190,11 @@ isdn_ppp_bind(isdn_net_local * lp)
|
||||
retval = -1;
|
||||
goto out;
|
||||
}
|
||||
unit = isdn_ppp_if_get_unit(lp->name); /* get unit number from interface name .. ugly! */
|
||||
/* get unit number from interface name .. ugly! */
|
||||
unit = isdn_ppp_if_get_unit(lp->netdev->dev->name);
|
||||
if (unit < 0) {
|
||||
printk(KERN_ERR "isdn_ppp_bind: illegal interface name %s.\n", lp->name);
|
||||
printk(KERN_ERR "isdn_ppp_bind: illegal interface name %s.\n",
|
||||
lp->netdev->dev->name);
|
||||
retval = -1;
|
||||
goto out;
|
||||
}
|
||||
@@ -507,7 +509,8 @@ isdn_ppp_ioctl(int min, struct file *file, unsigned int cmd, unsigned long arg)
|
||||
case PPPIOCGIFNAME:
|
||||
if(!lp)
|
||||
return -EINVAL;
|
||||
if ((r = set_arg(argp, lp->name, strlen(lp->name))))
|
||||
if ((r = set_arg(argp, lp->netdev->dev->name,
|
||||
strlen(lp->netdev->dev->name))))
|
||||
return r;
|
||||
break;
|
||||
case PPPIOCGMPFLAGS: /* get configuration flags */
|
||||
|
||||
@@ -265,17 +265,16 @@ static __net_init int loopback_net_init(struct net *net)
|
||||
if (err)
|
||||
goto out_free_netdev;
|
||||
|
||||
err = 0;
|
||||
net->loopback_dev = dev;
|
||||
return 0;
|
||||
|
||||
out:
|
||||
if (err)
|
||||
panic("loopback: Failed to register netdevice: %d\n", err);
|
||||
return err;
|
||||
|
||||
out_free_netdev:
|
||||
free_netdev(dev);
|
||||
goto out;
|
||||
out:
|
||||
if (net == &init_net)
|
||||
panic("loopback: Failed to register netdevice: %d\n", err);
|
||||
return err;
|
||||
}
|
||||
|
||||
static __net_exit void loopback_net_exit(struct net *net)
|
||||
|
||||
+9
-10
@@ -6123,19 +6123,19 @@ static int __devinit niu_pci_probe_sprom(struct niu *np)
|
||||
val = nr64(ESPC_PHY_TYPE);
|
||||
switch (np->port) {
|
||||
case 0:
|
||||
val = (val & ESPC_PHY_TYPE_PORT0) >>
|
||||
val8 = (val & ESPC_PHY_TYPE_PORT0) >>
|
||||
ESPC_PHY_TYPE_PORT0_SHIFT;
|
||||
break;
|
||||
case 1:
|
||||
val = (val & ESPC_PHY_TYPE_PORT1) >>
|
||||
val8 = (val & ESPC_PHY_TYPE_PORT1) >>
|
||||
ESPC_PHY_TYPE_PORT1_SHIFT;
|
||||
break;
|
||||
case 2:
|
||||
val = (val & ESPC_PHY_TYPE_PORT2) >>
|
||||
val8 = (val & ESPC_PHY_TYPE_PORT2) >>
|
||||
ESPC_PHY_TYPE_PORT2_SHIFT;
|
||||
break;
|
||||
case 3:
|
||||
val = (val & ESPC_PHY_TYPE_PORT3) >>
|
||||
val8 = (val & ESPC_PHY_TYPE_PORT3) >>
|
||||
ESPC_PHY_TYPE_PORT3_SHIFT;
|
||||
break;
|
||||
default:
|
||||
@@ -6143,9 +6143,9 @@ static int __devinit niu_pci_probe_sprom(struct niu *np)
|
||||
np->port);
|
||||
return -EINVAL;
|
||||
}
|
||||
niudbg(PROBE, "SPROM: PHY type %llx\n", (unsigned long long) val);
|
||||
niudbg(PROBE, "SPROM: PHY type %x\n", val8);
|
||||
|
||||
switch (val) {
|
||||
switch (val8) {
|
||||
case ESPC_PHY_TYPE_1G_COPPER:
|
||||
/* 1G copper, MII */
|
||||
np->flags &= ~(NIU_FLAGS_FIBER |
|
||||
@@ -6175,8 +6175,7 @@ static int __devinit niu_pci_probe_sprom(struct niu *np)
|
||||
break;
|
||||
|
||||
default:
|
||||
dev_err(np->device, PFX "Bogus SPROM phy type %llu\n",
|
||||
(unsigned long long) val);
|
||||
dev_err(np->device, PFX "Bogus SPROM phy type %u\n", val8);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
@@ -6213,7 +6212,7 @@ static int __devinit niu_pci_probe_sprom(struct niu *np)
|
||||
val = nr64(ESPC_MOD_STR_LEN);
|
||||
niudbg(PROBE, "SPROM: MOD_STR_LEN[%llu]\n",
|
||||
(unsigned long long) val);
|
||||
if (val > 8 * 4)
|
||||
if (val >= 8 * 4)
|
||||
return -EINVAL;
|
||||
|
||||
for (i = 0; i < val; i += 4) {
|
||||
@@ -6229,7 +6228,7 @@ static int __devinit niu_pci_probe_sprom(struct niu *np)
|
||||
val = nr64(ESPC_BD_MOD_STR_LEN);
|
||||
niudbg(PROBE, "SPROM: BD_MOD_STR_LEN[%llu]\n",
|
||||
(unsigned long long) val);
|
||||
if (val > 4 * 4)
|
||||
if (val >= 4 * 4)
|
||||
return -EINVAL;
|
||||
|
||||
for (i = 0; i < val; i += 4) {
|
||||
|
||||
+8
-2
@@ -64,8 +64,8 @@
|
||||
|
||||
#define DRV_MODULE_NAME "tg3"
|
||||
#define PFX DRV_MODULE_NAME ": "
|
||||
#define DRV_MODULE_VERSION "3.83"
|
||||
#define DRV_MODULE_RELDATE "October 10, 2007"
|
||||
#define DRV_MODULE_VERSION "3.84"
|
||||
#define DRV_MODULE_RELDATE "October 12, 2007"
|
||||
|
||||
#define TG3_DEF_MAC_MODE 0
|
||||
#define TG3_DEF_RX_MODE 0
|
||||
@@ -5056,6 +5056,12 @@ static void tg3_restore_pci_state(struct tg3 *tp)
|
||||
|
||||
pci_write_config_dword(tp->pdev, TG3PCI_COMMAND, tp->pci_cmd);
|
||||
|
||||
if (!(tp->tg3_flags2 & TG3_FLG2_PCI_EXPRESS)) {
|
||||
pci_write_config_byte(tp->pdev, PCI_CACHE_LINE_SIZE,
|
||||
tp->pci_cacheline_sz);
|
||||
pci_write_config_byte(tp->pdev, PCI_LATENCY_TIMER,
|
||||
tp->pci_lat_timer);
|
||||
}
|
||||
/* Make sure PCI-X relaxed ordering bit is clear. */
|
||||
if (tp->pcix_cap) {
|
||||
u16 pcix_cmd;
|
||||
|
||||
@@ -107,7 +107,7 @@ struct __fdb_entry
|
||||
extern void brioctl_set(int (*ioctl_hook)(struct net *, unsigned int, void __user *));
|
||||
extern struct sk_buff *(*br_handle_frame_hook)(struct net_bridge_port *p,
|
||||
struct sk_buff *skb);
|
||||
extern int (*br_should_route_hook)(struct sk_buff **pskb);
|
||||
extern int (*br_should_route_hook)(struct sk_buff *skb);
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -286,7 +286,6 @@ typedef struct {
|
||||
/* Local interface-data */
|
||||
typedef struct isdn_net_local_s {
|
||||
ulong magic;
|
||||
char name[10]; /* Name of device */
|
||||
struct net_device_stats stats; /* Ethernet Statistics */
|
||||
int isdn_device; /* Index to isdn-device */
|
||||
int isdn_channel; /* Index to isdn-channel */
|
||||
|
||||
+13
-13
@@ -51,7 +51,7 @@ struct sk_buff;
|
||||
struct net_device;
|
||||
|
||||
typedef unsigned int nf_hookfn(unsigned int hooknum,
|
||||
struct sk_buff **skb,
|
||||
struct sk_buff *skb,
|
||||
const struct net_device *in,
|
||||
const struct net_device *out,
|
||||
int (*okfn)(struct sk_buff *));
|
||||
@@ -183,7 +183,7 @@ void nf_log_packet(int pf,
|
||||
struct nf_loginfo *li,
|
||||
const char *fmt, ...);
|
||||
|
||||
int nf_hook_slow(int pf, unsigned int hook, struct sk_buff **pskb,
|
||||
int nf_hook_slow(int pf, unsigned int hook, struct sk_buff *skb,
|
||||
struct net_device *indev, struct net_device *outdev,
|
||||
int (*okfn)(struct sk_buff *), int thresh);
|
||||
|
||||
@@ -195,7 +195,7 @@ int nf_hook_slow(int pf, unsigned int hook, struct sk_buff **pskb,
|
||||
* value indicates the packet has been consumed by the hook.
|
||||
*/
|
||||
static inline int nf_hook_thresh(int pf, unsigned int hook,
|
||||
struct sk_buff **pskb,
|
||||
struct sk_buff *skb,
|
||||
struct net_device *indev,
|
||||
struct net_device *outdev,
|
||||
int (*okfn)(struct sk_buff *), int thresh,
|
||||
@@ -207,14 +207,14 @@ static inline int nf_hook_thresh(int pf, unsigned int hook,
|
||||
if (list_empty(&nf_hooks[pf][hook]))
|
||||
return 1;
|
||||
#endif
|
||||
return nf_hook_slow(pf, hook, pskb, indev, outdev, okfn, thresh);
|
||||
return nf_hook_slow(pf, hook, skb, indev, outdev, okfn, thresh);
|
||||
}
|
||||
|
||||
static inline int nf_hook(int pf, unsigned int hook, struct sk_buff **pskb,
|
||||
static inline int nf_hook(int pf, unsigned int hook, struct sk_buff *skb,
|
||||
struct net_device *indev, struct net_device *outdev,
|
||||
int (*okfn)(struct sk_buff *))
|
||||
{
|
||||
return nf_hook_thresh(pf, hook, pskb, indev, outdev, okfn, INT_MIN, 1);
|
||||
return nf_hook_thresh(pf, hook, skb, indev, outdev, okfn, INT_MIN, 1);
|
||||
}
|
||||
|
||||
/* Activate hook; either okfn or kfree_skb called, unless a hook
|
||||
@@ -241,13 +241,13 @@ static inline int nf_hook(int pf, unsigned int hook, struct sk_buff **pskb,
|
||||
|
||||
#define NF_HOOK_THRESH(pf, hook, skb, indev, outdev, okfn, thresh) \
|
||||
({int __ret; \
|
||||
if ((__ret=nf_hook_thresh(pf, hook, &(skb), indev, outdev, okfn, thresh, 1)) == 1)\
|
||||
if ((__ret=nf_hook_thresh(pf, hook, (skb), indev, outdev, okfn, thresh, 1)) == 1)\
|
||||
__ret = (okfn)(skb); \
|
||||
__ret;})
|
||||
|
||||
#define NF_HOOK_COND(pf, hook, skb, indev, outdev, okfn, cond) \
|
||||
({int __ret; \
|
||||
if ((__ret=nf_hook_thresh(pf, hook, &(skb), indev, outdev, okfn, INT_MIN, cond)) == 1)\
|
||||
if ((__ret=nf_hook_thresh(pf, hook, (skb), indev, outdev, okfn, INT_MIN, cond)) == 1)\
|
||||
__ret = (okfn)(skb); \
|
||||
__ret;})
|
||||
|
||||
@@ -287,7 +287,7 @@ extern void nf_invalidate_cache(int pf);
|
||||
/* Call this before modifying an existing packet: ensures it is
|
||||
modifiable and linear to the point you care about (writable_len).
|
||||
Returns true or false. */
|
||||
extern int skb_make_writable(struct sk_buff **pskb, unsigned int writable_len);
|
||||
extern int skb_make_writable(struct sk_buff *skb, unsigned int writable_len);
|
||||
|
||||
static inline void nf_csum_replace4(__sum16 *sum, __be32 from, __be32 to)
|
||||
{
|
||||
@@ -317,7 +317,7 @@ struct nf_afinfo {
|
||||
unsigned int dataoff, u_int8_t protocol);
|
||||
void (*saveroute)(const struct sk_buff *skb,
|
||||
struct nf_info *info);
|
||||
int (*reroute)(struct sk_buff **skb,
|
||||
int (*reroute)(struct sk_buff *skb,
|
||||
const struct nf_info *info);
|
||||
int route_key_size;
|
||||
};
|
||||
@@ -371,15 +371,15 @@ extern struct proc_dir_entry *proc_net_netfilter;
|
||||
#define NF_HOOK(pf, hook, skb, indev, outdev, okfn) (okfn)(skb)
|
||||
#define NF_HOOK_COND(pf, hook, skb, indev, outdev, okfn, cond) (okfn)(skb)
|
||||
static inline int nf_hook_thresh(int pf, unsigned int hook,
|
||||
struct sk_buff **pskb,
|
||||
struct sk_buff *skb,
|
||||
struct net_device *indev,
|
||||
struct net_device *outdev,
|
||||
int (*okfn)(struct sk_buff *), int thresh,
|
||||
int cond)
|
||||
{
|
||||
return okfn(*pskb);
|
||||
return okfn(skb);
|
||||
}
|
||||
static inline int nf_hook(int pf, unsigned int hook, struct sk_buff **pskb,
|
||||
static inline int nf_hook(int pf, unsigned int hook, struct sk_buff *skb,
|
||||
struct net_device *indev, struct net_device *outdev,
|
||||
int (*okfn)(struct sk_buff *))
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#define _NF_CONNTRACK_AMANDA_H
|
||||
/* AMANDA tracking. */
|
||||
|
||||
extern unsigned int (*nf_nat_amanda_hook)(struct sk_buff **pskb,
|
||||
extern unsigned int (*nf_nat_amanda_hook)(struct sk_buff *skb,
|
||||
enum ip_conntrack_info ctinfo,
|
||||
unsigned int matchoff,
|
||||
unsigned int matchlen,
|
||||
|
||||
@@ -32,7 +32,7 @@ struct nf_conntrack_expect;
|
||||
|
||||
/* For NAT to hook in when we find a packet which describes what other
|
||||
* connection we should expect. */
|
||||
extern unsigned int (*nf_nat_ftp_hook)(struct sk_buff **pskb,
|
||||
extern unsigned int (*nf_nat_ftp_hook)(struct sk_buff *skb,
|
||||
enum ip_conntrack_info ctinfo,
|
||||
enum nf_ct_ftp_type type,
|
||||
unsigned int matchoff,
|
||||
|
||||
@@ -36,27 +36,27 @@ extern void nf_conntrack_h245_expect(struct nf_conn *new,
|
||||
struct nf_conntrack_expect *this);
|
||||
extern void nf_conntrack_q931_expect(struct nf_conn *new,
|
||||
struct nf_conntrack_expect *this);
|
||||
extern int (*set_h245_addr_hook) (struct sk_buff **pskb,
|
||||
extern int (*set_h245_addr_hook) (struct sk_buff *skb,
|
||||
unsigned char **data, int dataoff,
|
||||
H245_TransportAddress *taddr,
|
||||
union nf_conntrack_address *addr,
|
||||
__be16 port);
|
||||
extern int (*set_h225_addr_hook) (struct sk_buff **pskb,
|
||||
extern int (*set_h225_addr_hook) (struct sk_buff *skb,
|
||||
unsigned char **data, int dataoff,
|
||||
TransportAddress *taddr,
|
||||
union nf_conntrack_address *addr,
|
||||
__be16 port);
|
||||
extern int (*set_sig_addr_hook) (struct sk_buff **pskb,
|
||||
extern int (*set_sig_addr_hook) (struct sk_buff *skb,
|
||||
struct nf_conn *ct,
|
||||
enum ip_conntrack_info ctinfo,
|
||||
unsigned char **data,
|
||||
TransportAddress *taddr, int count);
|
||||
extern int (*set_ras_addr_hook) (struct sk_buff **pskb,
|
||||
extern int (*set_ras_addr_hook) (struct sk_buff *skb,
|
||||
struct nf_conn *ct,
|
||||
enum ip_conntrack_info ctinfo,
|
||||
unsigned char **data,
|
||||
TransportAddress *taddr, int count);
|
||||
extern int (*nat_rtp_rtcp_hook) (struct sk_buff **pskb,
|
||||
extern int (*nat_rtp_rtcp_hook) (struct sk_buff *skb,
|
||||
struct nf_conn *ct,
|
||||
enum ip_conntrack_info ctinfo,
|
||||
unsigned char **data, int dataoff,
|
||||
@@ -64,24 +64,24 @@ extern int (*nat_rtp_rtcp_hook) (struct sk_buff **pskb,
|
||||
__be16 port, __be16 rtp_port,
|
||||
struct nf_conntrack_expect *rtp_exp,
|
||||
struct nf_conntrack_expect *rtcp_exp);
|
||||
extern int (*nat_t120_hook) (struct sk_buff **pskb, struct nf_conn *ct,
|
||||
extern int (*nat_t120_hook) (struct sk_buff *skb, struct nf_conn *ct,
|
||||
enum ip_conntrack_info ctinfo,
|
||||
unsigned char **data, int dataoff,
|
||||
H245_TransportAddress *taddr, __be16 port,
|
||||
struct nf_conntrack_expect *exp);
|
||||
extern int (*nat_h245_hook) (struct sk_buff **pskb, struct nf_conn *ct,
|
||||
extern int (*nat_h245_hook) (struct sk_buff *skb, struct nf_conn *ct,
|
||||
enum ip_conntrack_info ctinfo,
|
||||
unsigned char **data, int dataoff,
|
||||
TransportAddress *taddr, __be16 port,
|
||||
struct nf_conntrack_expect *exp);
|
||||
extern int (*nat_callforwarding_hook) (struct sk_buff **pskb,
|
||||
extern int (*nat_callforwarding_hook) (struct sk_buff *skb,
|
||||
struct nf_conn *ct,
|
||||
enum ip_conntrack_info ctinfo,
|
||||
unsigned char **data, int dataoff,
|
||||
TransportAddress *taddr,
|
||||
__be16 port,
|
||||
struct nf_conntrack_expect *exp);
|
||||
extern int (*nat_q931_hook) (struct sk_buff **pskb, struct nf_conn *ct,
|
||||
extern int (*nat_q931_hook) (struct sk_buff *skb, struct nf_conn *ct,
|
||||
enum ip_conntrack_info ctinfo,
|
||||
unsigned char **data, TransportAddress *taddr,
|
||||
int idx, __be16 port,
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
#define IRC_PORT 6667
|
||||
|
||||
extern unsigned int (*nf_nat_irc_hook)(struct sk_buff **pskb,
|
||||
extern unsigned int (*nf_nat_irc_hook)(struct sk_buff *skb,
|
||||
enum ip_conntrack_info ctinfo,
|
||||
unsigned int matchoff,
|
||||
unsigned int matchlen,
|
||||
|
||||
@@ -301,13 +301,13 @@ struct nf_conn;
|
||||
struct nf_conntrack_expect;
|
||||
|
||||
extern int
|
||||
(*nf_nat_pptp_hook_outbound)(struct sk_buff **pskb,
|
||||
(*nf_nat_pptp_hook_outbound)(struct sk_buff *skb,
|
||||
struct nf_conn *ct, enum ip_conntrack_info ctinfo,
|
||||
struct PptpControlHeader *ctlh,
|
||||
union pptp_ctrl_union *pptpReq);
|
||||
|
||||
extern int
|
||||
(*nf_nat_pptp_hook_inbound)(struct sk_buff **pskb,
|
||||
(*nf_nat_pptp_hook_inbound)(struct sk_buff *skb,
|
||||
struct nf_conn *ct, enum ip_conntrack_info ctinfo,
|
||||
struct PptpControlHeader *ctlh,
|
||||
union pptp_ctrl_union *pptpReq);
|
||||
|
||||
@@ -21,11 +21,11 @@ enum sip_header_pos {
|
||||
POS_SDP_HEADER,
|
||||
};
|
||||
|
||||
extern unsigned int (*nf_nat_sip_hook)(struct sk_buff **pskb,
|
||||
extern unsigned int (*nf_nat_sip_hook)(struct sk_buff *skb,
|
||||
enum ip_conntrack_info ctinfo,
|
||||
struct nf_conn *ct,
|
||||
const char **dptr);
|
||||
extern unsigned int (*nf_nat_sdp_hook)(struct sk_buff **pskb,
|
||||
extern unsigned int (*nf_nat_sdp_hook)(struct sk_buff *skb,
|
||||
enum ip_conntrack_info ctinfo,
|
||||
struct nf_conntrack_expect *exp,
|
||||
const char *dptr);
|
||||
|
||||
@@ -13,7 +13,7 @@ struct tftphdr {
|
||||
#define TFTP_OPCODE_ACK 4
|
||||
#define TFTP_OPCODE_ERROR 5
|
||||
|
||||
extern unsigned int (*nf_nat_tftp_hook)(struct sk_buff **pskb,
|
||||
extern unsigned int (*nf_nat_tftp_hook)(struct sk_buff *skb,
|
||||
enum ip_conntrack_info ctinfo,
|
||||
struct nf_conntrack_expect *exp);
|
||||
|
||||
|
||||
@@ -191,7 +191,7 @@ struct xt_target
|
||||
/* Returns verdict. Argument order changed since 2.6.9, as this
|
||||
must now handle non-linear skbs, using skb_copy_bits and
|
||||
skb_ip_make_writable. */
|
||||
unsigned int (*target)(struct sk_buff **pskb,
|
||||
unsigned int (*target)(struct sk_buff *skb,
|
||||
const struct net_device *in,
|
||||
const struct net_device *out,
|
||||
unsigned int hooknum,
|
||||
|
||||
@@ -287,7 +287,7 @@ struct arpt_error
|
||||
extern int arpt_register_table(struct arpt_table *table,
|
||||
const struct arpt_replace *repl);
|
||||
extern void arpt_unregister_table(struct arpt_table *table);
|
||||
extern unsigned int arpt_do_table(struct sk_buff **pskb,
|
||||
extern unsigned int arpt_do_table(struct sk_buff *skb,
|
||||
unsigned int hook,
|
||||
const struct net_device *in,
|
||||
const struct net_device *out,
|
||||
|
||||
@@ -237,7 +237,7 @@ struct ebt_target
|
||||
struct list_head list;
|
||||
const char name[EBT_FUNCTION_MAXNAMELEN];
|
||||
/* returns one of the standard verdicts */
|
||||
int (*target)(struct sk_buff **pskb, unsigned int hooknr,
|
||||
int (*target)(struct sk_buff *skb, unsigned int hooknr,
|
||||
const struct net_device *in, const struct net_device *out,
|
||||
const void *targetdata, unsigned int datalen);
|
||||
/* 0 == let it in */
|
||||
@@ -294,7 +294,7 @@ extern int ebt_register_watcher(struct ebt_watcher *watcher);
|
||||
extern void ebt_unregister_watcher(struct ebt_watcher *watcher);
|
||||
extern int ebt_register_target(struct ebt_target *target);
|
||||
extern void ebt_unregister_target(struct ebt_target *target);
|
||||
extern unsigned int ebt_do_table(unsigned int hook, struct sk_buff **pskb,
|
||||
extern unsigned int ebt_do_table(unsigned int hook, struct sk_buff *skb,
|
||||
const struct net_device *in, const struct net_device *out,
|
||||
struct ebt_table *table);
|
||||
|
||||
|
||||
@@ -75,8 +75,8 @@ enum nf_ip_hook_priorities {
|
||||
#define SO_ORIGINAL_DST 80
|
||||
|
||||
#ifdef __KERNEL__
|
||||
extern int ip_route_me_harder(struct sk_buff **pskb, unsigned addr_type);
|
||||
extern int ip_xfrm_me_harder(struct sk_buff **pskb);
|
||||
extern int ip_route_me_harder(struct sk_buff *skb, unsigned addr_type);
|
||||
extern int ip_xfrm_me_harder(struct sk_buff *skb);
|
||||
extern __sum16 nf_ip_checksum(struct sk_buff *skb, unsigned int hook,
|
||||
unsigned int dataoff, u_int8_t protocol);
|
||||
#endif /*__KERNEL__*/
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user