All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH]  allow CONFIG_NET=n on ppc64
@ 2004-09-29 20:01 Olaf Hering
  2004-09-29 20:15 ` Andi Kleen
  0 siblings, 1 reply; 11+ messages in thread
From: Olaf Hering @ 2004-09-29 20:01 UTC (permalink / raw)
  To: netdev, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1575 bytes --]


The attached minimal config does not compile on ppc64.
I was able to boot the resulting binary with this patch.


Signed-off-by: Olaf Hering <olh@suse.de>


diff -purNX /suse/olh/kernel/kernel_exclude.txt linux-2.6.9-rc2/arch/ppc64/kernel/misc.S linux-2.6.9-rc2.ppc64/arch/ppc64/kernel/misc.S
--- linux-2.6.9-rc2/arch/ppc64/kernel/misc.S	2004-09-13 07:33:23.000000000 +0200
+++ linux-2.6.9-rc2.ppc64/arch/ppc64/kernel/misc.S	2004-09-29 21:00:44.909074755 +0200
@@ -703,7 +703,11 @@ _GLOBAL(sys_call_table32)
 	.llong .compat_sys_statfs
 	.llong .compat_sys_fstatfs		/* 100 */
 	.llong .sys_ni_syscall		/* old ioperm syscall */
+#ifdef CONFIG_NET
 	.llong .compat_sys_socketcall
+#else
+	.llong .sys_ni_syscall		/* old ioperm syscall */
+#endif
 	.llong .sys32_syslog
 	.llong .compat_sys_setitimer
 	.llong .compat_sys_getitimer		/* 105 */
diff -purNX /suse/olh/kernel/kernel_exclude.txt linux-2.6.9-rc2/include/net/sock.h linux-2.6.9-rc2.ppc64/include/net/sock.h
--- linux-2.6.9-rc2/include/net/sock.h	2004-09-13 07:33:11.000000000 +0200
+++ linux-2.6.9-rc2.ppc64/include/net/sock.h	2004-09-29 21:06:03.544933591 +0200
@@ -1327,6 +1327,13 @@ static inline void sock_valbool_flag(str
 extern __u32 sysctl_wmem_max;
 extern __u32 sysctl_rmem_max;
 
+#ifdef CONFIG_NET
 int siocdevprivate_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg);
+#else
+static inline int siocdevprivate_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg)
+{
+	return -ENODEV;
+}
+#endif
 
 #endif	/* _SOCK_H */

-- 
USB is for mice, FireWire is for men!

sUse lINUX ag, nÜRNBERG

[-- Attachment #2: minimal.config --]
[-- Type: text/plain, Size: 1392 bytes --]

CONFIG_64BIT=y
CONFIG_MMU=y
CONFIG_RWSEM_XCHGADD_ALGORITHM=y
CONFIG_GENERIC_ISA_DMA=y
CONFIG_HAVE_DEC_LOCK=y
CONFIG_EARLY_PRINTK=y
CONFIG_COMPAT=y
CONFIG_FRAME_POINTER=y
CONFIG_FORCE_MAX_ZONEORDER=13
CONFIG_EXPERIMENTAL=y
CONFIG_CLEAN_COMPILE=y
CONFIG_LOCALVERSION=""
CONFIG_SYSVIPC=y
CONFIG_SYSCTL=y
CONFIG_LOG_BUF_SHIFT=17
CONFIG_KALLSYMS=y
CONFIG_KALLSYMS_ALL=y
CONFIG_FUTEX=y
CONFIG_EPOLL=y
CONFIG_IOSCHED_NOOP=y
CONFIG_IOSCHED_AS=y
CONFIG_IOSCHED_DEADLINE=y
CONFIG_IOSCHED_CFQ=y
CONFIG_SHMEM=y
CONFIG_SYSVIPC_COMPAT=y
CONFIG_PPC_PSERIES=y
CONFIG_PPC=y
CONFIG_PPC64=y
CONFIG_PPC_OF=y
CONFIG_IOMMU_VMERGE=y
CONFIG_SMP=y
CONFIG_IRQ_ALL_CPUS=y
CONFIG_NR_CPUS=128
CONFIG_PCI=y
CONFIG_PCI_DOMAINS=y
CONFIG_BINFMT_ELF=y
CONFIG_PROC_DEVICETREE=y
CONFIG_CMDLINE_BOOL=y
CONFIG_CMDLINE="panic=1"
CONFIG_INPUT=y
CONFIG_INPUT_MOUSEDEV=y
CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024
CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
CONFIG_SOUND_GAMEPORT=y
CONFIG_SERIO=y
CONFIG_VT=y
CONFIG_VT_CONSOLE=y
CONFIG_HW_CONSOLE=y
CONFIG_SERIAL_8250=y
CONFIG_SERIAL_8250_CONSOLE=y
CONFIG_SERIAL_8250_NR_UARTS=4
CONFIG_SERIAL_CORE=y
CONFIG_SERIAL_CORE_CONSOLE=y
CONFIG_UNIX98_PTYS=y
CONFIG_DUMMY_CONSOLE=y
CONFIG_PROC_FS=y
CONFIG_PROC_KCORE=y
CONFIG_SYSFS=y
CONFIG_DEVPTS_FS_XATTR=y
CONFIG_TMPFS=y
CONFIG_RAMFS=y
CONFIG_MSDOS_PARTITION=y
CONFIG_DEBUG_KERNEL=y
CONFIG_DEBUGGER=y
CONFIG_XMON=y
CONFIG_XMON_DEFAULT=y
CONFIG_LIBCRC32C=y

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH]  allow CONFIG_NET=n on ppc64
  2004-09-29 20:01 [PATCH] allow CONFIG_NET=n on ppc64 Olaf Hering
@ 2004-09-29 20:15 ` Andi Kleen
  2004-10-02 15:30   ` Olaf Hering
  0 siblings, 1 reply; 11+ messages in thread
From: Andi Kleen @ 2004-09-29 20:15 UTC (permalink / raw)
  To: Olaf Hering; +Cc: netdev, linux-kernel

On Wed, Sep 29, 2004 at 10:01:58PM +0200, Olaf Hering wrote:
> 
> The attached minimal config does not compile on ppc64.
> I was able to boot the resulting binary with this patch.

I already fixed this some time ago, but the patch must have disappeared.

> diff -purNX /suse/olh/kernel/kernel_exclude.txt linux-2.6.9-rc2/arch/ppc64/kernel/misc.S linux-2.6.9-rc2.ppc64/arch/ppc64/kernel/misc.S
> --- linux-2.6.9-rc2/arch/ppc64/kernel/misc.S	2004-09-13 07:33:23.000000000 +0200
> +++ linux-2.6.9-rc2.ppc64/arch/ppc64/kernel/misc.S	2004-09-29 21:00:44.909074755 +0200
> @@ -703,7 +703,11 @@ _GLOBAL(sys_call_table32)
>  	.llong .compat_sys_statfs
>  	.llong .compat_sys_fstatfs		/* 100 */
>  	.llong .sys_ni_syscall		/* old ioperm syscall */
> +#ifdef CONFIG_NET
>  	.llong .compat_sys_socketcall
> +#else
> +	.llong .sys_ni_syscall		/* old ioperm syscall */
> +#endif

Right fix is to declare compat_sys_socketcall as as cond_syscall() 
in sys.c

-Andi

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH]  allow CONFIG_NET=n on ppc64
  2004-09-29 20:15 ` Andi Kleen
@ 2004-10-02 15:30   ` Olaf Hering
  2004-10-03 21:59     ` David S. Miller
  0 siblings, 1 reply; 11+ messages in thread
From: Olaf Hering @ 2004-10-02 15:30 UTC (permalink / raw)
  To: Andi Kleen; +Cc: netdev, linux-kernel

 On Wed, Sep 29, Andi Kleen wrote:

> On Wed, Sep 29, 2004 at 10:01:58PM +0200, Olaf Hering wrote:
> > 
> > The attached minimal config does not compile on ppc64.
> > I was able to boot the resulting binary with this patch.

> Right fix is to declare compat_sys_socketcall as as cond_syscall() 
> in sys.c

ok.

Signed-off-by: Olaf Hering <olh@suse.de>

diff -purNX /suse/olh/kernel/kernel_exclude.txt linux-2.6.9-rc3-bk2/include/net/sock.h linux-2.6.9-rc3-bk2.nonet/include/net/sock.h
--- linux-2.6.9-rc3-bk2/include/net/sock.h	2004-09-30 05:05:21.000000000 +0200
+++ linux-2.6.9-rc3-bk2.nonet/include/net/sock.h	2004-10-02 17:24:23.666152810 +0200
@@ -1336,6 +1336,13 @@ static inline void sock_valbool_flag(str
 extern __u32 sysctl_wmem_max;
 extern __u32 sysctl_rmem_max;
 
+#ifdef CONFIG_NET
 int siocdevprivate_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg);
+#else
+static inline int siocdevprivate_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg)
+{
+	return -ENODEV;
+}
+#endif
 
 #endif	/* _SOCK_H */
diff -purNX /suse/olh/kernel/kernel_exclude.txt linux-2.6.9-rc3-bk2/kernel/sys.c linux-2.6.9-rc3-bk2.nonet/kernel/sys.c
--- linux-2.6.9-rc3-bk2/kernel/sys.c	2004-09-30 05:03:55.000000000 +0200
+++ linux-2.6.9-rc3-bk2.nonet/kernel/sys.c	2004-10-02 17:05:49.589116448 +0200
@@ -282,6 +282,7 @@ cond_syscall(compat_set_mempolicy)
 cond_syscall(sys_pciconfig_read)
 cond_syscall(sys_pciconfig_write)
 cond_syscall(sys_pciconfig_iobase)
+cond_syscall(compat_sys_socketcall)
 
 static int set_one_prio(struct task_struct *p, int niceval, int error)
 {

-- 
USB is for mice, FireWire is for men!

sUse lINUX ag, nÜRNBERG

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH]  allow CONFIG_NET=n on ppc64
  2004-10-02 15:30   ` Olaf Hering
@ 2004-10-03 21:59     ` David S. Miller
  2004-10-04 18:07       ` HELP NEEDED!!! Pranav
  0 siblings, 1 reply; 11+ messages in thread
From: David S. Miller @ 2004-10-03 21:59 UTC (permalink / raw)
  To: Olaf Hering; +Cc: ak, netdev, linux-kernel


Olaf, as I requested of you last time, please use attachments for
your patches since I can never apply them cleanly when you
inline them to the main body text.

Thanks a lot.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* HELP NEEDED!!!
  2004-10-03 21:59     ` David S. Miller
@ 2004-10-04 18:07       ` Pranav
  2004-10-04 18:15         ` Jeff Garzik
  0 siblings, 1 reply; 11+ messages in thread
From: Pranav @ 2004-10-04 18:07 UTC (permalink / raw)
  To: David S. Miller; +Cc: netdev-bounce, netdev, linux-kernel

Hi everyone,

            I have got a small problem regarding configuring my ethernet
card,while loading the eth0 driver the kernel performs auto-probing for the
device and configures the eth0 to half-duplex.

I used command line arguments while loading modules
insmod 8139too io=0x280 irq=10 duplex=2

but still it performs the autoprobing overriding the parameters.

Please help me out of this problem,i want to configure my ethernetcard to
fullduplex.

Waiting for a reply...

With Regards,
Pranav.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* HELP NEEDED!!!
@ 2004-10-04 18:09 Pranav
  0 siblings, 0 replies; 11+ messages in thread
From: Pranav @ 2004-10-04 18:09 UTC (permalink / raw)
  To: netdev-bounce, netdev, linux-kernel

Hi everyone,

            I have got a small problem regarding configuring my ethernet
card,while loading the eth0 driver the kernel performs auto-probing for the
device and configures the eth0 to half-duplex.

I used command line arguments while loading modules
insmod 8139too io=0x280 irq=10 duplex=2

but still it performs the autoprobing overriding the parameters.

Please help me out of this problem,i want to configure my ethernetcard to
fullduplex.

Waiting for a reply...

With Regards,
Pranav.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: HELP NEEDED!!!
  2004-10-04 18:07       ` HELP NEEDED!!! Pranav
@ 2004-10-04 18:15         ` Jeff Garzik
  0 siblings, 0 replies; 11+ messages in thread
From: Jeff Garzik @ 2004-10-04 18:15 UTC (permalink / raw)
  To: pranav; +Cc: David S. Miller, netdev-bounce, netdev, linux-kernel

Pranav wrote:
> Hi everyone,
> 
>             I have got a small problem regarding configuring my ethernet
> card,while loading the eth0 driver the kernel performs auto-probing for the
> device and configures the eth0 to half-duplex.
> 
> I used command line arguments while loading modules
> insmod 8139too io=0x280 irq=10 duplex=2

8139too module does not take any arguments like io= or irq=.  PCI cards 
do not need such parameters.

You may use ethtool to select half-duplex or full-duplex.

	Jeff

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Help needed!!
@ 2004-10-14  6:26 Ammar Ahmed
  0 siblings, 0 replies; 11+ messages in thread
From: Ammar Ahmed @ 2004-10-14  6:26 UTC (permalink / raw)
  To: linux-mips

Can anyone help me find free linux for porting to MIPS r4k, any other
issues invovled..
Regards,
Ammar Ahmed

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Help needed!!!!!!!!!!
@ 2005-09-14  9:48 swapnil surve
  0 siblings, 0 replies; 11+ messages in thread
From: swapnil surve @ 2005-09-14  9:48 UTC (permalink / raw)
  To: netfilter-devel

Hi 
I m  new to kernel developement 
I m trying to send ICMP_ECHOREPLY in responce to ICMP_ECHO from the
kernel itself using netfilter hooks
I m using dev_queue_xmit() to send packets where I dont get a negative
value in return
But for some reason my reply is not received by requester.
please help mehere is my code::
 
#define __KERNEL__
#define MODULE
#include<linux/module.h>
#include<linux/kernel.h>
#include<linux/netdevice.h>
#include<linux/netfilter.h>
#include<linux/netfilter_ipv4.h>
#include<linux/in.h>
//#include<linux/tcp.h>
 
#include <linux/ip.h>
#include <linux/tcp.h>
#include<linux/icmp.h>
#include<linux/if_ether.h>
#include<linux/if_packet.h>
#include<linux/if_arp.h>
#include<net/checksum.h>


 /* This is the structure we shall use to register our function */
 
static struct nf_hook_ops nfho;
static struct nf_hook_ops nfho1;

/* Name of the interface we want to drop packets from */
struct icmphdr *icmp;  
 /* This is the hook function itself */
 
	
in_cksum (addr, len)
     u_short *addr;
     int len;
{
  register int nleft = len;
  register u_short *w = addr;
  register int sum = 0;
  u_short answer = 0;

  /*
   * Our algorithm is simple, using a 32 bit accumulator (sum), we add
   * sequential 16 bit words to it, and at the end, fold back all the
   * carry bits from the top 16 bits into the lower 16 bits.
   */
  while (nleft > 1)
    {
      sum += *w++;
      nleft -= 2;
    }

  /* mop up an odd byte, if necessary */
  if (nleft == 1)
    {
      *(u_char *) (&answer) = *(u_char *) w;
      sum += answer;
    }
  /* add back carry outs from top 16 bits to low 16 bits */
  sum = (sum >> 16) + (sum & 0xffff); /* add hi 16 to low 16 */
  sum += (sum >> 16); /* add carry */
  answer = ~sum; /* truncate to 16 bits */
  return (answer);
} 


unsigned int hook_func(unsigned int hooknum,
                       struct sk_buff **skb,
                       const struct net_device *in,
                       const struct net_device *out,
                       int (*okfn)(struct sk_buff *))
{
	unsigned int temp;
	int error;
	struct sk_buff *sb = *skb;
	struct device *ndev= NULL;
	int sum;
	if (sb->nh.iph->protocol == IPPROTO_ICMP) 
	{
/*		printk("\n%d",sb->nh.iph->saddr);
		printk("%d",sb->nh.iph->daddr);
		printk("ICMP PACKET");	        */
		icmp = (struct icmphdr *)(sb->data + sb->nh.iph->ihl * 4);
		//printk("\n checksum before : %x",sb->csum);
		if(icmp->type == ICMP_ECHO)
		{
			
			temp=sb->nh.iph->saddr;
			sb->nh.iph->saddr=sb->nh.iph->daddr;
			sb->nh.iph->daddr=temp;
			sb->pkt_type=PACKET_OUTGOING;
			//icmp_send(sb,ICMP_ECHOREPLY,0,out);
			//ip_send_check(sb->nh.iph);
			//sb->pkt_type=PACKET_OUTGOING;
			icmp->type=ICMP_ECHOREPLY;
			
			icmp->code=0x0;
			icmp->checksum=0;
			
			icmp->checksum=in_cksum((unsigned short
*)icmp,(sb->len-sb->nh.iph->ihl * 4));
			//printk("\nICMP ECHO RECIVED FROM %d",sb->nh.iph->saddr);
			sb->pkt_type=PACKET_OUTGOING;
			
			switch (sb->dev->type) 
			{
				case ARPHRD_PPP:		       
				break;
				case ARPHRD_LOOPBACK:
				case ARPHRD_ETHER:
				{
					unsigned char t_hwaddr[ETH_ALEN];
					//printk("\nchnging mac");
	   				//printk("\n%s",sb->data);
					//sb->len += ETH_HLEN; //sizeof(sb->mac.ethernet);
					memcpy(t_hwaddr, (sb->mac.ethernet->h_dest), ETH_ALEN);
					memcpy((sb->mac.ethernet->h_dest), (sb->mac.ethernet->h_source),ETH_ALEN);
					memcpy((sb->mac.ethernet->h_source), t_hwaddr, ETH_ALEN);
					break;
				}
			}
			
				dev_queue_xmit(sb);
			return NF_STOLEN;
			
		} 
			
	}
return NF_ACCEPT;
}

/* Initialisation routine */
int init_module()
{
    /* Fill in our hook structure */
    nfho.hook     = hook_func;         /* Handler function */
    nfho.hooknum  = NF_IP_PRE_ROUTING; /* First hook for IPv4 */
    nfho.pf       = PF_INET;
    nfho.priority = NF_IP_PRI_FIRST;   /* Make our function first */
  

    nf_register_hook(&nfho);

    return 0;
}
	
/* Cleanup routine */
void cleanup_module()
{
    nf_unregister_hook(&nfho);

}

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Help needed!
@ 2018-02-04 10:32 Sandra Younes
  0 siblings, 0 replies; 11+ messages in thread
From: Sandra Younes @ 2018-02-04 10:32 UTC (permalink / raw)


Good Day,

Forgive my indignation if this message comes to you as a surprise and may offend your personality for contacting you without your prior consent and writing through this channel.

I came across your name and contact on the course of my personal searching when i was searching for a foreign reliable partner. I was assured of your capability and reliability after going true your profile.

I'm (Miss. Sandra) from Benghazi libya, My father of blessed memory by name late General Abdel Fattah Younes who was shot death by Islamist-linked militia within the anti-Gaddafi forces on 28th July, 2011 and after two days later my mother with my two brothers was killed one early morning by the rebels as result of civil war that is going on in my country Libya, then after the burial of my parents, my uncles conspired and sold my father's properties and left nothing for me. On a faithful morning, I opened my father's briefcase and discover a document which he has deposited ($6.250M USD) in a bank in a Turkish Bank which has a small branch in Canada with my name as the legitimate/next of kin. Meanwhile i have located the bank,and have also discussed the possiblity of transfering the fund. M
 y father left a clause to the bank that i must introduce a trusted foreign partner who would be my trustee to help me invest this fund; hence the need for your assistance,i request that you be my tr
 ustee and assist me in th

You will also be responsible for the investment and management of the fund for me and also you will help me get a good school where i will further my education.
I agreed to give you 40% of the $6.250M once the transfer is done. this is my true life story, I will be glad to receive your respond soonest for more details to enable us start and champion the transfer less than 14 banking days as i was informed by the bank manager.

Thanks for giving me your attention,

Yours sincerely,
Miss. Sandra Younes

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Help needed!
@ 2018-02-05 16:10 Sandra Younes
  0 siblings, 0 replies; 11+ messages in thread
From: Sandra Younes @ 2018-02-05 16:10 UTC (permalink / raw)
  To: sparclinux

Good Day,

Forgive my indignation if this message comes to you as a surprise and may offend your personality for contacting you without your prior consent and writing through this channel.

I came across your name and contact on the course of my personal searching when i was searching for a foreign reliable partner. I was assured of your capability and reliability after going true your profile.

I'm (Miss. Sandra) from Benghazi libya, My father of blessed memory by name late General Abdel Fattah Younes who was shot death by Islamist-linked militia within the anti-Gaddafi forces on 28th July, 2011 and after two days later my mother with my two brothers was killed one early morning by the rebels as result of civil war that is going on in my country Libya, then after the burial of my parents, my uncles conspired and sold my father's properties and left nothing for me. On a faithful morning, I opened my father's briefcase and discover a document which he has deposited ($6.250M USD) in a bank in a Turkish Bank which has a small branch in Canada with my name as the legitimate/next of kin. Meanwhile i have located the bank,and have also discussed the possiblity of transfering the fund. My father left a clause to the bank that i must introduce a trusted foreign partner who would be my trustee to help me invest this fund; hence the need for your assistance,i request that you be my tr
 ustee and assist me in th

You will also be responsible for the investment and management of the fund for me and also you will help me get a good school where i will further my education.
I agreed to give you 40% of the $6.250M once the transfer is done. this is my true life story, I will be glad to receive your respond soonest for more details to enable us start and champion the transfer less than 14 banking days as i was informed by the bank manager.

Thanks for giving me your attention,

Yours sincerely,
Miss. Sandra Younes

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2018-02-05 16:10 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-29 20:01 [PATCH] allow CONFIG_NET=n on ppc64 Olaf Hering
2004-09-29 20:15 ` Andi Kleen
2004-10-02 15:30   ` Olaf Hering
2004-10-03 21:59     ` David S. Miller
2004-10-04 18:07       ` HELP NEEDED!!! Pranav
2004-10-04 18:15         ` Jeff Garzik
  -- strict thread matches above, loose matches on Subject: below --
2004-10-04 18:09 Pranav
2004-10-14  6:26 Help needed!! Ammar Ahmed
2005-09-14  9:48 Help needed!!!!!!!!!! swapnil surve
2018-02-04 10:32 Help needed! Sandra Younes
2018-02-05 16:10 Sandra Younes

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.